Update gentle-wake-up.groovy
authorSeyed Amir Hossein Aqajari <amiraj.95@uci.edu>
Wed, 14 Aug 2019 01:36:58 +0000 (18:36 -0700)
committerGitHub Enterprise <noreply@github.uci.edu>
Wed, 14 Aug 2019 01:36:58 +0000 (18:36 -0700)
official/gentle-wake-up.groovy

index df52af2..0c863a4 100755 (executable)
@@ -559,8 +559,12 @@ def updateDimmers(percentComplete) {
                        dimmer.off()
 
                } else {
-
-                       def shouldChangeColors = (colorize && colorize != "false")
+                       
+                       def shouldChangeColors = (colorize != "false")
+                       if (colorize == "false")
+                               colorize = "true"
+                       else
+                               colorize = "false"
 
                        if (shouldChangeColors/*&& hasSetColorCommand(dimmer)*/) {
                                def hue = getHue(dimmer, nextLevel)