core: ZiGate with ZHA fails to start after upgrade to 2022.10.0

The problem

Hi,

ZHA integration is not working after upgrading to 2022.10.0 I have enable debug log, unplug and plug again my zigate USB dongle.

logger:
  default: info
  logs:
    homeassistant.core: debug
    homeassistant.components.zha: debug
    bellows.zigbee.application: debug
    bellows.ezsp: debug
    zigpy: debug
    zigpy_deconz.zigbee.application: debug
    zigpy_deconz.api: debug
    zigpy_xbee.zigbee.application: debug
    zigpy_xbee.api: debug
    zigpy_zigate: debug
    zigpy_znp: debug
    zhaquirks: debug

What version of Home Assistant Core has the issue?

2022.10.0

What was the last working version of Home Assistant Core?

2022.9.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/#debug-logging

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2022-10-06 13:46:38.878 ERROR (MainThread) [zigpy.application] Couldn't start application
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 124, in startup
    await self.connect()
  File "/usr/local/lib/python3.10/site-packages/zigpy_zigate/zigbee/application.py", line 39, in connect
    await api.set_raw_mode()
  File "/usr/local/lib/python3.10/site-packages/zigpy_zigate/api.py", line 413, in set_raw_mode
    await self.command(CommandId.SET_RAWMODE, data)
  File "/usr/local/lib/python3.10/site-packages/zigpy_zigate/api.py", line 377, in command
    raise NoStatusError()
zigpy_zigate.api.NoStatusError
2022-10-06 13:46:38.890 WARNING (MainThread) [homeassistant.components.zha.core.gateway] Couldn't start ZiGate = ZiGate Zigbee radios: PiZiGate, ZiGate USB-TTL, ZiGate WiFi coordinator (attempt 1 of 3)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 172, in async_initialize
    self.application_controller = await app_controller_cls.new(
  File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 144, in new
    await app.startup(auto_form=auto_form)
  File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 124, in startup
    await self.connect()
  File "/usr/local/lib/python3.10/site-packages/zigpy_zigate/zigbee/application.py", line 39, in connect
    await api.set_raw_mode()
  File "/usr/local/lib/python3.10/site-packages/zigpy_zigate/api.py", line 413, in set_raw_mode
    await self.command(CommandId.SET_RAWMODE, data)
  File "/usr/local/lib/python3.10/site-packages/zigpy_zigate/api.py", line 377, in command
    raise NoStatusError()
zigpy_zigate.api.NoStatusError






2022-10-06 13:52:04.203 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Couldn't re-open '/dev/ttyUSB3' serial port, retrying in 32s: 
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/asyncio/tasks.py", line 456, in wait_for
    return fut.result()
asyncio.exceptions.CancelledError

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

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/zigpy_deconz/zigbee/application.py", line 513, in _reconnect_loop
    await asyncio.wait_for(self.connect(), timeout=10)
  File "/usr/local/lib/python3.10/asyncio/tasks.py", line 445, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.10/site-packages/zigpy_deconz/zigbee/application.py", line 80, in connect
    self.version = await api.version()
  File "/usr/local/lib/python3.10/site-packages/zigpy_deconz/api.py", line 457, in version
    (self._proto_ver,) = await self.read_parameter(
  File "/usr/local/lib/python3.10/site-packages/zigpy_deconz/api.py", line 422, in read_parameter
    r = await self._command(Command.read_parameter, 1 + len(data), param, data)
  File "/usr/local/lib/python3.10/site-packages/zigpy_deconz/api.py", line 306, in _command
    return await asyncio.wait_for(fut, timeout=COMMAND_TIMEOUT)
  File "/usr/local/lib/python3.10/asyncio/tasks.py", line 458, in wait_for
    raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError
2022-10-06 13:52:04.209 WARNING (MainThread) [zigpy_deconz.api] No response to 'Command.read_parameter' command with seq id '0x02'
2022-10-06 13:52:04.212 DEBUG (MainThread) [zigpy_deconz.zigbee.application] Couldn't re-open '/dev/ttyUSB3' serial port, retrying in 32s: 
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/asyncio/tasks.py", line 456, in wait_for
    return fut.result()
asyncio.exceptions.CancelledError

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

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/zigpy_deconz/zigbee/application.py", line 513, in _reconnect_loop
    await asyncio.wait_for(self.connect(), timeout=10)
  File "/usr/local/lib/python3.10/asyncio/tasks.py", line 445, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.10/site-packages/zigpy_deconz/zigbee/application.py", line 80, in connect
    self.version = await api.version()
  File "/usr/local/lib/python3.10/site-packages/zigpy_deconz/api.py", line 457, in version
    (self._proto_ver,) = await self.read_parameter(
  File "/usr/local/lib/python3.10/site-packages/zigpy_deconz/api.py", line 422, in read_parameter
    r = await self._command(Command.read_parameter, 1 + len(data), param, data)
  File "/usr/local/lib/python3.10/site-packages/zigpy_deconz/api.py", line 306, in _command
    return await asyncio.wait_for(fut, timeout=COMMAND_TIMEOUT)
  File "/usr/local/lib/python3.10/asyncio/tasks.py", line 458, in wait_for
    raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError

Additional information

N/A

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 30 (10 by maintainers)

Most upvoted comments

Same problem here after upgrade the core to 2022.10.1

Logger: homeassistant.components.zha.core.channels.base
Source: components/zha/core/channels/base.py:486
Integration: Zigbee Home Automation (documentation, issues)
First occurred: 14:23:17 (2 occurrences)
Last logged: 14:23:17

[0xA084:1:0x0006]: async_initialize: all attempts have failed: [DeliveryError('Request failed after 5 attempts: <Status.MAC_NO_ACK: 233>'), DeliveryError('Request failed after 5 attempts: <Status.MAC_NO_ACK: 233>'), DeliveryError('Request failed after 5 attempts: <Status.MAC_NO_ACK: 233>'), DeliveryError('Request failed after 5 attempts: <Status.MAC_NO_ACK: 233>')]
[0xA084:1:0x0008]: async_initialize: all attempts have failed: [DeliveryError('Request failed after 5 attempts: <Status.MAC_NO_ACK: 233>'), DeliveryError('Request failed after 5 attempts: <Status.MAC_NO_ACK: 233>'), DeliveryError('Request failed after 5 attempts: <Status.MAC_NO_ACK: 233>'), DeliveryError('Request failed after 5 attempts: <Status.MAC_NO_ACK: 233>')]

It’s a known issue, it will be fixed in 2022.10.3.

Zigate 1rst generation. Zigate USB TTL 3.1d

After downgrading and restoring my 2022.9.7 backup. It works again. I can reupgrade to help troubleshooting.