Changes in old infra
authorSeyed Amir Hossein Aqajari <saqajari@circinus-5.ics.uci.edu>
Fri, 28 Feb 2020 19:33:28 +0000 (11:33 -0800)
committerSeyed Amir Hossein Aqajari <saqajari@circinus-5.ics.uci.edu>
Fri, 28 Feb 2020 19:33:28 +0000 (11:33 -0800)
ColorControl/ColorControls.groovy

index a2c93de0049933825c71eb151b9b857806f20588..8a3f08d31b7fa4c22922bb33fea34997fa5740de 100644 (file)
@@ -13,7 +13,7 @@ public class ColorControls {
        private String displayName = "colorControl0"
        private String color = "Red"
        private String currentColor = "Red"
-       private String currentSwitch = "on"
+       private String currentSwitch = "off"
        private int level = 50
        private int currentLevel = 50
        private int hue = 50
@@ -38,7 +38,7 @@ public class ColorControls {
                        this.currentSaturation = 40
                        this.colorTemperature = 10000
                        this.color = "Red"
-                       this.currentSwitch = "on"
+                       this.currentSwitch = "off"
                } else {
                        this.level = 50
                        this.currentLevel = 50
@@ -48,7 +48,7 @@ public class ColorControls {
                        this.currentSaturation = 50
                        this.colorTemperature = 15000
                        this.color = "Blue"
-                       this.currentSwitch = "off"
+                       this.currentSwitch = "on"
                }
                colorControls.add(new ColorControl(sendEvent, id, label, displayName, this.color, this.hue, this.saturation, this.level, this.currentSwitch, this.colorTemperature))
        }