mirror of
https://github.com/mtan93/homebridge.git
synced 2026-05-11 22:06:52 +01:00
@@ -60,6 +60,9 @@ var execute = function(api, device, characteristic, value) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (characteristic === "hue") {
|
else if (characteristic === "hue") {
|
||||||
|
value = value/360;
|
||||||
|
value = value*65535;
|
||||||
|
value = Math.round(value);
|
||||||
state.hue(value);
|
state.hue(value);
|
||||||
}
|
}
|
||||||
else if (characteristic === "brightness") {
|
else if (characteristic === "brightness") {
|
||||||
@@ -198,7 +201,7 @@ PhilipsHueAccessory.prototype = {
|
|||||||
supportBonjour: false,
|
supportBonjour: false,
|
||||||
manfDescription: "Adjust Hue of Light",
|
manfDescription: "Adjust Hue of Light",
|
||||||
designedMinValue: 0,
|
designedMinValue: 0,
|
||||||
designedMaxValue: 65535,
|
designedMaxValue: 360,
|
||||||
designedMinStep: 1,
|
designedMinStep: 1,
|
||||||
unit: "arcdegrees"
|
unit: "arcdegrees"
|
||||||
},{
|
},{
|
||||||
|
|||||||
Reference in New Issue
Block a user