core: ZHA Devices Unavailable
The problem
Devices on my Zigbee network will routinely drop and become unavailable. In some instances the device info appears to be loading and “Last Seen” is up to date. All entities associated with the device have “unavailable” state. Usually re-pairing the device through ZHA will resolve the issue, but only for a time, maybe a few days. This is only happening on my Samsung devices. Aqara seems to be fine at the moment.
Here are a few screenshots.

Environment
- Home Assistant Core release with the issue: 0.113.2 (began with 0.112.0).
- Last working Home Assistant Core release (if known): 0.111.4
- Operating environment (OS/Container/Supervised/Core): Home Assistant Supervised Docker Container on Raspbian (Raspberry Pi 4).
- Integration causing this issue: ZHA
- Link to integration documentation on our website: https://www.home-assistant.io/integrations/zha
Problem-relevant configuration.yaml
I only have the following modification in my config file:
#### ZHA MODIFICATION ####
zha:
zigpy_config:
ezsp_config:
CONFIG_MAX_END_DEVICE_CHILDREN: 32
Traceback/Error logs
Log file attached. During the logging, I also ran configure, add device option in the ZHA integration page for more logging info.
Additional information
Added per request on #37442
My network consists of 18 devices at the moment. I am using the HUSBZB-1 stick and have 3 plugs for additional routers.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 42 (18 by maintainers)
I’m seeing the same “unavailable” behavior from Sonoff SNZB-02 temperature sensors. see: #https://community.home-assistant.io/t/sonoff-snzb-02-temp-humidity-sensor-disconnects/231618
The temp sensors go “unavailable” and quit sending reports. I found that re-pairing them (without removing them from the Devices list in HA) will allow them to work with flakey reliability, often showing low battery readings of 40-75% (even with new batteries in the sensors). In this state, they go “unavailable” again after 5-30 minutes.
I manually added zha_map to my HA to try and diagnose the recurring “unavailable” issue.
I found that if I remove the problem temperature sensors from the HA Device list, then re-add them, they work perfectly (even showing 100% battery capacity) for some number of days. There’s something significant that happens when you remove the device from the HA database, and re-add it!
I saved a 2-day section of my HA log which includes the time period I was fighting with the temp sensor I have labeled Temp2 (Zigbee address 0x7e2e). HA log 12-20-2020 to 12-21-2020.txt