1 // Automatically generated. Make future change here.
3 name: "Zwave Switch Indicator Light Manager",
5 author: "Scott Gibson",
6 description: "Changes the indicator light setting to always be off",
8 iconUrl: "https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience.png",
9 iconX2Url: "https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience%402x.png"
13 section("When these switches are toggled adjust the indicator...") {
14 input "mains", "capability.switch",
16 title: "Switches to fix...",
20 section("When these switches are toggled adjust the indicator in reverse (useful for Linear brand)...") {
21 input "mains2", "capability.switch",
23 title: "Switches to fix in reverse...",
31 subscribe(mains, "switch.on", switchOnHandler)
32 subscribe(mains, "switch.off", switchOffHandler)
33 subscribe(mains2, "switch.on", switchOnHandler2)
34 subscribe(mains2, "switch.off", switchOffHandler2)
40 subscribe(mains, "switch.on", switchOnHandler)
41 subscribe(mains, "switch.off", switchOffHandler)
42 subscribe(mains2, "switch.on", switchOnHandler2)
43 subscribe(mains2, "switch.off", switchOffHandler2)
44 log.info "subscribed to all of switches events"
47 def switchOffHandler(evt) {
48 log.info "switchoffHandler Event: ${evt.value}"
49 mains?.indicatorWhenOn()
52 def switchOnHandler(evt) {
53 log.info "switchOnHandler Event: ${evt.value}"
54 mains?.indicatorWhenOff()
57 def switchOffHandler2(evt) {
58 log.info "switchoffHandler2 Event: ${evt.value}"
59 mains2?.indicatorWhenOff()
62 def switchOnHandler2(evt) {
63 log.info "switchOnHandler2 Event: ${evt.value}"
64 mains2?.indicatorWhenOn()