Zigbee Intergration fails at every restart of HA

Every restart the Zigbee integration fails to restart - resulting in a long restart duration, missing automations.yaml and a pain to fix (always different every update).

  • The log file states an error in config_entries.py.

Would appreciate some help/guidance.

Thks,
Bernard

PS:

  1. Using the ZBT-2 transmitter since late last year.
  2. I changed out the USB cable that came with the ZBT-2 two days ago. This is the first restart of HA after that change.

Here is the log:

Logger: homeassistant.config_entries
Source: config_entries.py:787
First occurred: 09:17:22 (1 occurrence)
Last logged: 09:17:22

Setup of config entry 'Home Assistant Connect ZBT-2' for zha integration cancelled
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 787, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/zha/__init__.py", line 185, in async_setup_entry
    await zha_gateway.async_initialize()
  File "/usr/local/lib/python3.14/site-packages/zha/application/gateway.py", line 273, in async_initialize
    await self._async_initialize()
  File "/usr/local/lib/python3.14/site-packages/zha/application/gateway.py", line 256, in _async_initialize
    await self.application_controller.startup(auto_form=True)
  File "/usr/local/lib/python3.14/site-packages/zigpy/application.py", line 316, in startup
    await self.connect()
  File "/usr/local/lib/python3.14/site-packages/bellows/zigbee/application.py", line 188, in connect
    await self._ezsp.connect(use_thread=self.config[CONF_USE_THREAD])
  File "/usr/local/lib/python3.14/site-packages/bellows/ezsp/__init__.py", line 160, in connect
    await self.startup_reset()
  File "/usr/local/lib/python3.14/site-packages/bellows/ezsp/__init__.py", line 142, in startup_reset
    await self._startup_reset()
  File "/usr/local/lib/python3.14/site-packages/bellows/ezsp/__init__.py", line 134, in _startup_reset
    await self.version()
  File "/usr/local/lib/python3.14/site-packages/bellows/ezsp/__init__.py", line 187, in version
    ver, stack_type, stack_version = await self._command(
                                     ^^^^^^^^^^^^^^^^^^^^
        "version", desiredProtocolVersion=self.ezsp_version
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/local/lib/python3.14/site-packages/bellows/ezsp/__init__.py", line 239, in _command
    return await command(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.14/site-packages/bellows/ezsp/protocol.py", line 124, in command
    await self._gw.send_data(data)
asyncio.exceptions.CancelledError: Global task timeout: Bootstrap stage 2 timeout

Has there been an software update attempt since your hardware change? Is the problem you are seeing related to that and the subsequent patch/workaround?

Hi IOT7712,
Thanks for answering so quickly.

There has been no update specific to this issue (as far as I know), but I did update to the latest core version this morning (2026.5.1). Like all previous update/restarts, Zigbee failed.

I managed to get back to normal operations by

  1. emptying automations.yaml (empty file),
  2. restarting HA,
  3. Zigbee again not restarted, no reload option.
    3a. disconnected the USB cable on both ends for 10 seconds, and re-inserting
    3b. In the zigbee integration menu the reload option appeared, reloaded and back in business

Rgds,
Bernard

This happened to me a couple of times (over the past six years.) Both times, the solution was to do a full reboot of the host. Not sure if you already tried this, just sharing what little I know.