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 b1a0d32..b5bdae8 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