diff --git a/APPSTORE.md b/APPSTORE.md index 007410c..8957fbf 100644 --- a/APPSTORE.md +++ b/APPSTORE.md @@ -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 diff --git a/app.json b/app.json index 8f629b7..da4ae7d 100644 --- a/app.json +++ b/app.json @@ -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", diff --git a/drivers/yeelights/device.js b/drivers/yeelights/device.js index 6a80ed8..dc1b490 100644 --- a/drivers/yeelights/device.js +++ b/drivers/yeelights/device.js @@ -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: diff --git a/package.json b/package.json index abe630f..71bd559 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.xiaomi-miio", - "version": "2.11.5", + "version": "2.11.6", "description": "Xiaomi Mi Home", "main": "app.js", "dependencies": {