diff --git a/APPSTORE.md b/APPSTORE.md index 64de402..60688f5 100644 --- a/APPSTORE.md +++ b/APPSTORE.md @@ -28,5 +28,6 @@ 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.12.0 - 2019-07-11 +### v2.12.0 - 2019-07-12 * NEW: re-added support for the Philips Eyecare lamp +* FIX: added night mode to Yeelight Meteorite (use the custom color and brightness card to change the ambilight) diff --git a/app.js b/app.js index 111e6c1..a24b66d 100644 --- a/app.js +++ b/app.js @@ -40,7 +40,7 @@ class XiaomiMiioApp extends Homey.App { const color = tinycolor(args.color); const rgb = color.toRgb(); const colordecimal = (rgb.r * 65536) + (rgb.g * 256) + rgb.b; - if (args.device.getData().model == 'ceiling4') { + if (args.device.getData().model == 'ceiling4' || args.device.getData().model == 'ceiling10') { return args.device.sendCommand(args.device.getData().id, '{"id":1, "method":"bg_set_scene", "params":["color", '+ colordecimal +', '+ args.brightness +']}'); } else { return args.device.sendCommand(args.device.getData().id, '{"id":1, "method":"set_scene", "params":["color", '+ colordecimal +', '+ args.brightness +']}'); diff --git a/drivers/yeelights/driver.js b/drivers/yeelights/driver.js index e2e4b2d..fd0c825 100644 --- a/drivers/yeelights/driver.js +++ b/drivers/yeelights/driver.js @@ -19,7 +19,7 @@ const typeCapabilityMap = { 'ceiling2' : [ 'onoff', 'dim', 'light_temperature', 'light_mode', 'night_mode' ], 'ceiling3' : [ 'onoff', 'dim', 'light_temperature', 'light_mode', 'night_mode' ], 'ceiling4' : [ 'onoff', 'dim', 'light_hue', 'light_saturation', 'light_temperature', 'light_mode', 'night_mode' ], - 'ceiling10' : [ 'onoff', 'dim', 'light_hue', 'light_saturation', 'light_temperature', 'light_mode' ], + 'ceiling10' : [ 'onoff', 'dim', 'light_hue', 'light_saturation', 'light_temperature', 'light_mode', 'night_mode' ], 'desklamp' : [ 'onoff', 'dim', 'light_temperature', 'light_mode' ] }