Events-state not updating after HA restart

I have a simple flow that controls my garage heater to turn on and off dependent on time of day. Since it is summer now I no longer need it to turn on for me so I have a input_select in HA that I can set to “auto”, “off” or “on”.

Problem is if I have it set to “off” and restart HA Node Red will not read the state until I toggle the input_select to “auto” and then “off”

Does anyone know a way around this?

image

image

Not entirely sure what you’re doing here, do you trigger the timer when the input select changes?

Shouldn’t the timer be the trigger, then use a check state node to see what the input select is set to before doing anything?

Apologies if I’ve misunderstood.

You should check the Output on Connect, then nodered will read proper state after HA restarted.

e1db094b44f66ebff7a1de7c2c50e2320f95d38e

2 Likes

I’ve also noticed that sometimes putting a small delay (like 15s) into the flow before the Events State will allow it to trigger/read.

Thanks. That worked for me.