Update laundry-monitor.groovy
authorSeyed Amir Hossein Aqajari <amiraj.95@uci.edu>
Sat, 10 Aug 2019 21:05:01 +0000 (14:05 -0700)
committerGitHub Enterprise <noreply@github.uci.edu>
Sat, 10 Aug 2019 21:05:01 +0000 (14:05 -0700)
official/laundry-monitor.groovy

index b1a0d3211fbe47fe1d54d3e7fa7d7b4039f613c1..b5bdae814fa9e4831360aa43fa929b8b9296e767 100755 (executable)
@@ -160,10 +160,10 @@ private flashLights() {
                        log.trace "Switch on after  $delay msec"
                        switches.eachWithIndex {s, i ->
                                if (initialActionOn[i]) {
-                                       s.on(delay: delay)
+                                       switches.on(delay: delay)
                                }
                                else {
-                                       s.off(delay:delay)
+                                       switches.off(delay:delay)
                                }
                        }
                        /*delay += onFor