def onHandler(evt) {
log.debug evt.value
- log.debug onSwitches()
- onSwitches()?.on()
+ log.debug onSwitches1()
+ onSwitches1()?.on()
}
def offHandler(evt) {
log.debug evt.value
- log.debug offSwitches()
- offSwitches()?.off()
+ log.debug offSwitches1()
+ offSwitches1()?.off()
}
def dimHandler(evt) {
dimSwitches?.setLevel(evt.value)
}
-private onSwitches() {
+private onSwitches1() {
if(switches && onSwitches) { switches + onSwitches }
else if(switches) { switches }
else { onSwitches }
}
-private offSwitches() {
+private offSwitches1() {
if(switches && offSwitches) { switches + offSwitches }
else if(switches) { switches }
else { offSwitches }