Is there a way to turn off a switch and not trigger it
Posted: 15 May 2013 13:52
Is there a way to turn off a switch but not necessarily trigger the script attached to its off state?
I want to have two switches, but only one can be on at any time (similar to radio mode). If I press one switch the other switch turns off. My problem is that each switch has a script that is triggered when the switch reaches zero and I don't necessarily want this script triggered when the switch has changed state.
In essence what I am asking to do is to have a switch only trigger its script if it is literally PRESSED, and not if it is turned on or off by an external script.
I want to have two switches, but only one can be on at any time (similar to radio mode). If I press one switch the other switch turns off. My problem is that each switch has a script that is triggered when the switch reaches zero and I don't necessarily want this script triggered when the switch has changed state.
In essence what I am asking to do is to have a switch only trigger its script if it is literally PRESSED, and not if it is turned on or off by an external script.