From: Rahmadi Trimananda Date: Wed, 31 Jul 2019 17:08:03 +0000 (-0700) Subject: Update FireCO2Alarm.groovy X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4b517a0b61d63aa11f8b7c88686fb3860da37fb3;p=smartapps.git Update FireCO2Alarm.groovy Adjusted for missing properties. --- diff --git a/third-party/FireCO2Alarm.groovy b/third-party/FireCO2Alarm.groovy index c87b152..2340dcd 100755 --- a/third-party/FireCO2Alarm.groovy +++ b/third-party/FireCO2Alarm.groovy @@ -457,7 +457,7 @@ private flashLights() { def initialActionOn = switches.collect { it.currentSwitch != "on" } - def delay = 1 L + def delay = 1 numFlashes.times { log.trace "Switch on after $delay msec" switches.eachWithIndex { @@ -486,7 +486,7 @@ private flashLights() { } private send(msg) { - if (sendPushMessage != "No") { + /*if (sendPushMessage != "No") { log.debug("sending push message") sendPush(msg) } @@ -494,6 +494,6 @@ private send(msg) { if (phoneNumber) { log.debug("sending text message") sendSms(phoneNumber, msg) - } + }*/ log.debug msg }