}
}
+ def setColorTemperature(long colorTemperature) {
+ if (colorTemperature != this.colorTemperature) {
+ this.colorTemperature = colorTemperature
+ colorControls[0].setColorTemperature(colorTemperature)
+ }
+ }
+
def on() {
if (this.currentSwitch != "on") {
this.currentSwitch = "on"