Homeassistant network hell

I am running home assistant on Pi5. It worked well for sometime and recently I can’t make it connection properly to the network. No matter what I do it does not work. I have wifi and I just need it to be connecting automatically with static IP and be able to see the internet. Nothing works. This is a contentious nightmare that make the whole solution not usable.
What can I do?

Explain in detail what the issue is and what you have tried so we can help you.

“Network issues” is not sufficient.

After reboot no internet connection. I am trying to connect it to the wifi I want and it’s still not seeing DNS 1.1.1.1 or 8.8.8.8. Ping to google does not work. I can’t connect to the address I am getting. Rebooting again, and again no address. no internet. It’s been like this for long time. On and off. A real nightmare

It says it has the IP address 10.0.0.35. Is that in the address range your local network uses?

You should really not rely on wifi for connection to servers like Home Assistant.

Use a wired connection.

1st and most important, WiFi is not recommended. If at all possible connect via a lan cable.

Now if you insist on WiFi it can be done, I am sure there are guides here that will help. But set your static ip in your dhcp server not on the device. This will make sure your dhcp server does not give the ip address to another device. You can set the ip on the device but we see loads of problems with people trying to do this and it’s really has no advantage.

This is after I tried to set up wifi again. Ping to 1.1.1.1 no response same for 8.8.8.8 or google. Can’t connect through cable. Wifi should be good enough. Worked months without issues. Now I can’t get it to work properly again. This is the core. An automation platform without proper network connectivity is useless. This has to be fully transparent. Ask for wifi network that’s it. Instead of investing in unneeded UI features, fix this.

For a client - not a server :bulb:

In your own words:

:white_check_mark: Ethernet

Please do so by yourself. HA is open source and accepting (useful) pull requests. :raised_hands:

In case you seek help, give this short post a read and try again :point_down:

A server should always have a static IP.
It is best-practice!

If you are running a DHCP service on the network, then the static IP should be outside the DHCP pool range or if it is inside the DHCP pool range then the IP should also be reserved in the DHCP service.

  1. You need to set an IP address for it and reserve that address on your DHCP server (router)
  2. Try if at all possible to get it connected by Ethernet - but either way you still need to do #1. If you still have trouble, then TEMPORARILY connect it by ethernet (just get along cable and don’t worry about it being ugly) to see if that helps to get connected and assigned the right IP address by the DHCP server. Then once yhou have it working, then try to get the WiFi to work…

Please let us know how it went!

After fighting with it for 3 hours, adding DNS, restarting network and doing all kinds of voodoo, I can connect now but it so slow and quirky, it’s not really usable. I cannot update anything. It keeps reconnecting and fails in simple operations like showing logs. So bad.

This is beginning to sound like poor WiFi signal. Why can you not have it next to the router?

I am not a network expert and this is beyond me. What DHCP has to do with it? Can’t it work just like any other device I have? I am running phone, PC, laptop all connected without issues. I also did not have these issues before.

Sorry, can’t connect directly to the router. My network is just fine for everything else I do, even watching 4k movies

That doesn’t mean your device is seeing good WiFi signal. WiFi is a 2 way thing, your pi my be seeing good signal but unable to return it. DHCP is the server that issues ip addresses to your network, if you don’t understand what it is messing with network settings will just end up in a world of pain, as you may have now realised.

This doesn’t help. It should just work like anything else. Why is it different from any other device that just works? I don’t get it. Is there anyone who knows what to do and how to make it work? It did work a few months ago with no issues. Something is broken now. It’s not the network it’s something with HA.

I hope someone can help with it for real. Not just telling me my network is bad.

I just changed the wifi connection to a 5.0 GHz one. It’s now better. I will check and hope it will also keep working and not break again. Again to me there is a real problem with how the network is implemented. It must be automatic, simple and working out of the box. If Windows can make it, HA should be even better.

Of course it’s not without issues. Lost some of my add-ons including Node-Red with all my automations. I will reboot and see. I hope I can get it back.

In order for servers to be plug and plug you would need a way to discover it, but HA needs to work with third party devices and can not control how they discover devices and there may be many discovery methods.

Everything you are saying is screaming network problems not related to HA.
But I guess you will just repeat your same old sentences that it wasn’t like this before.
But nothing else has changed? No new neighbor with a new router? Nobody has changed their settings in the area?
No ZigBee or any other devices that is in conflict on the 2.4 GHz band?

I also had some network issues a few months ago, it wasn’t there before. That doesn’t mean it wasn’t network issues.

And from HA documentations it says:

Ethernet cable. Required for installation. After installation, Home Assistant can work with Wi-Fi, but an Ethernet connection is more reliable and highly recommended

But you still demand it to work on wifi.
Against the documentations and against everyone’s advice here.

It is… if you use what is highly recommended.
But if you do not then it’s on you.
Many tasks that is used by windows or streaming 4k video can be sent again or is buffered.
HA commands are not.

It may be that the SD card is full or corrupt.

I would suggest you backup your system, copy the backup to a memory stick, get a new SD card, image it and reload HA, copy the backup from the memory stick and restore the new HA.

Everything is working fine. No corruption. Not sure what happened. Reinstalled and flows are back. Let’s see how it goes from here

At least there is something continuous…