Zigbee ZHA Rookie Woes

Whomever can help,
After using home assistant for a few years now, I thought I would begin the next chapter by adding some Zigbee devices to my setup. I consider myself a fairly competent person with technology but I am struggling getting things working at all let alone satisfactory. I thought I would start out small so my setup consists of the following two items…

  • Sonoff Zigbee 3.0 USB Dongle Plus Coordinator
  • IKEA TRADFRI remote control (5 Button)
  • I run Home Assistant Container for my system (core-2022.4.1)

After originally purchasing the hardware (core-2022.3), I managed to update my docker stack to recognize the /dev/ttyUSB0 device and successfully paired the TRADFRI device to the coordinator.
I then proceeded to install a blueprint to utilize the buttons in automations. I successfully created a few automations to handle some light dimming and on/off functions for some existing wifi light bulbs. This setup worked for a couple days then the TRADFRI device would no longer control the lights. I assumed the battery was dead in the TRADFRI and replaced it. This did not solve my problem. I have since attempted to remove, re-setup the co-ordinator, re-pair the TRADFRI and anything else I can think of but for the past several weeks I have not been able to get this to work again. Is there an issue with ZHA that could be causing this issue? Am I missing something fundamental in my approach? I am at a loss to get this TRADFRI device to control anything again. Any support would be very appreciated.
image


Yes there are some breakage of quirks (ZHA Device Handlers) in the Home Assistant 2022.4.x release:

https://community.home-assistant.io/t/zha-event-trigger-for-automations-stopped-working-in-2022-4-0-solved/409228

Either downgrade to Home Assistant 2022.3.x release and wait until fixed or help devs troubleshoot it:

https://github.com/home-assistant/core/issues/69375

It could be this and some other quirks (ZHA Device Handlers) need to be updated/fixed in zha-quirks:

https://github.com/zigpy/zha-device-handlers

https://github.com/zigpy/zha-device-handlers/issues

1 Like

Thank you I will investigate these and wait for some options.

So after waiting for 2022.4.4, then 2022.4.5 with no success in trying to get my remote working with Home assistant I decided to complete the following steps.

  1. Removed the ZHA integration
  2. Removed the zigbee.db file in my homeassistant directory
  3. Restarted my docker container
  4. Reinstalled the ZHA integration
  5. Re-Paired my 5 button remote

After all this the zha_event[s] in my developer tools now show up successfully.
The device is still not reporting battery level but at least the buttons appear to be working now.
Will see if it remains stable over the coming days.

So my so called solution worked for about 24 hours then stopped. Not sure why the zha_event is not firing now. Again. If anyone has ideas for making my zha more stable please advise.

Sorry I can’t help, although I just wanted to say you are not alone. It is now almost October 2022 at the time of this reply. I been having the same issue for months. My Zigbee system falls apart within hours, but then may reappear days later. So unreliable!

@rjd Have you followed all the tips in this best practice guide including updating Zigbee Coordinator adapter firmware + using a very long USB extension cable in a USB 2.0 port or hub (and not a USB 3.0 port or hub) → https://github.com/zigpy/zigpy/wiki/Generic-best-practice-tips-on-improving-Zigbee-network-range-and-general-stability

The verdict is still out, but I replaced all the batteries in my devices (3x Tradfri switches) and things have been pretty stable for the last 2 weeks on my system. My new standard practice is going to be to replace the batteries that Ikea ships with the devices before setting them up out of the box.

1 Like