I am trying to check whether a door has been open for at least 5 min or not. I tried the current_state node which easily allows me to wait for a time and then check the entity state but for some reason, it does not work for me and not sure why, and by no works I mean it never outputs anything none of the debug nodes (not sure if the reason is that is a binary_sensor.sliding_door_master_room but I doubt it):
Current state ONLY sends when itâs either coming out of a wait that was previously triggered, like @Rudd-O says - OR if you triggered the node somehow with any message incoming. Your current state node is not sending anything because no message came in to tell it to.
The Trigger state nodes (or events: state node) send on change - so they fire by themselves on ANY change.
So think of them like this:
When âTHINGâ Changes Send Message - Use Trigger State or events: state
I need to ask the current state of âTHINGâ and get a response - current state
So in your second image - change the SECOND trigger node to a current state node and youâll be where you want to be.
You dont want to use trigger state for both - because on change BOTH trigger state nodes fire and send messages. THe first one into the delay, and the second one into whatever comes next. So youâd get:
Fire > wait 5 min (AND) Fire send down the line, then 5 minutes later - another Fire which will send the original message down the line>
If you use ONLY current state - you never see anything fire
But by using trigger state then the wait - into current state, what will happen is it will fire on its own, wait, then send that message into the current state which will get the CURRENT status and pass it along.