Skip to content

Commit

Permalink
Release 2.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jghaanstra committed Jan 17, 2018
1 parent 8472404 commit 7715966
Show file tree
Hide file tree
Showing 8 changed files with 301 additions and 150 deletions.
21 changes: 6 additions & 15 deletions APPSTORE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Use Homey to control Xiaomi Mi Home devices (the Mi Home Ecosystem is also brand
This app uses an unofficial library called the [miIO Device Library](https://github.com/aholstenson/miio) for communication with those devices which lack official support for controlling externally, credits go out to the author of this library. This Homey app also only adds support for the devices that can be controlled directly through Wi-Fi, there is a whole range of Mi Home sensors that can only be used together with the Xiaomi Smart Home Gateway (which uses ZigBee) but this is currently out the scope of this app.

## Supported devices
Below is a list of supported devices and devices that might be supported in the future if there is demand for this. Post a comment in the app store if you would like to see support for a specific device.
Below is a list of supported devices and devices that might be supported in the future if there is demand for this. Post a comment in the app store if you would like to see support for a specific device, some devices might already be supported but just need to be implemented. For other devices you may need some technical knowledge to discover the device properties yourself as described [here](https://github.com/aholstenson/miio/blob/master/docs/missing-devices.md).
* Yeelights: Bulbs Wi-Fi (tested), LED strips (tested), Bedside Lamp II (tested), Ceiling Lights (tested)
* Xiaomi Philips: Light Bulbs (untested), Eyecare Lamp 2 (untested)
* Xiaomi Air Purifiers 2 and Pro (tested)
Expand Down Expand Up @@ -45,6 +45,11 @@ For Homey to be able to communicate with devices over the miIO protocol a unique
* Default flow cards for on/off, measure power and meter power capabilities class

## Changelog
### 2018-01-17 -- v2.4.2
* FIX: some improvements for the Yeelights which will hopefully fix devices as appearing offline in Homey
* UPDATE: added favorite mode as option for Air Purifiers
* UPDATE: added card to set the speed of the favorite mode for Air Purifiers

### 2018-01-07 -- v2.4.1
* FIX: some tweaks for the Yeelight JIAOYUE 650 Ceiling Light as it has seperate white (main lamp) and color (background color ring) capabilities
* FIX: probable fix for temperature setting on Philips Light Bulbs
Expand All @@ -54,17 +59,3 @@ For Homey to be able to communicate with devices over the miIO protocol a unique
* NEW: added support for the Philips Xiaomi Light Bulbs (untested)
* NEW: added support for the Philips Xiaomi Eyecare Lamp 2 (untested)
* NEW: added support for the Xiaomi Single Power Plug (untested)

### 2017-11-30 -- v2.3.2
* FIX: added a keep-alive to Yeelight connections to maintain the connection over time
* FIX: fixed pairing wizard for Humidifier and Purifier

### 2017-11-06 -- v2.3.1
* UPDATE: code rewrite for SDK2
* UPDATE: made use of official donation button feature of Homey app store
* REMOVED: driver for the Mi Robot Vacuum Cleaner since it's not working anymore with the latest firmware update of the cleaner (if you still want to use/try it you can do a local install from an archive [beta branch on GitHub](https://github.com/jghaanstra/com.xiaomi-miio/releases/tag/2.3.1-beta) )
* NEW: changed Yeelight driver to support Yeelight LED strip (require repairing of **ALL** Yeelight devices)
* NEW: added extra action cards for Yeelights: Change brightness over time, Custom command (advanced), Set default on state, Temperature/brightness scene, Color/brightness scene
* NEW: added support for the default dim over time action card for Yeelights
* NEW: added support for Yeelight Bedside Lamp II (WiFi) and Yeelight Ceiling Light
* IMPROVEMENT: switched from custom capability for air quality to the new default pm2.5 capability for the Air Purifier (requires repairing of the air purifier)
12 changes: 12 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,18 @@ class XiaomiMiioApp extends Homey.App {
})
})

new Homey.FlowCardAction('airpurifierSetFavorite')
.register()
.registerRunListener((args, state) => {
util.sendCommand('setfavorite', args.favorite, args.device.getSetting('address'), args.device.getSetting('token'))
.then(result => {
return Promise.resolve(result);
})
.catch(error => {
return Promise.reject(error);
})
})

new Homey.FlowCardAction('airpurifierOn')
.register()
.registerRunListener((args, state) => {
Expand Down
156 changes: 139 additions & 17 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"en": [ "Xiaomi", "Mi", "Mi Home", "miio", "yeelight", "yeelights", "purifier", "humidifier", "philips", "eyecare", "powerplug" ],
"nl": [ "Xiaomi", "Mi", "Mi home", "miio", "yeelight", "yeelights", "luchtreiniger", "luchtbevochtiger", "philips", "eyecare", "powerplug" ]
},
"version": "2.4.1",
"version": "2.4.2",
"compatibility": "1.x >=1.5.0",
"author": {
"name": "Jelger Haanstra",
Expand Down Expand Up @@ -519,8 +519,8 @@
"nl": "Wijzig helderheid over tijd"
},
"hint": {
"en": "Use this card to create a changing effect of temperature and brightness over time (duration in milliseconds, temperature in Kelvin 2700-6500 and brightness in percentage)",
"nl": "Gebruik deze actie voor een veranderd effect van licht temperatuur en helderheid over tijd (doorlooptijd in milliseconden, temperatuur in Kelvin 2700-6500 en helderheid in percentage)"
"en": "Use this card to create a changing effect of temperature and brightness over time (duration in milliseconds, temperature in Kelvin 1700-6500 and brightness in percentage)",
"nl": "Gebruik deze actie voor een veranderd effect van licht temperatuur en helderheid over tijd (doorlooptijd in milliseconden, temperatuur in Kelvin 1700-6500 en helderheid in percentage)"
},
"args": [
{
Expand Down Expand Up @@ -571,7 +571,7 @@
"en": "Temperature",
"nl": "Temperatuur"
},
"min": 2700,
"min": 1700,
"max": 6500,
"step": 1
},
Expand Down Expand Up @@ -604,8 +604,8 @@
"nl": "Temperatuur en helderheid"
},
"hint": {
"en": "Use this card to set the temperature and brightness directly (temperature in Kelvin 2700-6500 and brightness in percentage)",
"nl": "Gebruik deze actie om de temperatuur en helderheid direct in te stellen (temperatuur in Kelvin 2700-6500 en helderheid in percentage)"
"en": "Use this card to set the temperature and brightness directly (temperature in Kelvin 1700-6500 and brightness in percentage)",
"nl": "Gebruik deze actie om de temperatuur en helderheid direct in te stellen (temperatuur in Kelvin 1700-6500 en helderheid in percentage)"
},
"args": [
{
Expand All @@ -615,7 +615,7 @@
"en": "Temperature",
"nl": "Temperatuur"
},
"min": 2700,
"min": 1700,
"max": 6500,
"step": 1
},
Expand Down Expand Up @@ -777,24 +777,146 @@
}
},
{
"id": "low",
"id": "favorite",
"label": {
"en": "Low",
"nl": "Laag"
"en": "Favorite",
"nl": "Favorite"
}
}
]
},
{
"name": "device",
"type": "device",
"placeholder": {
"en": "Select Mi Air Purifier",
"nl": "Selecteer Mi Luchtreiniger"
},
"filter": "driver_id=mi-airpurifier"
}
]
},
{
"id": "airpurifierSetFavorite",
"title": {
"en": "Set Favorite Speed",
"nl": "Favoriete snelheid instellen"
},
"args": [
{
"name": "favorite",
"type": "dropdown",
"values": [
{
"id": "1",
"label": {
"en": "1",
"nl": "1"
}
},
{
"id": "medium",
"id": "2",
"label": {
"en": "Medium",
"nl": "Middel"
"en": "2",
"nl": "2"
}
},
{
"id": "high",
"id": "3",
"label": {
"en": "High",
"nl": "Hoog"
"en": "3",
"nl": "3"
}
},
{
"id": "4",
"label": {
"en": "4",
"nl": "4"
}
},
{
"id": "5",
"label": {
"en": "5",
"nl": "5"
}
},
{
"id": "6",
"label": {
"en": "6",
"nl": "6"
}
},
{
"id": "7",
"label": {
"en": "7",
"nl": "7"
}
},
{
"id": "8",
"label": {
"en": "8",
"nl": "8"
}
},
{
"id": "9",
"label": {
"en": "9",
"nl": "9"
}
},
{
"id": "10",
"label": {
"en": "10",
"nl": "10"
}
},
{
"id": "11",
"label": {
"en": "11",
"nl": "11"
}
},
{
"id": "12",
"label": {
"en": "12",
"nl": "12"
}
},
{
"id": "13",
"label": {
"en": "13",
"nl": "13"
}
},
{
"id": "14",
"label": {
"en": "14",
"nl": "14"
}
},
{
"id": "15",
"label": {
"en": "15",
"nl": "15"
}
},
{
"id": "16",
"label": {
"en": "16",
"nl": "16"
}
}
]
Expand All @@ -807,7 +929,7 @@
"nl": "Selecteer Mi Luchtreiniger"
},
"filter": "driver_id=mi-airpurifier"
}
}
]
},
{
Expand Down
Loading

0 comments on commit 7715966

Please sign in to comment.