Zigbee2MQTT instabilities

Hi,

I have loads of issues with this addon on my Home Assistant Green.
For instance, it crashes regularly, for instance here:

[2024-09-19 16:00:08] error: 	zh:ezsp:uart: --> Error: Error: {"sequence":6} after 4000ms
[2024-09-19 16:00:08] error: 	zh:ezsp:uart: -!- break rewaiting (6)
[2024-09-19 16:00:08] error: 	zh:ezsp:uart: Can't resend DATA frame (5,7,1): 1d0001340000000000000200000000010000020303020000
Error: zdoRequest>request error
    at Driver.zdoRequest (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/driver.ts:747:23)
    at EZSPAdapter.nodeDescriptorInternal (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/adapter/ezspAdapter.ts:396:28)
    at /app/node_modules/zigbee-herdsman/src/adapter/ezsp/adapter/ezspAdapter.ts:386:32
    at Queue.execute (/app/node_modules/zigbee-herdsman/src/utils/queue.ts:36:20)
    at EZSPAdapter.handleDeviceJoin (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/adapter/ezspAdapter.ts:154:13)

Then on restarts, it fails half of the time with:

[2024-09-19 18:37:21] warning: 	zh:ezsp: Deprecated driver 'ezsp' currently in use, 'ember' will become the officially supported EmberZNet driver in next release. If using Zigbee2MQTT see https://github.com/Koenkk/zigbee2mqtt/discussions/21462
[2024-09-19 18:37:28] error: 	zh:ezsp:uart: --> Error: Error: {"sequence":1} after 4000ms
[2024-09-19 18:37:28] error: 	zh:ezsp:uart: -!- break waiting (1)
[2024-09-19 18:37:28] error: 	zh:ezsp:uart: Can't send DATA frame (0,7,0): 00000004
[2024-09-19 18:37:33] error: 	zh:ezsp:uart: --> Error: Error: {"sequence":1} after 4000ms
[2024-09-19 18:37:33] error: 	zh:ezsp:uart: -!- break rewaiting (1)
[2024-09-19 18:37:33] error: 	zh:ezsp:uart: Can't resend DATA frame (0,7,1): 00000004
[2024-09-19 18:37:33] error: 	z2m: Error while starting zigbee-herdsman

Sometimes it freezes, just managing to read data, but impossible to send anything (like automation breaks in the middle of the night), nothing obvious in the logs, but memory is deadly high and CPU is using a full core.

What is going on with this add on? it shouldn’t break like that, randomly.

Do not know the root cause but note that the use of adapter: ezsp is now deprecated in Zigbee2MQTT. Sounds like you have not migrated from Z2M’s old deprecated “ezsp” driver (adapter) to their new “ember” driver (which also requires newer firmware). See [WIP]: EFR32 EZSP adapter implementation and test · Issue #319 · Koenkk/zigbee-herdsman · GitHub which in turn refers to → New ember adapter implementation targeting EZSP 13 and above by Nerivec · Pull Request #918 · Koenkk/zigbee-herdsman · GitHub

If you have more questions then suggest you ask in Zigbee2MQTT’s own community channels since that is all Zigbee2MQTT issues and not directly related to Home Assistant (as Zigbee2MQTT is a seperate application and have their own commuinity and issues trackers):

PS: You should however first make sure that you are at least following these generic best practice tips → Zigbee network optimization: a how-to guide for avoiding radio frequency interference + adding Zigbee Router devices (repeaters/extenders) to get a stable Zigbee network mesh with best possible range and coverage by fully utilizing Zigbee mesh networking

1 Like

I do know about the ezsp driver issue, but Green and the HA key are not compatible last time I checked. I tried using it as the first thing I didn’t.
I’ll check the github link you posted as well, thanks! I checked your page as well on the design, I don’t think there is any issues there, as the network works for days sometimes until the add on itself crashes.

There are beta firmware for Home Assistant SkyConnect / Home Assistant Connect ZBT-1 USB dongle:

There are loads of other existing threads discussing migrating from the old “ezsp” driver (ezsp adapter) to the new “ember” driver (ember adapter) in Zigbee2MQTT so maybe check those first, but the point is that the old ezsp adapter is deprecated (i.e. it is oboslete and will sooner or later be discommisioned/removed) so you have to both migrate to that new “ember adapter” in Zigbee2MQTT if want to continue using a Silicon Labs EmberZNet based adapter with Zigbee2MQTT, and that new “ember adapter” requires a newer firmware version (but you have migrate adapter and firmware in the correct order). Check out these:

Regardless, this has nothing to do with Home Assistant so belongs in Zigbee2MQTT’s own community:

PS: Again, you should still make sure that you are at least following these generic best practice tips → Zigbee network optimization: a how-to guide for avoiding radio frequency interference + adding Zigbee Router devices (repeaters/extenders) to get a stable Zigbee network mesh with best possible range and coverage by fully utilizing Zigbee mesh networking

1 Like

Thx for the pointers and the help, I will update the firmware and just mention here the results (I did follow your other topic on networking, I’ll check also if I can get a view of the meshing, would be nice to draw a map of my flat!).

Ember is stable as long as I don’t try to update Ikea firmware on some things. Which I don’t mind.
Thanks a lot for the pointers!