The 2023.10.4 stable branch broke all zigbee devices using the ZHA integration with the HUSBZB-1 hardware.
Manually downgrading to 2023.10.3 brought them back. I did not binary search between versions.
What version of Home Assistant Core has the issue?
2023.10.4
What was the last working version of Home Assistant Core?
2023.10.3
What type of installation are you running?
Home Assistant Container
Integration causing the issue
ZHA
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
2023-10-22 08:55:28.313 WARNING (MainThread) [homeassistant.components.zha.core.gateway] Couldn't start EZSP = Silicon Labs EmberZNet protocol: Elelabs, HUSBZB-1, Telegesis coordinator (attempt 1 of 3)
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/bellows/ezsp/protocol.py", line 68, in command
return await future
^^^^^^^^^^^^
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 201, in async_initialize
await self.application_controller.startup(auto_form=True)
File "/usr/local/lib/python3.11/site-packages/zigpy/application.py", line 198, in startup
await self.initialize(auto_form=auto_form)
File "/usr/local/lib/python3.11/site-packages/zigpy/application.py", line 150, in initialize
await self.start_network()
File "/usr/local/lib/python3.11/site-packages/bellows/zigbee/application.py", line 184, in start_network
await self._reset()
File "/usr/local/lib/python3.11/site-packages/bellows/ezsp/protocol.py", line 67, in command
async with asyncio_timeout(EZSP_CMD_TIMEOUT):
File "/usr/local/lib/python3.11/asyncio/timeouts.py", line 111, in __aexit__
raise TimeoutError from exc_val
TimeoutError
2023-10-22 08:55:31.317 DEBUG (bellows.thread_0) [zigpy.serial] Opening a serial connection to '/dev/serial/by-id/usb-Silicon_Labs_HubZ_Smart_Home_Controller_61201412-if01-port0' (57600 baudrate)
2023-10-22 08:55:33.030 DEBUG (MainThread) [zigpy.application] Network info: NetworkInfo(extended_pan_id=c3:7d:54:d5:97:e8:7e:a9, pan_id=0x0EA8, nwk_update_id=0, nwk_manager_id=0x0000, channel=15, channel_mask=<Channels.ALL_CHANNELS: 134215680>, security_level=5, network_key=Key(key=62:21:51:ec:23:83:6c:b6:34:3e:e0:25:c0:ac:e8:72, tx_counter=22708225, rx_counter=0, seq=0, partner_ieee=ff:ff:ff:ff:ff:ff:ff:ff), tc_link_key=Key(key=5a:69:67:42:65:65:41:6c:6c:69:61:6e:63:65:30:39, tx_counter=294912, rx_counter=0, seq=0, partner_ieee=00:0d:6f:00:12:00:b2:c8), key_table=[], children=[], nwk_addresses={}, stack_specific={}, metadata={'ezsp': {'manufacturer': 'HubZ ZigBee', 'board': 'HUSBZB-1', 'version': '6.7.8.0 build 373', 'stack_version': 8, 'can_burn_userdata_custom_eui64': True, 'can_rewrite_custom_eui64': False}}, source='bellows@0.36.7')
2023-10-22 08:55:33.030 DEBUG (MainThread) [zigpy.application] Node info: NodeInfo(nwk=0x0000, ieee=00:0d:6f:00:12:00:b2:c8, logical_type=<LogicalType.Coordinator: 0>)
2023-10-22 08:55:34.652 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback ThreadsafeProxy.__getattr__.<locals>.func_wrapper.<locals>.check_result_wrapper() at /usr/local/lib/python3.11/site-packages/bellows/thread.py:110
Traceback (most recent call last):
File "/usr/local/lib/python3.11/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.11/site-packages/bellows/thread.py", line 111, in check_result_wrapper
result = call()
^^^^^^
File "/usr/local/lib/python3.11/site-packages/bellows/ezsp/__init__.py", line 337, in frame_received
self._protocol(data)
File "/usr/local/lib/python3.11/site-packages/bellows/ezsp/protocol.py", line 119, in __call__
assert expected_id == frame_id
^^^^^^^^^^^^^^^^^^^^^^^
AssertionError
2023-10-22 08:55:39.633 ERROR (MainThread) [zigpy.application] Couldn't start application
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/bellows/ezsp/protocol.py", line 68, in command
return await 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.11/site-packages/zigpy/application.py", line 198, in startup
await self.initialize(auto_form=auto_form)
File "/usr/local/lib/python3.11/site-packages/zigpy/application.py", line 150, in initialize
await self.start_network()
File "/usr/local/lib/python3.11/site-packages/bellows/zigbee/application.py", line 184, in start_network
await self._reset()
File "/usr/local/lib/python3.11/site-packages/bellows/ezsp/protocol.py", line 67, in command
async with asyncio_timeout(EZSP_CMD_TIMEOUT):
File "/usr/local/lib/python3.11/asyncio/timeouts.py", line 111, in __aexit__
raise TimeoutError from exc_val
TimeoutError
2023-10-22 08:55:39.634 WARNING (MainThread) [homeassistant.components.zha.core.gateway] Couldn't start EZSP = Silicon Labs EmberZNet protocol: Elelabs, HUSBZB-1, Telegesis coordinator (attempt 2 of 3)
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/bellows/ezsp/protocol.py", line 68, in command
return await 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.11/site-packages/zigpy/application.py", line 198, in startup
await self.initialize(auto_form=auto_form)
File "/usr/local/lib/python3.11/site-packages/zigpy/application.py", line 150, in initialize
await self.start_network()
File "/usr/local/lib/python3.11/site-packages/bellows/zigbee/application.py", line 184, in start_network
await self._reset()
File "/usr/local/lib/python3.11/site-packages/bellows/ezsp/protocol.py", line 67, in command
async with asyncio_timeout(EZSP_CMD_TIMEOUT):
File "/usr/local/lib/python3.11/asyncio/timeouts.py", line 111, 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/components/zha/core/gateway.py", line 201, in async_initialize
await self.application_controller.startup(auto_form=True)
File "/usr/local/lib/python3.11/site-packages/zigpy/application.py", line 201, in startup
await self.shutdown()
File "/usr/local/lib/python3.11/site-packages/zigpy/application.py", line 406, in shutdown
await self._dblistener.shutdown()
File "/usr/local/lib/python3.11/site-packages/zigpy/appdb.py", line 187, in shutdown
await self._set_isolation_level(None)
File "/usr/local/lib/python3.11/site-packages/zigpy/appdb.py", line 205, in _set_isolation_level
await self._db._execute(lambda: setattr(self._db, "isolation_level", level))
File "/usr/local/lib/python3.11/site-packages/aiosqlite/core.py", line 126, in _execute
raise ValueError("Connection closed")
ValueError: Connection closed
2023-10-22 08:55:42.637 DEBUG (bellows.thread_0) [zigpy.serial] Opening a serial connection to '/dev/serial/by-id/usb-Silicon_Labs_HubZ_Smart_Home_Controller_61201412-if01-port0' (57600 baudrate)
2023-10-22 08:55:44.052 WARNING (bellows.thread_0) [bellows.uart] Received an unexpected reset: <NcpResetCode.RESET_SOFTWARE: 11>
2023-10-22 08:55:47.644 ERROR (MainThread) [zigpy.application] Couldn't start application
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/zigpy/application.py", line 197, in startup
await self.connect()
File "/usr/local/lib/python3.11/site-packages/bellows/zigbee/application.py", line 142, in connect
await ezsp.startup_reset()
File "/usr/local/lib/python3.11/site-packages/bellows/ezsp/__init__.py", line 159, in startup_reset
await self.reset()
File "/usr/local/lib/python3.11/site-packages/bellows/ezsp/__init__.py", line 185, in reset
await self._gw.reset()
TimeoutError
2023-10-22 08:55:47.645 WARNING (MainThread) [homeassistant.components.zha.core.gateway] Couldn't start EZSP = Silicon Labs EmberZNet protocol: Elelabs, HUSBZB-1, Telegesis coordinator (attempt 3 of 3)
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/zigpy/application.py", line 197, in startup
await self.connect()
File "/usr/local/lib/python3.11/site-packages/bellows/zigbee/application.py", line 142, in connect
await ezsp.startup_reset()
File "/usr/local/lib/python3.11/site-packages/bellows/ezsp/__init__.py", line 159, in startup_reset
await self.reset()
File "/usr/local/lib/python3.11/site-packages/bellows/ezsp/__init__.py", line 185, in reset
await self._gw.reset()
TimeoutError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 201, in async_initialize
await self.application_controller.startup(auto_form=True)
File "/usr/local/lib/python3.11/site-packages/zigpy/application.py", line 201, in startup
await self.shutdown()
File "/usr/local/lib/python3.11/site-packages/zigpy/application.py", line 406, in shutdown
await self._dblistener.shutdown()
File "/usr/local/lib/python3.11/site-packages/zigpy/appdb.py", line 187, in shutdown
await self._set_isolation_level(None)
File "/usr/local/lib/python3.11/site-packages/zigpy/appdb.py", line 205, in _set_isolation_level
await self._db._execute(lambda: setattr(self._db, "isolation_level", level))
File "/usr/local/lib/python3.11/site-packages/aiosqlite/core.py", line 126, in _execute
raise ValueError("Connection closed")
ValueError: Connection closed
2023-10-22 08:55:47.647 INFO (MainThread) [universal_silabs_flasher.flasher] Probing ApplicationType.GECKO_BOOTLOADER at 115200 baud
2023-10-22 08:55:47.647 DEBUG (MainThread) [zigpy.serial] Opening a serial connection to '/dev/serial/by-id/usb-Silicon_Labs_HubZ_Smart_Home_Controller_61201412-if01-port0' (115200 baudrate)
2023-10-22 08:55:49.651 INFO (MainThread) [universal_silabs_flasher.flasher] Probing ApplicationType.CPC at 460800 baud
2023-10-22 08:55:49.651 DEBUG (MainThread) [zigpy.serial] Opening a serial connection to '/dev/serial/by-id/usb-Silicon_Labs_HubZ_Smart_Home_Controller_61201412-if01-port0' (460800 baudrate)
2023-10-22 08:55:53.959 INFO (MainThread) [universal_silabs_flasher.flasher] Probing ApplicationType.CPC at 115200 baud
2023-10-22 08:55:53.959 DEBUG (MainThread) [zigpy.serial] Opening a serial connection to '/dev/serial/by-id/usb-Silicon_Labs_HubZ_Smart_Home_Controller_61201412-if01-port0' (115200 baudrate)
2023-10-22 08:55:58.268 INFO (MainThread) [universal_silabs_flasher.flasher] Probing ApplicationType.CPC at 230400 baud
2023-10-22 08:55:58.268 DEBUG (MainThread) [zigpy.serial] Opening a serial connection to '/dev/serial/by-id/usb-Silicon_Labs_HubZ_Smart_Home_Controller_61201412-if01-port0' (230400 baudrate)
2023-10-22 08:56:02.577 INFO (MainThread) [universal_silabs_flasher.flasher] Probing ApplicationType.EZSP at 115200 baud
2023-10-22 08:56:02.578 DEBUG (MainThread) [zigpy.serial] Opening a serial connection to '/dev/serial/by-id/usb-Silicon_Labs_HubZ_Smart_Home_Controller_61201412-if01-port0' (115200 baudrate)
2023-10-22 08:56:07.582 INFO (MainThread) [universal_silabs_flasher.flasher] Probing ApplicationType.SPINEL at 460800 baud
2023-10-22 08:56:07.582 DEBUG (MainThread) [zigpy.serial] Opening a serial connection to '/dev/serial/by-id/usb-Silicon_Labs_HubZ_Smart_Home_Controller_61201412-if01-port0' (460800 baudrate)
2023-10-22 08:56:07.674 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: zha
2023-10-22 08:56:11.893 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry HubZ Smart Home Controller - HubZ ZigBee Com Port, s/n: 61201412 - Silicon Labs for zha
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/zigpy/application.py", line 197, in startup
await self.connect()
File "/usr/local/lib/python3.11/site-packages/bellows/zigbee/application.py", line 142, in connect
await ezsp.startup_reset()
File "/usr/local/lib/python3.11/site-packages/bellows/ezsp/__init__.py", line 159, in startup_reset
await self.reset()
File "/usr/local/lib/python3.11/site-packages/bellows/ezsp/__init__.py", line 185, in reset
await self._gw.reset()
TimeoutError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 399, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/zha/__init__.py", line 172, in async_setup_entry
await zha_gateway.async_initialize()
File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 214, in async_initialize
raise exc
File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 201, in async_initialize
await self.application_controller.startup(auto_form=True)
File "/usr/local/lib/python3.11/site-packages/zigpy/application.py", line 201, in startup
await self.shutdown()
File "/usr/local/lib/python3.11/site-packages/zigpy/application.py", line 406, in shutdown
await self._dblistener.shutdown()
File "/usr/local/lib/python3.11/site-packages/zigpy/appdb.py", line 187, in shutdown
await self._set_isolation_level(None)
File "/usr/local/lib/python3.11/site-packages/zigpy/appdb.py", line 205, in _set_isolation_level
await self._db._execute(lambda: setattr(self._db, "isolation_level", level))
File "/usr/local/lib/python3.11/site-packages/aiosqlite/core.py", line 126, in _execute
raise ValueError("Connection closed")
ValueError: Connection closed
2023-10-22 08:56:18.792 INFO (MainThread) [homeassistant.bootstrap] Home Assistant initialized in 72.05s
The problem
The 2023.10.4 stable branch broke all zigbee devices using the ZHA integration with the HUSBZB-1 hardware.
Manually downgrading to 2023.10.3 brought them back. I did not binary search between versions.
What version of Home Assistant Core has the issue?
2023.10.4
What was the last working version of Home Assistant Core?
2023.10.3
What type of installation are you running?
Home Assistant Container
Integration causing the issue
ZHA
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?