Adding integer input.
[smartthings-infrastructure.git] / ColorTemperature / ColorTemperatures.groovy
index 77f01753b04f03a1f4c4892d1905ffbd82ea7e1e..a1e19dc44035280258505854e06a71a47fddfd5a 100644 (file)
@@ -99,6 +99,13 @@ public class ColorTemperatures {
                        colorTemperatues[0].setColorTemperature(colorTemperature)                       
                }
        }
                        colorTemperatues[0].setColorTemperature(colorTemperature)                       
                }
        }
+       
+       def setColorTemperature(int colorTemperature) {
+               if (colorTemperature != this.colorTemperature) {
+                       this.colorTemperature = colorTemperature
+                       colorTemperatues[0].setColorTemperature(colorTemperature)                       
+               }
+       }
 
        def on(String currentSwitch) {
                if (currentSwitch != this.currentSwitch) {
 
        def on(String currentSwitch) {
                if (currentSwitch != this.currentSwitch) {