I am using Node-Red for my Automations, and it works fine. however I have a problem when rebooting Home-Assistant.
When that is done all my entities will get a “new” state (same as before), like “on” before restart to “on” after restart.
Because of this Node-Red’s state node will trigger because the state is set.
In the state changed node there is an array of checkboxes at the bottom asking if you want to ignore state changes to and from specific states. Two of the options should be “previous state was unknown” and “previous state does not exist” (I think, I’m not looking at it right now so my wording may be off, hopefully it’s close enough).
Check those two boxes to ignore the start up state change. The first state change after startup goes from unknown or non-existent state to a real state (on or off in the case of a boolean, something else real for others). Checking those boxes should ignore that unwanted event.
Surprised to see I came upon that very same problem yesterday and had to check all the ignore if unavailable to avoid that. Do you know if those boxes can all be checked at once? instead of going node by node, one by one?
Sorry I’m not aware of any way to do that. Although sometimes I don’t check of all them personally, if I’m I am interested in those types of state changes for a flow. Particularly the one that is “ignore if previous state matches current state” if I’m interested in an attribute change.
But that’s uncommon, usually I just check them all as well.