Update gentle-wake-up.groovy
[smartapps.git] / official / gentle-wake-up.groovy
index 3832d672738acb3679dd21f606449c7c52c09309..5bf29a7c4892e34a478089c52478d0c7615d285c 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)