X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=ColorControl%2FColorControls.groovy;h=5262e91b64b9c9fa69a0dcf87b3041d94f3ec9eb;hb=dc6a728191b84d0e1e80e1c7a68b31baf279de30;hp=74964fe0cf131e6eff15e310f998ed85a6583a9e;hpb=d3802bd96ca8963ae52b9740443f9be6896f0e18;p=smartthings-infrastructure.git diff --git a/ColorControl/ColorControls.groovy b/ColorControl/ColorControls.groovy index 74964fe..5262e91 100644 --- a/ColorControl/ColorControls.groovy +++ b/ColorControl/ColorControls.groovy @@ -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