mirror of
https://github.com/mtan93/homebridge.git
synced 2026-04-16 06:13:10 +01:00
weeeellllll, it's like ...
This commit is contained in:
@@ -205,7 +205,7 @@ PhilipsHueAccessory.prototype = {
|
|||||||
designedMaxLength: 255
|
designedMaxLength: 255
|
||||||
},{
|
},{
|
||||||
cType: types.IDENTIFY_CTYPE,
|
cType: types.IDENTIFY_CTYPE,
|
||||||
onUpdate: function(value) { console.log("Change:",value); execute(this.device, this.id, "identify", value); },
|
onUpdate: function(value) { console.log("Change:",value); execute(that.api, that.device, "identify", value); },
|
||||||
perms: ["pw"],
|
perms: ["pw"],
|
||||||
format: "bool",
|
format: "bool",
|
||||||
initialValue: false,
|
initialValue: false,
|
||||||
@@ -230,7 +230,7 @@ PhilipsHueAccessory.prototype = {
|
|||||||
designedMaxLength: 255
|
designedMaxLength: 255
|
||||||
},{
|
},{
|
||||||
cType: types.POWER_STATE_CTYPE,
|
cType: types.POWER_STATE_CTYPE,
|
||||||
onUpdate: function(value) { console.log("Change:",value); execute(this.api, this.device, "on", value); },
|
onUpdate: function(value) { console.log("Change:",value); execute(that.api, that.device, "on", value); },
|
||||||
perms: ["pw","pr","ev"],
|
perms: ["pw","pr","ev"],
|
||||||
format: "bool",
|
format: "bool",
|
||||||
initialValue: false,
|
initialValue: false,
|
||||||
@@ -240,7 +240,7 @@ PhilipsHueAccessory.prototype = {
|
|||||||
designedMaxLength: 1
|
designedMaxLength: 1
|
||||||
},{
|
},{
|
||||||
cType: types.HUE_CTYPE,
|
cType: types.HUE_CTYPE,
|
||||||
onUpdate: function(value) { console.log("Change:",value); execute(this.api, this.device, "hue", value); },
|
onUpdate: function(value) { console.log("Change:",value); execute(that.api, that.device, "hue", value); },
|
||||||
perms: ["pw","pr","ev"],
|
perms: ["pw","pr","ev"],
|
||||||
format: "int",
|
format: "int",
|
||||||
initialValue: 0,
|
initialValue: 0,
|
||||||
@@ -253,7 +253,7 @@ PhilipsHueAccessory.prototype = {
|
|||||||
unit: "arcdegrees"
|
unit: "arcdegrees"
|
||||||
},{
|
},{
|
||||||
cType: types.BRIGHTNESS_CTYPE,
|
cType: types.BRIGHTNESS_CTYPE,
|
||||||
onUpdate: function(value) { console.log("Change:",value); execute(this.api, this.device, "brightness", value); },
|
onUpdate: function(value) { console.log("Change:",value); execute(that.api, that.device, "brightness", value); },
|
||||||
perms: ["pw","pr","ev"],
|
perms: ["pw","pr","ev"],
|
||||||
format: "int",
|
format: "int",
|
||||||
initialValue: 0,
|
initialValue: 0,
|
||||||
@@ -266,7 +266,7 @@ PhilipsHueAccessory.prototype = {
|
|||||||
unit: "%"
|
unit: "%"
|
||||||
},{
|
},{
|
||||||
cType: types.SATURATION_CTYPE,
|
cType: types.SATURATION_CTYPE,
|
||||||
onUpdate: function(value) { console.log("Change:",value); execute(this.api, this.device, "saturation", value); },
|
onUpdate: function(value) { console.log("Change:",value); execute(that.api, that.device, "saturation", value); },
|
||||||
perms: ["pw","pr","ev"],
|
perms: ["pw","pr","ev"],
|
||||||
format: "int",
|
format: "int",
|
||||||
initialValue: 0,
|
initialValue: 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user