Electricity breakdown and HA

we had electricity breakdown in the last 2 months
it’s happens for 5 time, and i notices that when the power came back ,
i couldn’t connect to HA witch is on my raspberry pi.
i had to tack out the power leave it for a few minuets than put the power back on, and than it was OK.
did any one experience some thing like that?

Refael

I suspect your raspberry pi is staring before your dhcp server.

i thought about it.
what can i do?

Refael

Give it a static ip.