HA unavailable after power outage

Hi Guys,
When my router & PI boot up when the power comes back on, my phone connection to HA is unavailable.
I have to reboot PI 4 to be able to connect to my HA. I notice that if my router boots first & then my PI , then everything works fine.
Any idea how I can solve this, thanks

I am using the cloud connection to my HA via my phone.

Use a UPS.

Are you running the latest version of HA?

If your HA instance is up before your network and Internet connection it can take a few minutes to re-establish the connection to NabuCasa. How long did you wait?

1 Like

Pieter , uts hours later because I am not home. So the only way to get connected again is to restart homeassistant. Also always updated to the latest version and its been happening on all the versions of HA.
So I am not sure why Nabacsa is unable to connect. My pi is also has a static ip address.
Struggling to see whats causing it , I do have a UPS but it does not last for 2 hours.
Thanks

I can understand the frustration, for sure.

I’m asking, because I had the issue at some point but it then disappeared. I could see in the logs it wasn’t connecting. Are there any errors in your logs (once you are able to access it again)?