weeeellllll, it's like ...

This commit is contained in:
Stephen Yeargin
2015-06-27 01:18:32 -05:00
parent 54100c2471
commit de84846bcf

View File

@@ -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,