Skip to content

Commit

Permalink
Release 2.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jghaanstra committed Jul 14, 2019
1 parent 25811c5 commit a18a1fb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion APPSTORE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 +']}');
Expand Down
2 changes: 1 addition & 1 deletion drivers/yeelights/driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' ]
}

Expand Down

0 comments on commit a18a1fb

Please sign in to comment.