abstract-things icon indicating copy to clipboard operation
abstract-things copied to clipboard

Fix for caching colortemp range

Open PathToLife opened this issue 5 years ago • 0 comments

See https://github.com/aholstenson/miio/issues/222

==add Bedside Lamp support== miio/lib/models.js //in module.exports add one line 'yeelink.light.bslamp1': YeelightColor,

==fix color temperature setting== abstract-things/lights/color-temperature.js //line 54~55 -- if(! isDeepEqual(this[colorTemperatureRange], range)) { -- this[colorTemperatureRange] = range; ++ if(! isDeepEqual(this.colorTemperatureRange, range)) { ++ this.colorTemperatureRange = range;

Then your can use this code: light.color('5020K') without error

PathToLife avatar Jul 26 '19 17:07 PathToLife