mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-29 22:04:01 +01:00
Add the hue characteristics for all lamps, as we're trying to handle this in some way now
This commit is contained in:
@@ -104,11 +104,9 @@ MiLight.prototype = {
|
|||||||
.addCharacteristic(new Characteristic.Brightness())
|
.addCharacteristic(new Characteristic.Brightness())
|
||||||
.on('set', this.setBrightness.bind(this));
|
.on('set', this.setBrightness.bind(this));
|
||||||
|
|
||||||
if (this.type == "rgbw" || this.type == "rgb") {
|
lightbulbService
|
||||||
lightbulbService
|
.addCharacteristic(new Characteristic.Hue())
|
||||||
.addCharacteristic(new Characteristic.Hue())
|
.on('set', this.setHue.bind(this));
|
||||||
.on('set', this.setHue.bind(this));
|
|
||||||
}
|
|
||||||
|
|
||||||
return [informationService, lightbulbService];
|
return [informationService, lightbulbService];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user