Adding missing method.
authorrtrimana <rtrimana@uci.edu>
Sat, 10 Aug 2019 15:48:59 +0000 (08:48 -0700)
committerrtrimana <rtrimana@uci.edu>
Sat, 10 Aug 2019 15:48:59 +0000 (08:48 -0700)
ColorControl/ColorControls.groovy

index 0ff9cfdf1ae825fca522d4d303fb96319a262fe4..9b003f6189301780896e68525c7b74ecaf455566 100644 (file)
@@ -212,6 +212,13 @@ public class ColorControls {
                }
        }
 
                }
        }
 
+       def setColorTemperature(long colorTemperature) {
+               if (colorTemperature != this.colorTemperature) {
+                       this.colorTemperature = colorTemperature
+                       colorControls[0].setColorTemperature(colorTemperature)                  
+               }
+       }
+
        def on() {
                if (this.currentSwitch != "on") {
                        this.currentSwitch = "on"
        def on() {
                if (this.currentSwitch != "on") {
                        this.currentSwitch = "on"