Home Assistant constantly losing connection - pls help

@stevemann are you also experiencing this issue? If so, try Home Assistant constantly losing connection - pls help - #17 by code-in-progress this solution.

Constantly. I would open the Home Assistant tab in my browser. Then there would either be my dashboard, but the “Connection Lost” popup would be there, or I would only see the Home Assistant logo with “Trying to reconnect” underneath.

Rebooting the router and/or clearing browser cache did nothing.

I cannot say if connections drop at the very exact same moment, but I can confirm that, when this happens, none of our devices will be able to connect. So let’s say my computer loses connection – if I try my Android, it will not work. My girlfriends Android will not work, either.
So while I don’t know if connections get lost simultaneously, I do know that they must all at least drop around the same time.

That sounds more like a network problem.

So Home Assistant is never online?

@stevemann not network related. The issue has been solved and it’s all in this thread. Lovelace configuration caused, removing the responsible cards worked.

1 Like

Which cards?

One of them was an iframe card, pointing to some file on the hass device. I don’t remember which ones the other were – they were part of my testing dashboard where I test all sorts of cards. I simply removed all that looked like they could be responsible for this traffic.

So let’s say you have a custom card that pulls some sort of data from your local hass server, and a regular entities card… most likely, the regular entities card will not be responsible for the issue.

Which custom cards to you use?

I have had a similar situation. In my case I believe the reason has been a couple of wrong defined templates in the template section. Meteorological Sensors obtained from internet got unavailable/undefined and it seems it was creating the unavailability of the frontend. The strange thing it that those sensors were defined some time ago and I had never have this issue. Seems to me like that new release of HA has acted differently??.

1 Like

Just wondering if anyone else is still having this issue. I lose connection every minute or so. I can get in long enough to see my dashboard, but I get dropped before I can update integrations. Even getting to the restart menu has been a race against the clock. Then after I DC, I can get back in about a minute later.

My automatons are working, and everything in my house seems to be using the network just fine, I just cant get in through the app or url long enough to actually do anything. I’ve power cycled the router, modem, and Pi4 running the hassos just to be safe, but that didnt fix anything.

I’ve tried deleting all the cards I added around the time the problem started, even though I havent been using anything exotic. That doesn’t seem to have fixed anything either…

The what?

Then Home Assistant is running.

Have you tried using a browser on the same network?

Sorry, DC=disconnect. I’m having the same issue on the home network, wifi and ethernet. I’ve narrowed the problem down to the matter integration. If I remove it, the problem goes away completely. As soon as put it back in, I start to lose connection again. Hella frustrating, but I need to dig through the matter section of the forum. Maybe someone has fixed this over there already…

same here… every minutes keep on connecting…

I have somewhere the same issue. After starting up my HA is reachable for about one minute after that he went offline and will be not reachable anymore (not locally and
not via Nabu Casa). However the instance self keeps running, my automations are still working.

I got the loading page which will keeping loading until eternity.

I got the same issue now, sometimes you get into the home page, put clicking for another page will bring up cannot load page
or
using chrome gives
This site can’t be reached

**IP address ** refused to connect.

Watching the browser, it says reconnecting then you see it starting services so its like its continually rebooting

I have tried turning the Pi off completely but still has the issue.

I love this platform having come from Smartthings and Hue but this is a major issue and doesn’t seem to be getting any traction.

If your device is continually rebooting you should check the logs and also connect a screen / TV and a keyboard to see what is going on.

Everybody can tell you it is an issue on your side…it isnt. My Nabu Casa connection is very unreliable too, eventhopugh the local version works just fine.

Also Z2M is very laggy withttthe NC url whilst on local url is very snappy. Clearly this is a server issue

Im actually quite sure it is Z2M related…

Does it continue if HA is restarted in safe mode?

I have removed all the hacs integrations…removed hacs… still is an issue…

stopped Z2M, all was suddenly fine. As soon as you start Z2M startts failing after a while

and especcialy when you do ‘permit all’ within Z2M nabu casa connection fails immediattly

Are you sure you don’t have any conflicting ports?

No i dont…in safe mode using NC url z2m doesnt load…over local it does

and in safe mode it also shows connection failed issues when trying to open Z2M