core: ZHA not loading properly sometimes

The problem

It seems that ZHA is sometimes not loading properly. The integration overview says “Not loaded”. The logs show the following

2022-05-09 00:52:56 ERROR (MainThread) [bellows.ezsp] NCP entered failed state. Requesting APP controller restart                                
2022-05-09 00:53:37 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: zha
...
2022-05-09 01:02:31 INFO (MainThread) [homeassistant.bootstrap] Home Assistant initialized in 611.00s
...

With debug level enabled, not much more is shown:

...
2022-05-09 10:49:14 DEBUG (MainThread) [bellows.ezsp] Resetting EZSP
2022-05-09 10:49:14 ERROR (MainThread) [bellows.ezsp] NCP entered failed state. Requesting APP controller restart
2022-05-09 10:49:14 DEBUG (MainThread) [homeassistant.bootstrap] Running timeout Zones: {}               
2022-05-09 10:49:14 DEBUG (MainThread) [homeassistant.bootstrap] Integration remaining: {'zha': 8.612921}
...
2022-05-09 10:49:55 DEBUG (MainThread) [homeassistant.bootstrap] Running timeout Zones: {}
2022-05-09 10:49:55 DEBUG (MainThread) [homeassistant.bootstrap] Integration remaining: {'zha': 49.801495}
2022-05-09 10:49:56 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: zha
...

This is on Yellow prototype which uses EmberZNet based radio. From what I can tell, the problem appeared since 2022.05 beta.

What version of Home Assistant Core has the issue?

core-2022.05.3

What was the last working version of Home Assistant Core?

core-2022.04.7

What type of installation are you running?

Home Assistant OS

Integration causing the issue

zha

Link to integration documentation on our website

https://www.home-assistant.io/integrations/zha/

Diagnostics information

Diagnostics download is not available since the integration hasn’t been loaded.

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 2
  • Comments: 24 (23 by maintainers)

Most upvoted comments

Nevermind. Was able to reproduce, on 3rd restart it won’t start o_O