Hi,
I’m trying to understand how the current state node works. In particular the If state of the node.
Let’s make a comparison with the Events: State node
I have created a test input boolean to test the nodes, just for comparison.
As you can see in below image, the Events state node is configured to pass an output when the boolean has been ‘off’ for 5 seconds:
And in this image you can see that the expected output is generated.
I get a log when the boolean turns off, and then 5 seconds later when it has been off for 5 seconds.
However, it seems to work differently in the Current State Node.
When configured like this, (without the ‘for’ filled), it correctly outputs the state to the correct output. OFF goes through the first output, and ON in the second one.
But as soon as I set a time in the FOR field, in this example 5 seconds, it passes both ON and OFF in the same output. So even though the state of the entity is OFF, it outputs to on.
Is there someone that can explain this behaviour?