Issues with Latest Update for Yellow Zigbee Module (7.4.4.2)

Hi,

last night, the interface has shown a new update to the HA Yellow zigbee/thread module (from 7.4.4.1 to 7.4.4.2). I let it install and went to sleep. After a few hours, it was still at 49 % updating, and didn’t move at all. All ZigBee connections (using ZHA) were down.

I restarted HA core (maybe not the best idea at this point) and cannot get the ZigBee module to work again.

The following two entries in the log seem to be related to this:


Logger: homeassistant.config_entries
Quelle: config_entries.py:751
Erstmals aufgetreten: 07:17:44 (1 Vorkommnis)
Zuletzt protokolliert: 07:17:44

Error setting up entry Home Assistant Yellow for zha
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/bellows/uart.py", line 109, in reset
    return await self._reset_future
           ^^^^^^^^^^^^^^^^^^^^^^^^
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/bellows/ezsp/__init__.py", line 140, in connect
    await self.startup_reset()
  File "/usr/local/lib/python3.13/site-packages/bellows/ezsp/__init__.py", line 129, in startup_reset
    await self.reset()
  File "/usr/local/lib/python3.13/site-packages/bellows/ezsp/__init__.py", line 148, in reset
    await self._gw.reset()
  File "/usr/local/lib/python3.13/site-packages/bellows/uart.py", line 108, in reset
    async with asyncio_timeout(RESET_TIMEOUT):
               ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/asyncio/timeouts.py", line 116, in __aexit__
    raise TimeoutError from exc_val
TimeoutError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 751, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/zha/__init__.py", line 156, in async_setup_entry
    await zha_gateway.async_initialize()
  File "/usr/local/lib/python3.13/site-packages/zha/application/gateway.py", line 273, in async_initialize
    await self._async_initialize()
  File "/usr/local/lib/python3.13/site-packages/zha/application/gateway.py", line 256, in _async_initialize
    await self.application_controller.startup(auto_form=True)
  File "/usr/local/lib/python3.13/site-packages/zigpy/application.py", line 238, in startup
    await self.connect()
  File "/usr/local/lib/python3.13/site-packages/bellows/zigbee/application.py", line 155, in connect
    await self._ezsp.connect(use_thread=self.config[CONF_USE_THREAD])
  File "/usr/local/lib/python3.13/site-packages/bellows/ezsp/__init__.py", line 142, in connect
    await self.disconnect()
  File "/usr/local/lib/python3.13/site-packages/bellows/ezsp/__init__.py", line 207, in disconnect
    await self._gw.disconnect()
asyncio.exceptions.CancelledError: Global task timeout: Bootstrap stage 2 timeout
Logger: homeassistant.bootstrap
Quelle: bootstrap.py:931
Erstmals aufgetreten: 07:17:44 (1 Vorkommnis)
Zuletzt protokolliert: 07:17:44

Setup timed out for stage 2 waiting on set() - moving forward

When I try to reconfigure the serial interface in ZHA, it says “connection failed”, and then that the serial connection is locked by another application.

I tried restarting the entire system, and even unplugged its power connection, but that didn’t change anything.

Any ideas?

Don’t know how exactly, but the problem went away.

What I did:

  • rebooted HA in the protected mode
  • deactivated ZHA on the integrations page
  • tried (unsuccessfully) to reset the radio via the Hardware menu
  • clicked on the update button of the radio. To my big surprise, this worked, and now everything is coming back online.

Can’t find specific threads to link to at the moment, but I seem to recall that you can’t have ZHA running if you’re updating the hardware firmware. The update process & ZHA will end up fighting for control of the hardware and lead to lockups.

When you deactivated ZHA, that allowed the update to take exclusive control of the device so it could proceed normally.

3 Likes

I had the same problem with zbt1, rebooting HA didn’t fix it, but making sure that Z2Mqtt was stopped allow the firmware to update.

I rebooted again after updating the firmware (just to have a clean boot) and let HA and z2m start up normally and everything was working.

I have been struggling with this issue for quite some time, and I did not want to buy a new zigbee receiver. This finally pointed me in the right direction. I disabled all my integrations and still could not find out what was causing it to lock up. Eventually, I found out that you can disable the “Home Assistant Yellow” device which disables the LED lights and the radios in the hardware page. Then, I restarted into safe mode again, re-enabled the Yellow device, and was able to update just fine. So, I still have no idea what was causing the lock up but at least I was finally able to update :slight_smile: