ksya / ha-nefiteasy

Nefit Easy connection for Home Assistant
74 stars 30 forks source link

Intergration stuck on Initialising #266

Open MMK21Hub opened 11 months ago

MMK21Hub commented 11 months ago

I've just restarted Home Assistant and the nefiteasy integration has been in the Initialising stage for many hours. This also prevents other entities from loading and means that HA never considers itself to be fully started.

Note that my thermostat is currently disconnected from WiFi - this is likely the cause of this bug.

I can provide debug logs if required.

RobBie1221 commented 10 months ago

If the connect is unsuccessful, the integration should tell HA that it is not ready after 30 seconds and retry later. Apparently that does not happen in the way it is intended.

Could you enable debug logging on the integration and share it?

ikke-zelf commented 8 months ago

same issue here. disable/enable toggle does not help

ikke-zelf commented 8 months ago

I can 'enable debug logging', but have no clue how and where to get that logging from to share

MMK21Hub commented 8 months ago

@ikke-zelf If I recall correctly, when you disable debug logging for the integration, you get a prompt to download the log file.

tomton68 commented 5 months ago

Same problem seen since yesterday, here in the Netherlands. Is anyone working on a fix? Re-powering seems to be the only way to get going again.

RobBie1221 commented 5 months ago

Nobody is working on this, as it's unclear what the exact issue is. To get that clear, as requested above, debug info is needed.

I do wonder, the issue described is because the thermostat is disconnected from the WiFi. You say you have the same issue. Why is it disconnected from the WiFi?

tomton68 commented 5 months ago

I enabled debug logging, but no errors till now.

I have the feeling that for an unknown reason the Nefit Easy was disconnected from WiFi, which resulted in getting the Nefit integration stuck in initializing. Reconnecting with WiFi solved the issue today.

RobBie1221 commented 5 months ago

Was it stuck on initializing or did is simply crash?

The issue description here describes: when I restart home assistant and my nefit easy is offline, the integration is stuck on initializing and prevents home assistant from starting up.

From what you describe you have a completely different issue. Did you have a look at recently closed issues? Are you on the latest status released last week?

dhover commented 3 months ago

Maybe the problem is the rate limit or the availalibility of the Nefit API. E.g. If you exceed the limit I've seen the thermostat is disconnect from the Wifi. If you physically disconnect the thermostat and connect the thermostat again most of the time the Wifi is connected again. I've seen this many times.

Also if you've been testing and restart HA a few times the rate limit most of the time will be exceeded. Now I've added custom_components.nefiteasy: debug aionefit: debug to activate the debug logging. The next time it fails I'll add the debug logs.