core: ZHA devices not working after update from 0.114 to 0.115.0b2

The problem

I cannot communicate with any Zigbee device since updating to 0.115.0b2.

Environment

  • Home Assistant Core release with the issue: 0.115.0b2
  • Last working Home Assistant Core release (if known): 0.114.x
  • Operating environment (OS/Container/Supervised/Core): Supervised
  • Integration causing this issue: zha
  • Link to integration documentation on our website: https://www.home-assistant.io/integrations/zha/

Problem-relevant configuration.yaml

None

Traceback/Error logs

Huge log, uploaded here - https://pastebin.com/gb9jUNiu

Additional information

HASS can see the device, it’s visible in /dev/serial/by-id/ and at /dev/ttyACM0. Nothing has changed in my ZHA config or HASS config, the only change is updating from one of the 0.114 releases to 0.115.0b2. Lines 129, 130, and 232 suggest that interfacing with the Zigbee adaptor was successful, however I cannot communicate with any Zigbee devices, and there is no event spawned by button presses on Zigbee remotes. The custom integration zha_map also suggests that all devices are offline: image I’ve trimmed everything from the log which didn’t mention zigpy, zha, zigbee, ezsp, or zhaquirks. Let me know if there’s anything I should add back in.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 45 (18 by maintainers)

Most upvoted comments

I feel like that should have made it into the release notes! After adding the following to my configuration.yaml zigbee lives again!

zha:
  zigpy_config:
    network:
      channel: 11
      channels: [11]
      pan_id: 0x1A62
      extended_pan_id: "DD:DD:DD:DD:DD:DD:DD:DD"

Edit: Control is back, but at startup the state of my devices is all incorrect. (everything shown as off as opposed to true state).

2020-09-20 18:36:19 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1F7F:1:0x1000]: initializing channel: from_cache: False
2020-09-20 18:36:24 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1F7F:1:0x0006]: failed to get attributes '['on_off']' on 'on_off' cluster: 
2020-09-20 18:36:24 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1F7F:1:0x0019]: initializing channel: from_cache: False
2020-09-20 18:36:24 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1F7F:1:0x0008]: failed to get attributes '['current_level']' on 'level' cluster: 
2020-09-20 18:36:24 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1F7F:1:0x0000]: initializing channel: from_cache: False
2020-09-20 18:36:24 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1F7F:1:0x0006]: 'async_initialize' stage succeeded
2020-09-20 18:36:24 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1F7F:1:0x0008]: 'async_initialize' stage succeeded
2020-09-20 18:36:24 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1F7F:1:0x0300]: 'async_initialize' stage succeeded
2020-09-20 18:36:24 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1F7F:1:0x1000]: 'async_initialize' stage succeeded
2020-09-20 18:36:24 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1F7F:1:0x0000]: 'async_initialize' stage succeeded
2020-09-20 18:36:24 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1F7F:1:0x0019]: 'async_initialize' stage succeeded
2020-09-20 18:36:24 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x1F7F](Ecosmart-ZBT-A19-CCT-Bulb): power source: Mains
2020-09-20 18:36:24 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x1F7F](Ecosmart-ZBT-A19-CCT-Bulb): completed initialization
2020-09-20 18:36:24 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1F7F:1:0x0006]: attempting to update onoff state - from cache: False

Scratch that, removed the antenna from my zzh stick and was able to start the zha service successfully! On 0.115.2 with config options from the migration document.

My speculation is that perhaps the coordinator was offline for too long so that it couldn’t join the mesh network again, removing the antenna weakened the signal so that the zzh stick didn’t notice the “other” network with the same panID, then once it got started I connected the antenna which merged the networks. Someone please correct me if I’m wrong.