if (evt.physical) {
if (evt.value == "on" && lastTwoStatesWere("on", recentStates, evt)) {
log.debug "detected two taps, turn on other light(s)"
- onSwitches()*.on()
+ onSwitches1()*.on()
} else if (evt.value == "off" && lastTwoStatesWere("off", recentStates, evt)) {
log.debug "detected two taps, turn off other light(s)"
- offSwitches()*.off()
+ offSwitches1()*.off()
}
}
else {
}
}
-private onSwitches() {
+private onSwitches1() {
(switches + onSwitches).findAll{it}
}
-private offSwitches() {
+private offSwitches1() {
(switches + offSwitches).findAll{it}
}