rslaufer Posted March 20, 2014 Posted March 20, 2014 I have written paired programs to toggle devices from on to off, and from off to on, after a given switch is triggered. I now need a program that be called by a REST interface that could perform that function. Is there anyway to set up a single program that could handle this. Any suggestions would be appreciated. I realize that abusing nested "if...thens", can produce some real spaghetti code, but I wish my isy994i could deal with some more complicated logical conditions than a single if - then - else statement. Thanks! -RSL-
Xathros Posted March 20, 2014 Posted March 20, 2014 Try one program (disabled) and call runIf with /rest Program: ToggleLights (disabled to prevent endless loop) If Status MyLightSwitch is not Off Then Set MyLightSwitch Off Else Set MyLightSwitch On Hope this helps. -Xathros
Recommended Posts