All my lights turn off when I restart HA

Hi all,

Half a year ago I got my HA for the first time. I have been learning a lot (read: made a lot of mistakes :joy:), so, after having screwed up my zigbee setup, I thought I’d be better off starting all over.

I’ve setup everything with a lot less clutter, but now I only have one thing that’s really annoying.

When I restart HA, all my lights turn off. They don’t remain in the state they’re in. I’ve got some lights on zigbee which stay on, but the ones that are connected via WIFI (homewizard energy integration) all turn off. They’re all sockets of which I changed the entities to ‘light’ and used the lights in my automations.

I’ve been googling it, but don’t seem to be able to find the answer to my problem. I hope you guys can help.

Tell me what data you need to analyze this and I’ll provide as fast as possible.

With kind regards, Sjoerd

Look for automations that turn lights off that were triggered immediately after a restart. They may not have taken changes into account from unavailable to available. Or rather, failed to have excluded those from triggering. Look in the log to see if anything was mentioned as the trigger for turning it off.

Thank you for the tip. I’ll look into that and let you know. The strange thing is, they turn off THE INSTANT HA shuts down. So, it’s not happening at startup.

That may be because of automations that react on things going unavailable. But if it is the integration itself casuing problems, the integration owner may need to fix it.

I’ve found out that it was one automation that’s linked to my smart rockerswitch.

I’ll try and set a new version up and let you know where the problem was hiding.

Ok! I found the culprit.

I had an automation to toggle the lights downstairs if the state of the rockerswitch changed. That was the problem! So it was indeed an entity that changed.

I made the trigger to be ‘single press’ and now everything keeps turned on.

Thank you so much for thinking with me and putting me on the right track!

1 Like