Hi guys,
I already have this flow below that when i set my house alarm it checks to see if any doors or windows are open and if any are open it will notify me but if everything’s ok it will set the alarm and turns lights off etc.
But i want one lamp (Room lamp in pic) to remain on until the door (binary_sensor.living_room_door_contact) has closed then turn off.
So i thought a trigger state node with the 2 conditions would work but the light is remaining on and nothings coming through when i put a debug node.
Which way would be best for me to do this.
Thanks
I would just use the “wait until” node and wait until the door is closed. You can optionally specify a “time out” period. If something else is a condition (not sure what flex_status is) just do that as a separate current state node before or after the “wait until” node.
Thanks i didn’t think about that just changed and will test it later.
The flex_status is just a sensor that says if my alarm is either Unset/Part Set or Full Set.
The trigger node input is deceiving, giving it the appearance of “conditions type” node. It’s best to look at it as an event state node that allows conditions.
The trigger node fires a message when it’s settings are met, not on input. The input is primarily used enable/disable the node.
You can use a current state node as a “conditions” type node, to check a state or a wait node to wait for a state to change.