ha-nefiteasy icon indicating copy to clipboard operation
ha-nefiteasy copied to clipboard

Intergration stuck on Initialising

Open MMK21Hub opened this issue 1 year ago • 9 comments

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.

MMK21Hub avatar Jul 16 '23 13:07 MMK21Hub

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?

RobBie1221 avatar Aug 16 '23 08:08 RobBie1221

same issue here. disable/enable toggle does not help

ikke-zelf avatar Nov 01 '23 17:11 ikke-zelf

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

ikke-zelf avatar Nov 01 '23 17:11 ikke-zelf

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

MMK21Hub avatar Nov 04 '23 13:11 MMK21Hub

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.

tomton68 avatar Jan 16 '24 11:01 tomton68

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?

RobBie1221 avatar Jan 16 '24 14:01 RobBie1221

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.

tomton68 avatar Jan 16 '24 21:01 tomton68

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?

RobBie1221 avatar Jan 17 '24 06:01 RobBie1221

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.

dhover avatar Mar 28 '24 16:03 dhover