Skip to content

zigpy couldn't start after update to core-2021.7.0 #160

@Bascht74

Description

@Bascht74

I updated to the lastest beta version of HA and after updating ZHA isn't working any more.
Even after cold restart it doesn't come up...

If I revert back to 2021.6.6 everything is fine again right away. Between that I did not change anything in the configuration.

I know that asyncio.exceptions.TimeoutError might mean that the device is used by something else.
But I don't know what this should be...

2021-07-06 21:34:48 WARNING (MainThread) [zigpy_deconz.zigbee.application] No watchdog response
The No watchdog response warning means there's no communication with the ConBee and also the cause of the asyncio.TmeoutError, as zigpy-deconz queries the ConBee for the node descriptor, but does not get any response.
I don't know what setup you are running, but:
Replug ConBee
Make sure the serial port path you have in the core.config_entries is the correct one and did not change on 2021.7.0b0

  1. I Repluged the ConBee -> no change, I did a cold start (Shutdown, Power off, Power on) -> no change
  2. Entry in core.config_entries, see below:

As I use Home Assistant OS 6.1 can I use the following procedure to test it and get further logs to see what is wrong?
I am not shure about the line If you are using Supervised Home Assistant (formerly known as the Hassio/Hass.io distro): and "interferance" between native ZHA and the add-on-variant. So I did not tried that to mess anything up...
source: https://github.com/zigpy/zigpy-deconz#testing-new-releases

Thx for any help,

Sebastian

(old entry: home-assistant/core#52394 )

{
                "entry_id": "e9e6eb4ed32747fd85c5f88bd8e5fef5",
                "version": 2,
                "domain": "zha",
                "title": "/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2252350-if00",
                "data": {
                    "device": {
                        "path": "/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2252350-if00"
                    },
                    "radio_type": "deconz"
                },
                "options": {},
                "pref_disable_new_entities": false,
                "pref_disable_polling": false,
                "source": "user",
                "unique_id": null,
                "disabled_by": null
            },

configuration.yaml:

zha:
  zigpy_config:
    network:
      channel: 11             # What channel the radio should try to use.
      channels: [11, 12]  # Channel mask
    ota:
      ikea_provider: true                        # Auto update Trådfri devices
      ledvance_provider: true                    # Auto update LEDVANCE devices
      otau_directory: /config/zigpy_ota  # Utilize .ota files to update everything else 
ttyACM0
/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2252350-if00
Subsystem:
tty
Gerätepfad:
/dev/ttyACM0
ID:
/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2252350-if00
Attribute:
DEVLINKS: >-
  /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2252350-if00
  /dev/serial/by-path/platform-xhci-hcd.4.auto-usb-0:1.1:1.0
DEVNAME: /dev/ttyACM0
DEVPATH: >-
  /devices/platform/soc/ffe09000.usb/ff500000.usb/xhci-hcd.4.auto/usb1/1-1/1-1.1/1-1.1:1.0/tty/ttyACM0
ID_BUS: usb
ID_MODEL: ConBee_II
ID_MODEL_ENC: ConBee\x20II
ID_MODEL_ID: '0030'
ID_PATH: platform-xhci-hcd.4.auto-usb-0:1.1:1.0
ID_PATH_TAG: platform-xhci-hcd_4_auto-usb-0_1_1_1_0
ID_REVISION: '0100'
ID_SERIAL: dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2252350
ID_SERIAL_SHORT: DE2252350
ID_TYPE: generic
ID_USB_DRIVER: cdc_acm
ID_USB_INTERFACES: ':020201:0a0000:'
ID_USB_INTERFACE_NUM: '00'
ID_VENDOR: dresden_elektronik_ingenieurtechnik_GmbH
ID_VENDOR_ENC: dresden\x20elektronik\x20ingenieurtechnik\x20GmbH
ID_VENDOR_ID: 1cf1
MAJOR: '166'
MINOR: '0'
SUBSYSTEM: tty
TAGS: ':systemd:'
USEC_INITIALIZED: '512107800968'

log:

2021-07-06 21:30:08 ERROR (MainThread) [zigpy.application] Couldn't start application
2021-07-06 21:30:08 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/local/lib/python3.9/asyncio/tasks.py", line 492, in wait_for
fut.result()
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 152, in async_initialize
self.application_controller = await app_controller_cls.new(
File "/usr/local/lib/python3.9/site-packages/zigpy/application.py", line 74, in new
await app.startup(auto_form)
File "/usr/local/lib/python3.9/site-packages/zigpy_deconz/zigbee/application.py", line 93, in startup
coordinator = await DeconzDevice.new(
File "/usr/local/lib/python3.9/site-packages/zigpy_deconz/zigbee/application.py", line 435, in new
await dev._initialize()
File "/usr/local/lib/python3.9/site-packages/zigpy/util.py", line 110, in retry
r = await func()
File "/usr/local/lib/python3.9/site-packages/zigpy/device.py", line 178, in _initialize
await self.get_node_descriptor()
File "/usr/local/lib/python3.9/site-packages/zigpy/device.py", line 137, in get_node_descriptor
status, _, node_desc = await self.zdo.Node_Desc_req(
File "/usr/local/lib/python3.9/site-packages/zigpy/util.py", line 110, in retry
r = await func()
File "/usr/local/lib/python3.9/site-packages/zigpy/device.py", line 300, in request
result = await asyncio.wait_for(req.result, timeout)
File "/usr/local/lib/python3.9/asyncio/tasks.py", line 494, in wait_for
raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError
2021-07-06 21:30:08 WARNING (MainThread) [homeassistant.config_entries] Config entry '/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2252350-if00' for zha integration not ready yet; Retrying in background
2021-07-06 21:30:36 WARNING (MainThread) [zigpy.appdb] Discarding _save_attribute event
2021-07-06 21:34:01 ERROR (MainThread) [zigpy.application] Couldn't start application
2021-07-06 21:34:01 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/local/lib/python3.9/asyncio/tasks.py", line 492, in wait_for
fut.result()
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 152, in async_initialize
self.application_controller = await app_controller_cls.new(
File "/usr/local/lib/python3.9/site-packages/zigpy/application.py", line 74, in new
await app.startup(auto_form)
File "/usr/local/lib/python3.9/site-packages/zigpy_deconz/zigbee/application.py", line 93, in startup
coordinator = await DeconzDevice.new(
File "/usr/local/lib/python3.9/site-packages/zigpy_deconz/zigbee/application.py", line 435, in new
await dev._initialize()
File "/usr/local/lib/python3.9/site-packages/zigpy/util.py", line 110, in retry
r = await func()
File "/usr/local/lib/python3.9/site-packages/zigpy/device.py", line 178, in _initialize
await self.get_node_descriptor()
File "/usr/local/lib/python3.9/site-packages/zigpy/device.py", line 137, in get_node_descriptor
status, _, node_desc = await self.zdo.Node_Desc_req(
File "/usr/local/lib/python3.9/site-packages/zigpy/util.py", line 110, in retry
r = await func()
File "/usr/local/lib/python3.9/site-packages/zigpy/device.py", line 300, in request
result = await asyncio.wait_for(req.result, timeout)
File "/usr/local/lib/python3.9/asyncio/tasks.py", line 494, in wait_for
raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError
2021-07-06 21:34:48 WARNING (MainThread) [zigpy_deconz.zigbee.application] No watchdog response
2021-07-06 21:35:09 WARNING (MainThread) [zigpy.appdb] Discarding _save_attribute event

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions