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 0ff9cfd..9b003f6 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"