I want to turn on some lights when I deactivate my home alarm and the time is between sunset and midnight. The state of the alarm system is detected by a motion sensor that is tripped when the alarm is active. I want the Reactor sensor to trigger only when the state of motion sensor changes from 1 to 0.
This is my current conditions.
I have understood that the condition resets itself if I use the operator
changes without terminal values but I don’t want the condition to be true when i activate the alarm (changes from 0 to 1).
What is the best way to solve my problem?