Merge branch 'master' of ssh://plrg.eecs.uci.edu/home/git/smartthings-infrastructure
[smartthings-infrastructure.git] / ColorControl / ColorControls.groovy
index 74964fe0cf131e6eff15e310f998ed85a6583a9e..5262e91b64b9c9fa69a0dcf87b3041d94f3ec9eb 100644 (file)
@@ -27,7 +27,7 @@ public class ColorControls {
                this.deviceNumbers = deviceNumbers
                this.colorControls = []
 
-               def initHue = Verify.getIntFromList(30, 50, 70)
+               /*def initHue = Verify.getIntFromList(30, 50, 70)
                this.hue = initHue
                def initSat = Verify.getIntFromList(40, 50, 60)
                this.saturation = initSat
@@ -38,9 +38,9 @@ public class ColorControls {
                        this.color = "green"
                } else {
                        this.color = "blue"
-               }
+               }*/
 
-               colorControls.add(new ColorControl(id, label, displayName, this.color, this.hue, this.saturation, this.level, this.currentSwitch, this.colorTemperature))
+               colorControls.add(new ColorControl(sendEvent, id, label, displayName, this.color, this.hue, this.saturation, this.level, this.currentSwitch, this.colorTemperature))
        }
 
        //Methods for closures