Update laundry-monitor.groovy
[smartapps.git] / official / laundry-monitor.groovy
index a76278ec2940db7c5a64c91513d4cd1e2525cc2e..b1a0d3211fbe47fe1d54d3e7fa7d7b4039f613c1 100755 (executable)
@@ -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"
@@ -138,9 +138,9 @@ def checkRunning() {
 
 private flashLights() {
        def doFlash = true
-       def onFor = onFor ?: 1000
-       def offFor = offFor ?: 1000
-       def numFlashes = numFlashes ?: 3
+       def onFor = 1000
+       def offFor = 1000
+       def numFlashes = 3
 
        log.debug "LAST ACTIVATED IS: ${state.lastActivated}"
        if (state.lastActivated) {
@@ -166,7 +166,7 @@ private flashLights() {
                                        s.off(delay:delay)
                                }
                        }
-                       delay += onFor
+                       /*delay += onFor
                        log.trace "Switch off after $delay msec"
                        switches.eachWithIndex {s, i ->
                                if (initialActionOn[i]) {
@@ -176,7 +176,7 @@ private flashLights() {
                                        s.on(delay:delay)
                                }
                        }
-                       delay += offFor
+                       delay += offFor*/
                }
        }
 }