Hi everyone,
after the awesome community already helped me perfectly with solving my first problem, I’m now facing a new challenge. I’ve been using Home Assistant for about two months now and have gradually expanded the integrated devices and services. It started with a few smart devices, but in the meantime I’ve fallen down the self-hosting rabbit hole and now host services like Vaultwarden, Wireguard, Linkwarden… alongside Home Assistant.
(Now crossposting this issue here and in reddit)
My Setup:
- Raspberry Pi 4 Model B 4GB with Home Assistant OS (v25.1.1; with about 70 automations and 80 integrations)
- 1TB SSD (connected directly to the Pi via USB - it wouldn’t boot via the USB hub, but it doesn’t seem to cause a power problem)
- Add-ons: including Studio Code Server, Samba, InfluxDB/Grafana, Music Assistant, WireGuard, AdGuard Home, MQTT Broker & Explorer, Frigate (with one camera and Coral TPU - connected to the USB hub with its own power supply), Vaultwarden(Bitwarden), Linkwarden
- Average RAM usage: 60%, with 10-20% higher peaks (especially when using add-ons like Samba or Studio Code Server, which are therefore only activated when needed)
- Since the Pi tends to get warmer under load, there is a CPU temperature control via GPIO fan (activates when the temperature is above 60°C for several minutes or briefly above 70°C. It then reliably cools down to 35°C and only then deactivates again)
My Problem (Connection Drops): Recently, I’ve been experiencing repeated connection drops to Home Assistant. The user interface becomes unavailable, and I can’t SSH into the Pi. Sometimes it reconnected after a few minutes, sometimes it took hours to fix itself. A few times I had to hard reboot the Pi by disconnecting the power. Since I tried to set up an old phone as a wall panel yesterday (where I only created a new MQTT user in the broker and configured WallPanel on the phone - so established the MQTT connection), the problem has worsened. Immediately after establishing the connection, the interface was unavailable again and could not recover on its own. Since then, Home Assistant has been completely unreachable, even after several hard reboots. When I access the URL (DuckDNS/Let’s Encrypt; the internal URL is therefore identical to the external one), I see the Home Assistant boot screen, but I can’t get to the login because a connection error with a countdown to the next attempt is always displayed. I therefore suspect that at least parts of the system are running.
Update: Last night I tried disconnecting the USB hub before rebooting, and lo and behold: Home Assistant boots without any problems and the interface is accessible again (only Frigate couldn’t start without the Coral, of course, but that was fixed by connecting the hub after booting)!
Until I drove to work this morning, everything worked fine (at three o’clock in the morning HA restarts automatically, where it didn’t seem to have any problems either). During the 30 minute drive it seems to have crashed again and has been unreachable since then. Since the hub is currently connected again, I suspect that it will be available again as soon as I disconnect it and hard reboot…
But I wonder why it always runs for a few hours first before the problem occurs (and it always happens when I’m away from home…)
Has anyone had similar experiences with connection drops and USB hubs (I use the SABRENT USB Hub Active 3)?
Could the hub be the cause of the problems (or is it somehow related to the Coral)? I’m unsure if it makes sense to buy a new hub and test it or if that’s just a symptom, not the cause…
Does someone know, what would be the best next step to ensure the stability of Home Assistant?
I am grateful for any help! Thank you!