ZHA + Conbee II randomly doesn't start after HA restart

Hi,

I have ZHA Integration via Conbee II stick with around ~10 devices. Raspberry Pi 4 with Hass.io (core-2021.5.0).

Usually everything works fine, however sometimes (quite often!) after the reboot, the Conbee II seems not to start properly. When that happens I usually see in the logs:

2021-05-07 16:40:26 ERROR (MainThread) [zigpy_deconz.uart] Lost serial connection: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
2021-05-07 16:40:26 WARNING (MainThread) [zigpy_deconz.api] Serial '/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2429010-if00' connection lost unexpectedly: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
2021-05-07 16:40:28 WARNING (MainThread) [zigpy_deconz.api] No response to 'Command.read_parameter' command with seq id '0x02'
2021-05-07 16:40:28 ERROR (MainThread) [zigpy.application] Couldn't start application
2021-05-07 16:40:28 ERROR (MainThread) [homeassistant.components.zha.core.gateway] Couldn't start deCONZ = dresden elektronik deCONZ protocol: ConBee I/II, RaspBee I/II coordinator
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 157, in async_initialize
    self.application_controller = await app_controller_cls.new(
  File "/usr/local/lib/python3.8/site-packages/zigpy/application.py", line 69, in new
    await app.startup(auto_form)
  File "/usr/local/lib/python3.8/site-packages/zigpy_deconz/zigbee/application.py", line 66, in startup
    self.version = await self._api.version()
  File "/usr/local/lib/python3.8/site-packages/zigpy_deconz/api.py", line 455, in version
    (self._proto_ver,) = await self[NetworkParameter.protocol_version]
  File "/usr/local/lib/python3.8/site-packages/zigpy_deconz/api.py", line 420, in read_parameter
    r = await self._command(Command.read_parameter, 1 + len(data), param, data)
  File "/usr/local/lib/python3.8/site-packages/zigpy_deconz/api.py", line 305, in _command
    return await asyncio.wait_for(fut, timeout=COMMAND_TIMEOUT)
  File "/usr/local/lib/python3.8/asyncio/tasks.py", line 501, in wait_for
    raise exceptions.TimeoutError()
asyncio.exceptions.TimeoutError
2021-05-07 16:40:28 WARNING (MainThread) [homeassistant.config_entries] Config entry 'ConBee II, s/n: DE2429010 - dresden elektronik ingenieurtechnik GmbH' for zha integration not ready yet; Retrying in background

or:

2021-05-07 16:47:16 WARNING (MainThread) [zigpy_deconz.api] No response to 'Command.read_parameter' command with seq id '0x02'
2021-05-07 16:47:16 ERROR (MainThread) [zigpy.application] Couldn't start application
2021-05-07 16:47:16 ERROR (MainThread) [homeassistant.components.zha.core.gateway] Couldn't start deCONZ = dresden elektronik deCONZ protocol: ConBee I/II, RaspBee I/II coordinator
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 157, in async_initialize
    self.application_controller = await app_controller_cls.new(
  File "/usr/local/lib/python3.8/site-packages/zigpy/application.py", line 69, in new
    await app.startup(auto_form)
  File "/usr/local/lib/python3.8/site-packages/zigpy_deconz/zigbee/application.py", line 66, in startup
    self.version = await self._api.version()
  File "/usr/local/lib/python3.8/site-packages/zigpy_deconz/api.py", line 455, in version
    (self._proto_ver,) = await self[NetworkParameter.protocol_version]
  File "/usr/local/lib/python3.8/site-packages/zigpy_deconz/api.py", line 420, in read_parameter
    r = await self._command(Command.read_parameter, 1 + len(data), param, data)
  File "/usr/local/lib/python3.8/site-packages/zigpy_deconz/api.py", line 305, in _command
    return await asyncio.wait_for(fut, timeout=COMMAND_TIMEOUT)
  File "/usr/local/lib/python3.8/asyncio/tasks.py", line 501, in wait_for
    raise exceptions.TimeoutError()
asyncio.exceptions.TimeoutError
2021-05-07 16:47:16 WARNING (MainThread) [homeassistant.config_entries] Config entry 'ConBee II, s/n: DE2429010 - dresden elektronik ingenieurtechnik GmbH' for zha integration not ready yet; Retrying in background

As a consequence, strangely enough, power-connected zigbee switches seems to work OK, however all battery-based buttons seems to be unresponsive.

What helps is… Server Controls → Server Management → Reboot. Sometimes it needs 2-3 reboots before it loads properly.

What I tried:

  • I updated conbee II stick via windows 10 to the newest available version
  • I “moved” conbee II from USB3 port to USB2 port + added a cable extention (about 1 meter).

Regardless of ‘successful’ or ‘unsucessful’ ZHA+Conbee II integration after restart, I always see in the logs:

2021-05-07 16:47:21 WARNING (MainThread) [zigpy.zcl] Unknown cluster 57344
2021-05-07 16:47:21 WARNING (MainThread) [zigpy.zcl] Unknown cluster 57345
2021-05-07 16:47:21 WARNING (MainThread) [zigpy.zcl] Unknown cluster 57344
2021-05-07 16:47:21 WARNING (MainThread) [zigpy.zcl] Unknown cluster 57345
2021-05-07 16:47:21 WARNING (MainThread) [zigpy.zcl] Unknown cluster 57344
2021-05-07 16:47:21 WARNING (MainThread) [zigpy.zcl] Unknown cluster 57345
2021-05-07 16:47:21 WARNING (MainThread) [zigpy.zcl] Unknown cluster 57344
2021-05-07 16:47:21 WARNING (MainThread) [zigpy.zcl] Unknown cluster 57345
1 Like

There’s many people (myself included) who have had issues with the ConBee II stick going into reset loops. Run dmesg from the console and look for USB disconnect lines. If you see that at the same time as the above errors, that’s likely what’s going on. Conbee 2 crashing and switching ttyACM's · Issue #3341 · dresden-elektronik/deconz-rest-plugin · GitHub is one reported example.

I have the USB adapter at one location, and the RaspBee at another. The RaspBee has been perfectly stable (though on a much smaller network), and to date I haven’t seen others reporting similar issues. It may be worth switching since you’re already on a Pi.

Hi @ontaptom,

Have you ever figured what are those Unknown cluster messages?
I’m also getting two of them with a different number every time I’m restarting Home Assistant.

Thanks
Mircea