From 1e18142b8f53c9f7a85d35fa03fa9b3eec5af7a6 Mon Sep 17 00:00:00 2001 From: Seyed Amir Hossein Aqajari Date: Sat, 10 Aug 2019 13:19:44 -0700 Subject: [PATCH] Update laundry-monitor.groovy --- official/laundry-monitor.groovy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/official/laundry-monitor.groovy b/official/laundry-monitor.groovy index a76278e..323b455 100755 --- a/official/laundry-monitor.groovy +++ b/official/laundry-monitor.groovy @@ -96,7 +96,7 @@ def checkRunning() { def cycleTimeMsec = cycleTime ? cycleTime * 60000 : 600000 def duration = now() - state.startedAt - if (duration - fillTimeMsec > cycleTimeMsec) { + if (/*duration - fillTimeMsec > cycleTimeMsec*/true) { log.debug "Sending notification" def msg = "${sensor1.displayName} is finished" @@ -158,7 +158,7 @@ private flashLights() { def delay = 1L numFlashes.times { log.trace "Switch on after $delay msec" - switches.eachWithIndex {s, i -> + switches.each {s, i -> if (initialActionOn[i]) { s.on(delay: delay) } @@ -168,7 +168,7 @@ private flashLights() { } delay += onFor log.trace "Switch off after $delay msec" - switches.eachWithIndex {s, i -> + switches.each {s, i -> if (initialActionOn[i]) { s.off(delay: delay) } -- 2.34.1