Adding missing method.
[smartthings-infrastructure.git] / 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"