ZHA 91.1 errors in logs

Hi,

Installed the integration in HA 91.1 running on hassio RPI with a Nortek Hubz stick. But seems everytime i call permit it throws the below exceptions.

Any possible ideas? I’m trying to use this for running my xiaomi zigbee devices.

2019-04-07 14:29:44 WARNING (MainThread) [bellows.zigbee.application] Watchdog heartbeat timeout: 
2019-04-07 14:30:04 WARNING (MainThread) [bellows.zigbee.application] Watchdog heartbeat timeout: 
2019-04-07 14:30:05 ERROR (SyncWorker_11) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2019-04-07 14:30:05 ERROR (SyncWorker_11) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2019-04-07 14:30:15 WARNING (MainThread) [bellows.zigbee.application] Watchdog heartbeat timeout: 
2019-04-07 14:30:35 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.1809379440] Error handling message: Unknown error
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/websocket_api/decorators.py", line 17, in _handle_async_response
    await func(hass, connection, msg)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/zha/api.py", line 116, in websocket_permit_devices
    node=ieee)
  File "/usr/local/lib/python3.7/site-packages/zigpy/application.py", line 140, in permit
    broadcast_address=t.BroadcastAddress.ALL_ROUTERS_AND_COORDINATOR
  File "/usr/local/lib/python3.7/site-packages/zigpy/device.py", line 155, in broadcast
    broadcast_address=broadcast_address
  File "/usr/local/lib/python3.7/site-packages/bellows/zigbee/application.py", line 396, in broadcast
    sequence, data)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 423, in wait_for
    raise futures.TimeoutError()
concurrent.futures._base.TimeoutError
2019-04-07 14:30:35 WARNING (MainThread) [bellows.zigbee.application] Watchdog heartbeat timeout:

I’ve got the same error in my main logs and I’m also seeing

2019-04-08 17:06:30 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.139946664042736] Received {'type': 'zha/devices/permit', 'id': 22}
2019-04-08 17:06:30 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.139946664042736] Received invalid command: zha/devices/permit

When I try to get a device working, I’m on 0.91.2 (latest update)

I don’t have a solution. Just adding that I’m running into the same error and log entries for hassio 0.91.2.

I downgraded to 0.91.0 and things are working again…

I tried to downgrade and I’m still seeing the issue.

If I go on the command line and use bellows, it can communicate with the /dev/ttyUSB1, so I’m not sure what it’s timing out for

Did anyone work this out? It looks like ZHA refuses to start at boot, with the timeout error, but if you delete the interface and re-add it it works fine (until the next HA restart).

I’m seeing the same issue where ZHA won’t boot due to a timeout error. Has anyone solved this?

Hi,

is there a fix for this problem yet? I have the same issue with home assistant 0.94.0.

2019-06-07 19:05:18 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry /dev/ttyACM0 for zha
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/config_entries.py", line 273, in async_setup hass, self)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/zha/__init__.py", line 94, in async_setup_entry await zha_gateway.async_initialize(config_entry)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/zha/core/gateway.py", line 90, in async_initialize await self.application_controller.startup(auto_form=True)
  File "/srv/homeassistant/lib/python3.7/site-packages/bellows/zigbee/application.py", line 103, in startup await self.initialize()
  File "/srv/homeassistant/lib/python3.7/site-packages/bellows/zigbee/application.py", line 54, in initialize await e.reset()
  File "/srv/homeassistant/lib/python3.7/site-packages/bellows/ezsp.py", line 54, in reset await self._gw.reset()
  File "/usr/lib/python3.7/asyncio/tasks.py", line 423, in wait_for raise futures.TimeoutError() concurrent.futures._base.TimeoutError

lrwxrwxrwx 1 root root 13 Jun  7 19:04 /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE1963930-if00 -> ../../ttyACM0

Same exact issue with the same exact Conbee II device.

Same here.

I solved this by switching from a zha configuration entry to creating a ZHA integration in the UI: