iostream212
Active Member
I have a low voltage light connected to one of my Elks outputs. I have a task called 'Light On' and 'Light Off'.
I am trying to combine the tasks so it is called 'Light On/Off' but my rules aren't working as expected. I just want the task to toggle
the output between on and off.
All this does nothing. If the light is already on this task will turn it off.
I am trying to combine the tasks so it is called 'Light On/Off' but my rules aren't working as expected. I just want the task to toggle
the output between on and off.
Code:
WHENEVER Light On/Off IS ACTIVATED
THEN TURN Light (Out 16) ON
THEN TURN Output 100 ON
Code:
WHENEVER Light On/Off IS ACTIVATED
AND Output 100 STATE IS ON
THEN TURN Light (Out 16) OFF
THEN TURN Output 100 OFF
All this does nothing. If the light is already on this task will turn it off.