projects
/
smartapps.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update FireCO2Alarm.groovy
[smartapps.git]
/
third-party
/
FireCO2Alarm.groovy
diff --git
a/third-party/FireCO2Alarm.groovy
b/third-party/FireCO2Alarm.groovy
index c87b152b8e47192e2b181c7683e4fe520dbab2ca..2340dcd0c8a96d9b815620407aa2ccc39f9fa767 100755
(executable)
--- a/
third-party/FireCO2Alarm.groovy
+++ b/
third-party/FireCO2Alarm.groovy
@@
-457,7
+457,7
@@
private flashLights() {
def initialActionOn = switches.collect {
it.currentSwitch != "on"
}
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 {
numFlashes.times {
log.trace "Switch on after $delay msec"
switches.eachWithIndex {
@@
-486,7
+486,7
@@
private flashLights() {
}
private send(msg) {
}
private send(msg) {
- if (sendPushMessage != "No") {
+
/*
if (sendPushMessage != "No") {
log.debug("sending push message")
sendPush(msg)
}
log.debug("sending push message")
sendPush(msg)
}
@@
-494,6
+494,6
@@
private send(msg) {
if (phoneNumber) {
log.debug("sending text message")
sendSms(phoneNumber, msg)
if (phoneNumber) {
log.debug("sending text message")
sendSms(phoneNumber, msg)
- }
+ }
*/
log.debug msg
}
log.debug msg
}