I have started having this weird issue where all of my HA GUIs disconnect at the same time. They display the message “Connection lost…reconnecting” and they sit like that for several minutes then they reconnect. I have HA running on an Intel Core i5 with 32GB of RAM and and SSD. I first thought my HA box was dropping off the network but I can ping it when this issue is happening. Also thought maybe the IP is conflicting but it is a reservation on my router and I have checked that the MAC matches the reserved IP for the box. And HA is running just fine too because I get notifications, etc so I know that it’s not HA dropping off—just seems to be the GUI. Happens on wireless devices as well as wired. I tried checking the logs but unsure what to even look for…not seeing any errors anyway. I have rebooted both HA and the box several times and the issue persists. Also my Nabu Casa says it is disconnected when this happens but my internet is fine. Anyone have any ideas? This is really frustrating…
What’s on the dashboard(s) when you see this?
Cameras? A lot of entities and updates perhaps?
(the front end can crash out if it’s pushing too many updates at once or if something gets in a loop… It exhibits strangely like what you describe
)
It doesn’t seem to matter which dashboard I’m on…it has happened on any and all pages. I can have it up on my phone on one page and up on my PC on a different page and they both disconnect. CPU is under 20% and RAM usually shows around 8-10% used…
what were you doing when this happened? I know when I transfer huge file with filebrower will give me this very same issue so I avoid filebrower and use samba share instead.
Just looking at a dashboard…nothing intensive.
maybe you have a dashboard card causing problem? try right click in your web browser anywhere in the page and choose “inspect”, look at the console log for errors.
I am seeing some websocket connection errors. Invalid frame header
did you solve your problem?
Nope I did not
Are you using a proxied network environment? EDIT: See you have Nabu Casa that is disconnecting at same time. The two issues will be linked in some way, based on your network environment.
How complex is your network? Do you have multiple APs? Is your HA server connected via ethernet? VLANs?
Nabu Casa seems to disconnect at the same time. Starting to suspect my Asus router
I have 2 UniFi APs and a linksys AP (out in the shop) in addition to the Asus router’s wireless. Other than that, no VLANS, etc…just all in one 192.168.111.x subnet…
Perhaps DNS? I have had environments where slow upstream DNS server(s), (mostly ISP) sometimes have a DNS reply that is later than the router’s firewall allowed time for DNS replies, thus DNS breaks - which is your case may be the resolve of Nabu Casa(?). My workaround in such situations is either adjust firewall for DNS (53), [not preferred] or replace DNS servers with google or other reliable DNS server(s) [preferred].
This is just a hunch but it is always something I rule out once a network I manage has weird issues like this. This usually also manifests itself in midly annoying browsing issues, especially at peak times, that you may be just tolerating with refreshes but not annoying enough that you look for root cause.
Worth a shot…I’m running Adguard on my HA instance so maybe I’ll switch everything to google and see how it goes…
Mine has been doing the same the last few days also, no change to anything and was running perfectly before.
Hi, did you ever solve this? I’ve been a bit behind with my HA updates lately, but yesterday I upgraded from 2025.8 to 2025.11, and ever since, I’m getting the same thing as you. I loose connection, and either I wait for it to come back, or I reboot the mini PC I’m running HA on. Never had these problems before I did the upgrade.
I had a flaky Comcast modem and switched it out last weekend. Will wait and see if that was the cause…
Just wanted to +1 this. I get it on both my phone and the web version. I’m on a local network right next to the host running this.
(note, the only change is that i updated. there were no other changes.)
I did a bit more debugging with a packet capture. The phone sends RST packets to forcefully close tcp connections when the webapp (i have multiple installs and use “add to home screen” web home assistant vs the companion app, which has always worked fine). This is a common practice by phones to limit activity when sleeping.
It seems that the javascript does not properly detect when these sockets are dead and indefinitely hangs. The “Connection lost. Reconnecting…” never resolves if i leave the page open.
If I force quit that instance, it also fails to reconnect, sitting at “loading data”.
The companion app has the exact same behavior.
If I select some other UI elements it resolves but ONLY if I’ve not loaded those pages. For example, if i select Developer Tools, it will fix itself, but if I exit the webapp and come back, that no longer fixes things.
Seems like the retry logic is borked. Anything not cached triggers it properly to start over, but any views you’ve loaded fail to work. This is almost certainly within the JS, but unfortunately I can’t spend more time on this right now. Happy to try things if folks have suggestions.