Adding integer input.
authorrtrimana <rtrimana@uci.edu>
Mon, 5 Aug 2019 17:19:32 +0000 (10:19 -0700)
committerrtrimana <rtrimana@uci.edu>
Mon, 5 Aug 2019 17:19:32 +0000 (10:19 -0700)
ColorTemperature/ColorTemperatures.groovy

index 77f0175..a1e19dc 100644 (file)
@@ -99,6 +99,13 @@ public class ColorTemperatures {
                        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) {