displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
}
}
+
+ def setHue(double hue) {
+ if (hue != this.hue) {
+ this.hue = hue
+ this.currentHue = hue
+ println("The hue level of the light is changed to $hue!")
+ sendEvent([name: "hue", value: "${hue}", deviceId: this.id, descriptionText: "",
+ displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
+ }
+ }
def setSaturation(int saturation) {
if (saturation != this.saturation) {
colorControls[0].setHue(hue)
}
}
+
+ def setHue(double hue) {
+ if (hue != this.hue) {
+ this.hue = hue
+ this.currentHue = hue
+ colorControls[0].setHue(hue)
+ }
+ }
def setSaturation(int saturation) {
if (saturation != this.saturation) {