- Posted on
Fri Aug 19, 2016 8:51 pm
-
Radjin
offline
-
- Posts: 151
- Joined: May 13, 2015
That was brilliant; those two lines of code saved me four triggers based on a variable.
dev = indigo.devices["bedroom keypadlinc"]
indigo.relay.setLedState(dev, 2, not dev.ledStates[2])
One note: 2 = KPL button 3, 3 = 4 and so on.
It's not rocket science...