Skip to content

Commit

Permalink
Release 2.11.6
Browse files Browse the repository at this point in the history
  • Loading branch information
jghaanstra committed Apr 16, 2019
1 parent d5e645b commit 96f77fb
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
5 changes: 2 additions & 3 deletions APPSTORE.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,5 @@ For Homey to be able to communicate with devices over the miIO protocol a unique
Xiaomi has released an update for the vacuum cleaners that enables zone cleaning and goto function. Using the action cards that utilize these functions are a bit challenging. If you want to use these cards please read the instructions [here](https://github.com/jghaanstra/com.xiaomi-miio/blob/master/docs/mirobot_zonecleanup.md).

## Changelog
### v2.11.5 - 2019-04-14
* NEW: support for Yeelight Meteorite Pendant Light (YLDL01YL)
* NEW: condition card for night mode for Yeelights that support this feature
### v2.11.6 - 2019-04-16
* FIX: update night mode capability when ceiling light is controlled by external source
2 changes: 1 addition & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"en": [ "Xiaomi", "Mi", "Mi Home", "miio", "vacuumcleaner", "robot", "yeelight", "yeelights", "purifier", "humidifier", "philips", "eyecare", "powerplug", "gateway" ],
"nl": [ "Xiaomi", "Mi", "Mi home", "miio", "stofzuiger", "robot", "yeelight", "yeelights", "luchtreiniger", "luchtbevochtiger", "philips", "eyecare", "powerplug", "gateway" ]
},
"version": "2.11.5",
"version": "2.11.6",
"compatibility": ">=2.0.0",
"author": {
"name": "Jelger Haanstra",
Expand Down
12 changes: 8 additions & 4 deletions drivers/yeelights/device.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,11 +256,15 @@ class YeelightDevice extends Homey.Device {
device.setCapabilityValue('light_mode', 'color');
}
break;
case 'active_mode':
if (result.params.active_mode == 1) {
device.setCapabilityValue('night_mode', true);
} else {
case 'nl_br':
if (result.params.nl_br !== 0 && result.params.active_mode == 1) {
var dim = result.params.nl_br / 100;
device.setCapabilityValue('dim', dim);
}
if (result.params.active_mode == 0) {
device.setCapabilityValue('night_mode', false);
} else {
device.setCapabilityValue('night_mode', true);
}
break;
default:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.xiaomi-miio",
"version": "2.11.5",
"version": "2.11.6",
"description": "Xiaomi Mi Home",
"main": "app.js",
"dependencies": {
Expand Down

0 comments on commit 96f77fb

Please sign in to comment.