Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broadcasts failing on ember after migration #22453

Closed
julien-billaud opened this issue May 4, 2024 · 238 comments
Closed

Broadcasts failing on ember after migration #22453

julien-billaud opened this issue May 4, 2024 · 238 comments
Labels
ember Issues related to ember driver fixed-in-dev The issue should be fixed in current dev/edge. problem Something isn't working

Comments

@julien-billaud
Copy link

What happened?

While I've never been facing any issues for more than a year with the Sonoff Dongle-e + ezsp driver, I've tried to change the driver to ember, but nothing is working (tried multiple time) but sometime losing all the devices, sometime they are still there but impossible to interact with them, and pairing is never working. (for now I returned to the ezsp driver).
I'm not noticing much error in the log (only the broadcast error reported here #22445)

I've tried the exact same configuration on a regular x86 computer running debian (using the same zigbee dongle) and didn't face any issue which seems to be a linked with the Raspberry pi 4

What did you expect to happen?

No response

How to reproduce it (minimal and precise)

switch from eszp to ember driver

Zigbee2MQTT version

1.37.0

Adapter firmware version

7.4.2.0 build 0

Adapter

Sonoff dongle-e

Setup

Raspberry pi 4 using docker image

Debug log

No response

@julien-billaud julien-billaud added the problem Something isn't working label May 4, 2024
@Nerivec Nerivec added the ember Issues related to ember driver label May 4, 2024
@Nerivec
Copy link
Collaborator

Nerivec commented May 4, 2024

Any chance you can downgrade to 7.4.1 and see if you still have those problems on the pi?

@fir3drag0n
Copy link

fir3drag0n commented May 4, 2024

Same problem with SLZB-06M

But I don't have a raspberry pi 4, host is a x86 machine, running unraid and zigbee2mqtt in docker.

@Nerivec
Copy link
Collaborator

Nerivec commented May 4, 2024

Grouping the mentioned broadcasting issue here guys (#22445, #22398)
@supaeasy @alainsch @Ricc68 @VladislavVesely @luqsq

I cannot reproduce this with my Dongle-E. I've tried various firmware, various ways to migrate from ezsp to ember (even bad ones 😅).
Can you guys think of something that may be different in your setup from a "regular setup"?

@raphael1688
Copy link

Same problem with SLZB-06M

But I don't have a raspberry pi 4, host is a x86 machine, running unraid and zigbee2mqtt in docker.

adapter: ember
rtscts: false

May need to add 'rtscts' below adapter setting.

@supaeasy
Copy link

supaeasy commented May 5, 2024

Can you guys think of something that may be different in your setup from a "regular setup"?

Two things: I recently installed https://www.zigbee2mqtt.io/devices/ZFP-1A-CH.html#siglis-zfp-1a-ch

Wich I think is not a very common router. Swiss market only and most likely not very popular. Initially I had problems with it. Also shortly after I installed it, my second Dongle-E that I use as a router had to re-pair and this was one of the first devices in my 2yo network that I never had any problems with.

Second: Shortly before my Router Dongle failed I set reporting interval of every lamp to 1-3 seconds because I didn't see lamps status change quickly enough (or at all) when pressing a HW button like the switches mentioned above. After the Dongle failed I reverted this to 1-30 s and had no problems since. But I did the reverting before I saw the error in logs.

Also I have to say: I don't recognize bigger problems or misbehavior. I just saw the error in the logs. The only real problem I have is that sometimes (not reproducible) some IKEA Bulbs are starting in maximum dimmed mode even though at least one of them is never dimmed manually.

@julien-billaud
Copy link
Author

julien-billaud commented May 5, 2024

Grouping the mentioned broadcasting issue here guys (#22445, #22398) @supaeasy @alainsch @Ricc68 @VladislavVesely @luqsq

I cannot reproduce this with my Dongle-E. I've tried various firmware, various ways to migrate from ezsp to ember (even bad ones 😅). Can you guys think of something that may be different in your setup from a "regular setup"?

As the dongle-e is working using a docker images on an x86 environnement I'm guessing there is no issue with the zigbee Dongle, so if I focus on some specifics configs, here is what's coming to my mind as part of the change that might be different than a regular installation :

  • RPI4 using a Argon One case
  • RPI4 is booting from an SSD which is plugged to the USB3 port just bellow the Zigbee dongle
  • 64 bit is enabled for that OS
  • The persistent data of the container are stored on an encrypted (Luks volume) which is being mounted on boot

everything else is quite standard in my opinion.

@alainsch
Copy link

alainsch commented May 5, 2024

Nothing special over here. Had 1.36 running with SLZD-06M running on zigbee FW 20231030. Everything was running OK with adapter: ezsp

Did the following steps:

  • upgraded addon to 1.37

  • received the "zh:ezsp: Deprecated driver 'ezsp' currently in use, 'ember' will become the..." messages

  • changed adapter: ezsp to adapter: ember and restarted

  • got an error that my coordinator was not on EZSP13

  • upgraded my coordinator firmware to FW 20240408

  • as adviced by SMLight, changed config in zigbee2mqtt to "adapter: ember" + "rtscts: false"

  • restarted zigbee2mqtt and zigbee network is working

  • now at startup I get the message "zh:ember: Delivery of BROADCAST failed for "65533" [apsFrame={"profileId":0,"clusterId":19,"sourceEndpoint":0,"destinationEndpoint":0,"options":0,"groupId":0,"sequence":212} messageTag=255]"

  • pairing new entities does not work due to the same error

  • switching back to "adapter: ezsp" doesn't work either as I then get the error "zh:controller:greenpower: Received undefined command from '0'". another used already created a ticket for this.

So currently I'm in a state that my network is running, but I can't add any new devices.

Is there any more info we can provide?

@supaeasy
Copy link

supaeasy commented May 5, 2024

Oh I should have mentioned that I am running HAOS in a VM on Synology DSM 7.2.

Interference should not be a problem as my dongle is in a USB 2 port with a 2 m extension cable.

@alainsch
Copy link

alainsch commented May 5, 2024

My setup is HAOS running on a ODROID M1 with 8GB RAM and 512 GB SSD.

@fir3drag0n
Copy link

fir3drag0n commented May 5, 2024

Nothing special over here. Had 1.36 running with SLZD-06M running on zigbee FW 20231030. Everything was running OK with adapter: ezsp

Did the following steps:

  • upgraded addon to 1.37
  • received the "zh:ezsp: Deprecated driver 'ezsp' currently in use, 'ember' will become the..." messages
  • changed adapter: ezsp to adapter: ember and restarted
  • got an error that my coordinator was not on EZSP13
  • upgraded my coordinator firmware to FW 20240408
  • as adviced by SMLight, changed config in zigbee2mqtt to "adapter: ember" + "rtscts: false"
  • restarted zigbee2mqtt and zigbee network is working
  • now at startup I get the message "zh:ember: Delivery of BROADCAST failed for "65533" [apsFrame={"profileId":0,"clusterId":19,"sourceEndpoint":0,"destinationEndpoint":0,"options":0,"groupId":0,"sequence":212} messageTag=255]"
  • pairing new entities does not work due to the same error
  • switching back to "adapter: ezsp" doesn't work either as I then get the error "zh:controller:greenpower: Received undefined command from '0'". another used already created a ticket for this.

So currently I'm in a state that my network is running, but I can't add any new devices.

Is there any more info we can provide?

Exactly the same behavior. Plus the problem that no new devices can't be paired with ember. But with ezsp I can add devices. In my case especially all my routers get disconnected.

@fir3drag0n
Copy link

I do have 4 mmwave presence sensors. Maybe these devices have an influence.

@alainsch
Copy link

alainsch commented May 5, 2024

Sorry, posted my follow-up on the wrong ticket...

These are the messages I see when I startup Zigbee2MQTT. Maybe they are related.

[2024-05-05 11:00:43] info: z2m: Logging to console, file (filename: log.log)
[2024-05-05 11:00:49] info: z2m: Starting Zigbee2MQTT version 1.37.0 (commit #unknown)
[2024-05-05 11:00:49] info: z2m: Starting zigbee-herdsman (0.45.0)
[2024-05-05 11:00:49] info: zh:ember: ======== Ember Adapter Starting ========
[2024-05-05 11:00:49] info: zh:ember:ezsp: ======== EZSP starting ========
[2024-05-05 11:00:49] info: zh:ember:uart:ash: ======== ASH NCP reset ========
[2024-05-05 11:00:49] info: zh:ember:uart:ash: Socket ready
[2024-05-05 11:00:49] info: zh:ember:uart:ash: ======== ASH starting ========
[2024-05-05 11:00:51] info: zh:ember:uart:ash: ======== ASH connected ========
[2024-05-05 11:00:51] info: zh:ember:uart:ash: ======== ASH started ========
[2024-05-05 11:00:51] info: zh:ember:ezsp: ======== EZSP started ========
[2024-05-05 11:00:51] warning: zh:ember: [EzspConfigId] Failed to SET "ADDRESS_TABLE_SIZE" TO "16" with status=ERROR_OUT_OF_MEMORY. Firmware value will be used instead.
[2024-05-05 11:00:51] warning: zh:ember: [EzspConfigId] Failed to SET "APS_UNICAST_MESSAGE_COUNT" TO "32" with status=ERROR_OUT_OF_MEMORY. Firmware value will be used instead.
[2024-05-05 11:00:51] warning: zh:ember: [EzspConfigId] Failed to SET "NEIGHBOR_TABLE_SIZE" TO "26" with status=ERROR_OUT_OF_MEMORY. Firmware value will be used instead.
[2024-05-05 11:00:51] warning: zh:ember: [EzspConfigId] Failed to SET "SOURCE_ROUTE_TABLE_SIZE" TO "200" with status=ERROR_INVALID_VALUE. Firmware value will be used instead.
[2024-05-05 11:00:51] warning: zh:ember: [EzspConfigId] Failed to SET "MULTICAST_TABLE_SIZE" TO "16" with status=ERROR_OUT_OF_MEMORY. Firmware value will be used instead.
[2024-05-05 11:00:51] info: zh:ember: [STACK STATUS] Network up.
[2024-05-05 11:00:51] info: zh:ember: [INIT TC] NCP network matches config.
[2024-05-05 11:00:51] info: zh:ember: [CONCENTRATOR] Started source route discovery. 1247ms until next broadcast.
[2024-05-05 11:00:51] info: z2m: zigbee-herdsman started (resumed)
[2024-05-05 11:00:51] info: z2m: Coordinator firmware version: '{"meta":{"build":0,"ezsp":13,"major":7,"minor":4,"patch":1,"revision":"7.4.1 [GA]","special":0,"type":170},"type":"EmberZNet"}'
[2024-05-05 11:00:51] info: z2m: Currently 12 devices are joined:
...

[2024-05-05 11:00:51] info: z2m: Zigbee: disabling joining new devices.
[2024-05-05 11:00:51] info: z2m: Connecting to MQTT server at mqtt://core-mosquitto:1883
[2024-05-05 11:00:52] info: z2m: Connected to MQTT server
[2024-05-05 11:00:52] info: z2m: Started frontend on port 8099
[2024-05-05 11:00:53] info: z2m: Zigbee2MQTT started!
[2024-05-05 11:01:11] error: zh:ember: Delivery of BROADCAST failed for "65532" [apsFrame={"profileId":0,"clusterId":31,"sourceEndpoint":0,"destinationEndpoint":0,"options":0,"groupId":0,"sequence":0} messageTag=255]
[2024-05-05 11:01:23] error: zh:ember: Delivery of BROADCAST failed for "65532" [apsFrame={"profileId":0,"clusterId":31,"sourceEndpoint":0,"destinationEndpoint":0,"options":0,"groupId":0,"sequence":0} messageTag=255]
[2024-05-05 11:01:33] error: zh:ember: Delivery of BROADCAST failed for "65532" [apsFrame={"profileId":0,"clusterId":31,"sourceEndpoint":0,"destinationEndpoint":0,"options":0,"groupId":0,"sequence":0} messageTag=255]

Whenever I try to start the pairing process, I see these messages:

[2024-05-05 11:03:28] info: z2m: Zigbee: allowing new devices to join.
[2024-05-05 11:03:28] info: zh:ember: [STACK STATUS] Network opened.
[2024-05-05 11:03:29] error: zh:ember: Delivery of BROADCAST failed for "65532" [apsFrame={"profileId":0,"clusterId":54,"sourceEndpoint":0,"destinationEndpoint":0,"options":256,"groupId":0,"sequence":240} messageTag=2]
[2024-05-05 11:03:29] error: zh:ember: Delivery of BROADCAST failed for "65533" [apsFrame={"profileId":41440,"clusterId":33,"sourceEndpoint":242,"destinationEndpoint":242,"options":256,"groupId":0,"sequence":241} messageTag=3]

@fir3drag0n
Copy link

@alainsch I also had a discussion with @Nerivec at discord, because I also have the same stillsaying error message.

@alainsch
Copy link

alainsch commented May 5, 2024

Exactly the same behavior. Plus the problem that no new devices can't be paired with ember. But with ezsp I can add devices. In my case especially all my routers get disconnected.

Ah yes, and I wasn't aware it is related...

I have a SLZB-06M as coordinator (groundfloor) and a Sonoff Dongle-E flashed as router (first floor). Yesterday evening my Sonoff router got disconnected. It is while trying to pair it again that I found out I couldn't pair any devices.

I have a very small zigbee network (more a test setup here), so I have no other routers, only end devices.

@alainsch
Copy link

alainsch commented May 5, 2024

@alainsch I also had a discussion with @Nerivec at discord, because I also have the same stillsaying error message.

I'm pretty new to discord, I'll try to find the channel (?) so I can follow the discussion.

@fir3drag0n
Copy link

Exactly the same behavior. Plus the problem that no new devices can't be paired with ember. But with ezsp I can add devices. In my case especially all my routers get disconnected.

Ah yes, and I wasn't aware it is related...

I have a SLZB-06M as coordinator (groundfloor) and a Sonoff Dongle-E flashed as router (first floor). Yesterday evening my Sonoff router got disconnected. It is while trying to pair it again that I found out I couldn't pair any devices.

I have a very small zigbee network (more a test setup here), so I have no other routers, only end devices.

I already have nearly 70 devices...

@alainsch
Copy link

alainsch commented May 5, 2024

I already have nearly 70 devices...

Here at home, HA is a small setup (12 devices) I use mainly for testing. But in our vacation home, everything is controlled by HA and we have 51 zigbee and 33 ESPHome devices.

In this second setup, I also have the same SLZB-06M coordinator, but still on the older 20231030 firmware, where the adapter is still defined as 'adapter: ezsp'.

Since I ugraded to 1.37, I couldn't pair any new devices too, due to another error: "zh:controller:greenpower: Received undefined command from '0'"

And that setup is not a test setup :-(

@fir3drag0n
Copy link

@alainsch I also had a discussion with @Nerivec at discord, because I also have the same stillsaying error message.

I'm pretty new to discord, I'll try to find the channel (?) so I can follow the discussion.

In the development-branch channel. The similarity we both have is the same coordinator (I am at the dev Firmware right now). But maybe you can rather rule out the cause if you only have 12 devices in your setup.

@Ricc68
Copy link
Contributor

Ricc68 commented May 5, 2024

Very very simple configuration here.

HAOS on qemu VM in low end x86-64 QNAP nas, resources 2 cpu+2 GB ram as suggested by HAOS setup guide.
I have seen a lot of ppl using VMs or arm devices: one common point may be low resources in terms of CPU power and/or RAM.

Back to the setup, I can report two setups:

  1. ZBDongle-E with fw 7.4.2, Z2M 1.37.0, ember driver. Only the ZBDongle-E is in the ZigBee network so it is only the coordinator. The broadcast errors happens. This may rule out the devices and spot the light on the coordinator.
  2. ZBDongle-E as above in above setup but with 2 Sonoff TRVZB valves added to the ZigBee network: same error continues to happen. But since it was happening with the coordinator alone as for setup 1, I would rule out the fact that I have added the 2 devices.

Anyway I see from other posts that the error is happening with a variety of devices and if I look at another common factor, all the variety of networks showing the error have -> a coordinator <- which again spots the light on the coordinator.

I see that @Nerivec is not able to reproduce the issue, and, needless to say, also Nerivec is working with a coordinator which should obviously rule out the coordinator itself (unless there is some elusive coordinator hardware common factor), maybe a good starting point for you would be to constrain the system on a low resource/slow host or a VM with limited resources to see what happens with the coordinator handling of Z2M.

Maybe another hint maybe found in the first post from @julien-billaud: "I've tried the exact same configuration on a regular x86 computer running debian (using the same zigbee dongle) and didn't face any issue which seems to be a linked with the Raspberry pi 4".

@alainsch
Copy link

alainsch commented May 5, 2024

OK, because my setup is a small setup mainly for test, I did the following steps:

  • removed zigbee2mqtt addon
  • removed the zigbee2mqtt folder from my config
  • re-installed zigbee2mqtt with the SLZB-06M and "adapter:ezsp"
  • startup and got the following messages

[12:01:03] INFO: Preparing to start...
[12:01:04] INFO: Socat not enabled
[12:01:10] INFO: Starting Zigbee2MQTT...
[2024-05-05 12:01:14] info: z2m: Logging to console, file (filename: log.log)
[2024-05-05 12:01:20] info: z2m: Starting Zigbee2MQTT version 1.37.0 (commit #unknown)
[2024-05-05 12:01:20] info: z2m: Starting zigbee-herdsman (0.45.0)
[2024-05-05 12:01:20] warning: zh:ezsp: Deprecated driver 'ezsp' currently in use, 'ember' will become the officially supported EmberZNet driver in next release. If using Zigbee2MQTT see #21462
[2024-05-05 12:01:24] info: zh:ezsp:driv: Leaving current network and forming new network
[2024-05-05 12:01:25] info: zh:ezsp:driv: Form network
[2024-05-05 12:01:26] info: zh:controller: Wrote coordinator backup to '/config/zigbee2mqtt/level_0/coordinator_backup.json'
[2024-05-05 12:01:26] info: z2m: zigbee-herdsman started (reset)
[2024-05-05 12:01:26] info: z2m: Coordinator firmware version: '{"meta":{"maintrel":"1 ","majorrel":"7","minorrel":"4","product":13,"revision":"7.4.1.0 build 0"},"type":"EZSP v13"}'
[2024-05-05 12:01:26] info: z2m: Currently 0 devices are joined:
[2024-05-05 12:01:26] info: z2m: Zigbee: disabling joining new devices.
[2024-05-05 12:01:27] info: z2m: Connecting to MQTT server at mqtt://core-mosquitto:1883
[2024-05-05 12:01:27] info: z2m: Connected to MQTT server
[2024-05-05 12:01:28] info: z2m: Started frontend on port 8099
[2024-05-05 12:01:28] info: z2m: Zigbee2MQTT started!

  • when I try to start pairing a device, I see

[2024-05-05 12:01:40] info: z2m: Zigbee: allowing new devices to join.
[2024-05-05 12:01:41] error: zh:controller:greenpower: Received undefined command from '0'
[2024-05-05 12:02:00] info: zh:controller: Interview for '0x00158d0008083d2a' started
[2024-05-05 12:02:00] info: z2m: Device '0x00158d0008083d2a' joined
[2024-05-05 12:02:00] info: z2m: Starting interview of '0x00158d0008083d2a'
[2024-05-05 12:02:11] info: zh:controller: Succesfully interviewed '0x00158d0008083d2a'
[2024-05-05 12:02:11] info: z2m: Successfully interviewed '0x00158d0008083d2a', device has successfully been paired
[2024-05-05 12:02:11] info: z2m: Device '0x00158d0008083d2a' is supported, identified as: Aqara Motion sensor (RTCGQ11LM)
[2024-05-05 12:02:11] info: z2m: Configuring '0x00158d0008083d2a'
[2024-05-05 12:02:11] info: z2m: Successfully configured '0x00158d0008083d2a'

  • so pairing is possible in "adapter:ezsp" mode. Removed the device...

[2024-05-05 12:02:19] info: z2m: Removing device '0x00158d0008083d2a' (block: false, force: true)
[2024-05-05 12:02:19] info: z2m: Successfully removed device '0x00158d0008083d2a' (block: false, force: true)

  • changed the config to "adapter: ember" and "rtscts: false" and restarted zigbee2mqtt

[12:06:41] INFO: Preparing to start...
[12:06:42] INFO: Socat not enabled
[12:06:48] INFO: Starting Zigbee2MQTT...
[2024-05-05 12:06:53] info: z2m: Logging to console, file (filename: log.log)
[2024-05-05 12:06:58] info: z2m: Starting Zigbee2MQTT version 1.37.0 (commit #unknown)
[2024-05-05 12:06:58] info: z2m: Starting zigbee-herdsman (0.45.0)
[2024-05-05 12:06:59] info: zh:ember: ======== Ember Adapter Starting ========
[2024-05-05 12:06:59] info: zh:ember:ezsp: ======== EZSP starting ========
[2024-05-05 12:06:59] info: zh:ember:uart:ash: ======== ASH NCP reset ========
[2024-05-05 12:06:59] info: zh:ember:uart:ash: Socket ready
[2024-05-05 12:06:59] info: zh:ember:uart:ash: ======== ASH starting ========
[2024-05-05 12:07:00] info: zh:ember:uart:ash: ======== ASH connected ========
[2024-05-05 12:07:00] info: zh:ember:uart:ash: ======== ASH started ========
[2024-05-05 12:07:00] info: zh:ember:ezsp: ======== EZSP started ========
[2024-05-05 12:07:00] warning: zh:ember: [EzspConfigId] Failed to SET "ADDRESS_TABLE_SIZE" TO "16" with status=ERROR_OUT_OF_MEMORY. Firmware value will be used instead.
[2024-05-05 12:07:00] warning: zh:ember: [EzspConfigId] Failed to SET "APS_UNICAST_MESSAGE_COUNT" TO "32" with status=ERROR_OUT_OF_MEMORY. Firmware value will be used instead.
[2024-05-05 12:07:00] warning: zh:ember: [EzspConfigId] Failed to SET "NEIGHBOR_TABLE_SIZE" TO "26" with status=ERROR_OUT_OF_MEMORY. Firmware value will be used instead.
[2024-05-05 12:07:00] warning: zh:ember: [EzspConfigId] Failed to SET "SOURCE_ROUTE_TABLE_SIZE" TO "200" with status=ERROR_INVALID_VALUE. Firmware value will be used instead.
[2024-05-05 12:07:00] warning: zh:ember: [EzspConfigId] Failed to SET "MULTICAST_TABLE_SIZE" TO "16" with status=ERROR_OUT_OF_MEMORY. Firmware value will be used instead.
[2024-05-05 12:07:00] info: zh:ember: [STACK STATUS] Network up.
[2024-05-05 12:07:00] info: zh:ember: [INIT TC] NCP network matches config.
[2024-05-05 12:07:00] info: zh:ember: [CONCENTRATOR] Started source route discovery. 1248ms until next broadcast.
[2024-05-05 12:07:01] info: z2m: zigbee-herdsman started (resumed)
[2024-05-05 12:07:01] info: z2m: Coordinator firmware version: '{"meta":{"build":0,"ezsp":13,"major":7,"minor":4,"patch":1,"revision":"7.4.1 [GA]","special":0,"type":170},"type":"EmberZNet"}'
[2024-05-05 12:07:01] info: z2m: Currently 0 devices are joined:
[2024-05-05 12:07:01] info: z2m: Zigbee: disabling joining new devices.
[2024-05-05 12:07:01] info: z2m: Connecting to MQTT server at mqtt://core-mosquitto:1883
[2024-05-05 12:07:01] info: z2m: Connected to MQTT server
[2024-05-05 12:07:02] info: z2m: Started frontend on port 8099
[2024-05-05 12:07:02] info: z2m: Zigbee2MQTT started!

  • when I try to pair the same aqara motion sensor...

[2024-05-05 12:07:40] info: z2m: Zigbee: allowing new devices to join.
[2024-05-05 12:07:40] info: zh:ember: [STACK STATUS] Network opened.
[2024-05-05 12:08:08] info: zh:controller: Interview for '0x00158d0008083d2a' started
[2024-05-05 12:08:08] info: z2m: Device '0x00158d0008083d2a' joined
[2024-05-05 12:08:09] info: z2m: Starting interview of '0x00158d0008083d2a'
[2024-05-05 12:08:11] warning: zh:ember: [ZDO] Node descriptor for "7769" reports device is only compliant to revision "pre-21" of the ZigBee specification (current revision: 23).
[2024-05-05 12:08:47] info: zh:controller: Succesfully interviewed '0x00158d0008083d2a'
[2024-05-05 12:08:47] info: z2m: Successfully interviewed '0x00158d0008083d2a', device has successfully been paired
[2024-05-05 12:08:47] info: z2m: Device '0x00158d0008083d2a' is supported, identified as: Aqara Motion sensor (RTCGQ11LM)
[2024-05-05 12:08:47] info: z2m: Configuring '0x00158d0008083d2a'
[2024-05-05 12:08:47] info: z2m: Successfully configured '0x00158d0008083d2a'

so pairing is working and I didn't get the broadcast error now, not while starting up and not while pairing.

So starting over with zigbee2mqtt solved it for me, but that is not possible for everyone I think :-)

@alainsch
Copy link

alainsch commented May 5, 2024

so pairing is working and I didn't get the broadcast error now, not while starting up and not while pairing.

So starting over with zigbee2mqtt solved it for me, but that is not possible for everyone I think :-)

No, not completly... after approx 5 minutes, pairing was again not possible. No errors, but the connection / interview didn't start. Tried to restart z2m and reboot the coordinator, nothing helps.

Downgraded the coordinator to the 20231030 FW (ESZP12) and switched back to "adapter: ezsp" and I still got the "error: zh:controller:greenpower: Received undefined command from '0' " messages, but pairing is possible again.

Will see in about 10 minutes...

@fir3drag0n
Copy link

fir3drag0n commented May 5, 2024

Very very simple configuration here.

HAOS on qemu VM in low end x86-64 QNAP nas, resources 2 cpu+2 GB ram as suggested by HAOS setup guide. I have seen a lot of ppl using VMs or arm devices: one common point may be low resources in terms of CPU power and/or RAM.

Back to the setup, I can report two setups:

  1. ZBDongle-E with fw 7.4.2, Z2M 1.37.0, ember driver. Only the ZBDongle-E is in the ZigBee network so it is only the coordinator. The broadcast errors happens. This may rule out the devices and spot the light on the coordinator.
  2. ZBDongle-E as above in above setup but with 2 Sonoff TRVZB valves added to the ZigBee network: same error continues to happen. But since it was happening with the coordinator alone as for setup 1, I would rule out the fact that I have added the 2 devices.

Anyway I see from other posts that the error is happening with a variety of devices and if I look at another common factor, all the variety of networks showing the error have -> a coordinator <- which again spots the light on the coordinator.

I see that @Nerivec is not able to reproduce the issue, and, needless to say, also Nerivec is working with a coordinator which should obviously rule out the coordinator itself (unless there is some elusive coordinator hardware common factor), maybe a good starting point for you would be to constrain the system on a low resource/slow host or a VM with limited resources to see what happens with the coordinator handling of Z2M.

Maybe another hint maybe found in the first post from @julien-billaud: "I've tried the exact same configuration on a regular x86 computer running debian (using the same zigbee dongle) and didn't face any issue which seems to be a linked with the Raspberry pi 4".

I do also have one Sonoff TRVZB.

And I also started fresh with one new zigbee2mqtt config and just the coordinator, and even at start the pairing/broadcast issue appeared immediately. I don't think that it is an issue with raspberry pi as I am using an x86 machine running a zigbee2mqtt container (docker).

I also observed that a coordinator reset sometimes helped. @Nerivec recommended to do a hard reset with my device (that includes pushing the physical reset button). This also helped me once starting without any issues, but after restarting again, I again suffered by those errors.

@Ricc68
Copy link
Contributor

Ricc68 commented May 5, 2024

HAOS on qemu VM in low end x86-64 QNAP nas, resources 2 cpu+2 GB ram as suggested by HAOS setup guide. I have seen a lot of ppl using VMs or arm devices: one common point may be low resources in terms of CPU power and/or RAM.

I don't think that it is an issue with raspberry pi as I am using an x86 machine running a zigbee2mqtt container (docker).

Just to have a better understanding: what CPU/RAM is your x86 machine? Is it running what OS? Is it on bare metal or on a virtualization environment like Proxmox or other VM of any sort? I agree dockers are less demanding, but performance then is limited by the host so it would be useful to know what kind of host is running your docker and how loaded is your x86 system.

@fir3drag0n
Copy link

fir3drag0n commented May 5, 2024

It is a Intel® Core™ i3-9100 system with 64 GB RAM ECC.
It is running Unraid / NAS system with virtualization options (docker or vms).

@Nerivec
Copy link
Collaborator

Nerivec commented May 5, 2024

I have a low-resource VM that mimics the specs of an average PI 4 to run tests on stuff that I know affect performance. No issue there either. No failed broadcast without any device, nor with devices, and successfully paired & re-paired a dozen devices since it's been running for a couple of hours.

But just in case, you can try giving it some breathing room with the adapter_delay setting:

advanced:
  adapter_delay: 20

Default/min is 5, max is 60 (milliseconds). Note that at 60, you are likely to experience some delays when triggering devices rapidly.


PS: I created an issue in the firmware repo for the SLZB-06M and the failing config IDs. May or may not be related to the ensuing troubles, but we need to get to the bottom of it nonetheless. darkxst/silabs-firmware-builder#90

@Ricc68
Copy link
Contributor

Ricc68 commented May 5, 2024

adapter_delay: 20

Added the adapter_delay option, no joy:

[2024-05-05 14:42:54] error: zh:ember: Delivery of BROADCAST failed for "65532" [apsFrame={"profileId":0,"clusterId":54,"sourceEndpoint":0,"destinationEndpoint":0,"options":256,"groupId":0,"sequence":170} messageTag=255]
[2024-05-05 14:42:55] error: zh:ember: Delivery of BROADCAST failed for "65533" [apsFrame={"profileId":41440,"clusterId":33,"sourceEndpoint":242,"destinationEndpoint":242,"options":256,"groupId":0,"sequence":171} messageTag=1]
[2024-05-05 14:42:57] error: zh:ember: Delivery of BROADCAST failed for "65533" [apsFrame={"profileId":0,"clusterId":19,"sourceEndpoint":0,"destinationEndpoint":0,"options":1024,"groupId":0,"sequence":53} messageTag=255]
[2024-05-05 14:44:07] error: zh:ember: Delivery of BROADCAST failed for "65533" [apsFrame={"profileId":0,"clusterId":19,"sourceEndpoint":0,"destinationEndpoint":0,"options":1024,"groupId":0,"sequence":59} messageTag=255]

at startup of z2m.

@julien-billaud
Copy link
Author

I've been doing little more testing and figured out "what was wrong".
I've done the following tests :
Start on a fresh install for the pi4 and install the latest version of docker, all from an SD card (removing de SSD plugged on the USB3 port) only remaining plugged, the dongle-e on the second USB3 port.
Averything has been running perfectly fine with the ember driver.
From that fresh install, I then plugged the SSD on the USB3 port then it started to be way less responsive so I've rebooted the system and got the exact same "BROADCAST" errors and nothing was working.
Then, I've switched the dongle-e to one of the USB2.0 port and kept the SSD to one of the USB3 port then no more error.
last test, starting the PI4 from the SSD plugged to USB3.0 then the Dongle-e to USB2.0 and now everything is working fine with ember driver.

To conclude, it seems like the ember driver is for some reason little bit more sensitive (I know that using the Dongle without extension cord isn't ideal).
Hope it will help for those who are observing the same "BROADCAST" error after switching from ezsp to ember driver and/or what in that driver is leading to that strange behavior.

@supaeasy
Copy link

supaeasy commented May 5, 2024

Can't be my problem. USB2 Port with 2m extension cable.

@supaeasy
Copy link

@supaeasy Can you try walking zigbee-herdsman versions from 0.49.3 to 0.56.1 until you find exactly which one is problematic?
Focus on versions with Ember changes, you can skip the others: https://github.com/Koenkk/zigbee-herdsman/releases?page=4

How do I do that?

@maverick1872
Copy link

@maverick1872 From that screenshot, you are running a very old version of Z2M, it does not contain the above-mentioned fix. You need 1.40.0 minimum.

Whew. I could have sworn I watched it update to the latest version of the docker image. Guess not. Updated to latest available docker image tonight and started from scratch. Pairing seems to go off without a hitch when using ember.

@Nosnahc
Copy link

Nosnahc commented Oct 24, 2024

After updating my ember Sonoff Zigbee adapter to 8.0.1, the broadcast error seems to have been fixed. For anyone wondering, I am running Z2M version 1.40.2 (the latest as of now) on a docker container. From what I could see, the issue was also fixed by running 7.4.4 on an older build (but I generally prefer running the latest versions)

Still buggy for me with firmware 8.0.2

@Fctoni
Copy link

Fctoni commented Nov 21, 2024

Hi guys, I was facing the exact same problem. Spent 5 hours trying all and everything with no luck. Finally I gave up, uninstalled Z2M and reinstalled it from scratch. Fortunately my network is not too big, 19 devices in total.

After reinstalling and readding all, everything works 100% flawlessly now. I recommend you guys try the same.

7.4.4 and 1.41.0-1. ,

USB extension cable 1m connected to a Intel NUC USB 2.0 port.

@jespervdw
Copy link

Had the same problem. ZBDongleE. Rpi Zero2W. No extension cord. Broadcast error every 10min. Reintalling Z2M and updating firmware didn't work.
For now, the error seems not to return since I don't allow new devices to join. No error since 30min. will update post if I get the error again. Will try extension cord later.

Zigbee2MQTT versie
1.42.0 commit: bc6eccf
Coördinator type
EmberZNet
Coordinator revisie
7.4.5 [GA]
Coordinator IEEE adres
0xe0798dfffecfaeef
Versie frontend
0.7.6
zigbee_herdsman_converters_version
20.58.0
zigbee_herdsman_version
2.1.9

@Nosnahc
Copy link

Nosnahc commented Dec 21, 2024

@jespervdw did you desactivate "Zigbee Home Automation" ?

@jespervdw
Copy link

jespervdw commented Dec 21, 2024

Not sure what option you mean. Mainly unmarked 'permit join'.
Scherm­afbeelding 2024-12-21 om 14 39 25
Scherm­afbeelding 2024-12-21 om 14 39 19

Whenever I have to add a new device, will just temporarily permit it again.

@Nosnahc
Copy link

Nosnahc commented Dec 21, 2024

Not sure what option you mean. Mainly unmarked 'permit join'. Scherm­afbeelding 2024-12-21 om 14 39 25 Scherm­afbeelding 2024-12-21 om 14 39 19

In Home assistant Parameter -> Services
Did you got
{FCC8ED8C-9F9B-4A71-BB95-2AFE66476DEB}

@jespervdw
Copy link

I am using Homebridge

Not sure what option you mean. Mainly unmarked 'permit join'. Scherm­afbeelding 2024-12-21 om 14 39 25 Scherm­afbeelding 2024-12-21 om 14 39 19

In Home assistant Parameter -> Services Did you got {FCC8ED8C-9F9B-4A71-BB95-2AFE66476DEB}

I am using Homebridge. Why?

@Nosnahc
Copy link

Nosnahc commented Dec 21, 2024

I am using Homebridge

Not sure what option you mean. Mainly unmarked 'permit join'. Scherm­afbeelding 2024-12-21 om 14 39 25 Scherm­afbeelding 2024-12-21 om 14 39 19

In Home assistant Parameter -> Services Did you got {FCC8ED8C-9F9B-4A71-BB95-2AFE66476DEB}

I am using Homebridge. Why?

Lot of people struggling with Z2M beacause of Home Assistant plugin

@jespervdw
Copy link

Ah ok. No not for me.
Didn't have the error for more than an hour. When I accept new devices to join, immediately get the error again. Will get a new extension cord quickly to try that out. In the meantime just disable new joins.

@Ricc68
Copy link
Contributor

Ricc68 commented Dec 23, 2024

Had the same problem. ZBDongleE. Rpi Zero2W. No extension cord. Broadcast error every 10min. Reintalling Z2M and updating firmware didn't work. For now, the error seems not to return since I don't allow new devices to join. No error since 30min. will update post if I get the error again. Will try extension cord later.

RPi Zero 2W has only WiFi (no ethernet) and the USB port I don't know if it's USB3 but anyway: having the dongle directly connected exposes to at least two factors of instability due to EMF noise.
First thing is that you have your dongle near the RPi WiFi radio which is not a good thing in terms of ZigBee signal stability.
Second one is that if the port is an USB3, you would have noise coming in the dongle also from the USB port.
Buy an extension cable USB2 (to avoid bringing the USB3 extra conductors near the dongle) at least 1m long (I've got a 2m one) and bring the dongle far from the RPi WiFi antenna to avoid interference of WiFi with the ZigBee signal.
This solved for me the broadcast errors.

Coordinator revisie
7.4.5 [GA]

I've got evidence of improved z2m stability with fw 8.0.2 in terms of communication between z2m and the dongle over the serial.
I'm not suggesting to update the fw, but that's something you may consider in light of the fact that to me it was a clear improvement over 7.4.4.

@JericoPablo
Copy link

JericoPablo commented Jan 17, 2025

I could not find any solution in this thread and its closed somehow. Im probably blind, but can someone point it out to me?

Using Z2M 2.0 and ncp-uart-hw-v7.4.5.0-zbdonglee-115200.gbl for the Sonoff Dongle E.

[2025-01-17 22:51:26] error: 	zh:ember: Delivery of BROADCAST failed for '65535'.
[2025-01-17 22:56:16] error: 	zh:ember: Delivery of BROADCAST failed for '65535'.
[2025-01-17 23:01:06] error: 	zh:ember: Delivery of BROADCAST failed for '65535'.
[2025-01-17 23:28:36] error: 	zh:ember: Delivery of BROADCAST failed for '65535'.
[2025-01-17 23:28:46] error: 	zh:ember: Delivery of BROADCAST failed for '65535'.
[2025-01-17 23:28:56] error: 	zh:ember: Delivery of BROADCAST failed for '65535'.
[2025-01-17 23:29:36] error: 	zh:ember: Delivery of BROADCAST failed for '65535'.
[2025-01-17 23:29:46] error: 	zh:ember: Delivery of BROADCAST failed for '65535'.
[2025-01-17 23:30:06] error: 	zh:ember: Delivery of BROADCAST failed for '65535'.
[2025-01-17 23:30:16] error: 	zh:ember: Delivery of BROADCAST failed for '65535'.
[2025-01-17 23:30:26] error: 	zh:ember: Delivery of BROADCAST failed for '65535'.
[2025-01-17 23:39:16] error: 	zh:ember: Delivery of BROADCAST failed for '65535'.

is what i get, Restarted HA after update, restarted the VM (HAOS runs on Promox)
I moved the Dongle E to a different position. It is connected via. 2 meter USB 3.0 cable to a USB 2.0 port.

This error just appeared after ember. Devices are working (for now) but when i tried ember once before 3 months or so, my bosch thermostates lost connection after while. Im a bit frustrated at this point, sorry if i missed the solution, but can someone point me to a direction?

EDIT:
as mentioned, im getting now errors for Bosch Thermostat

Starting Zigbee2MQTT without watchdog.
[23:37:56] INFO: Preparing to start...
[23:37:56] INFO: Socat not enabled
[23:37:56] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2025-01-17 23:39:16] error: 	zh:ember: Delivery of BROADCAST failed for '65535'.
[2025-01-17 23:42:16] error: 	zh:ember: Delivery of BROADCAST failed for '65535'.
[2025-01-17 23:42:26] error: 	zh:ember: Delivery of BROADCAST failed for '65535'.
[2025-01-17 23:50:21] error: 	z2m: Publish 'set' 'occupied_heating_setpoint' to 'Büro Heizung' failed: 'Error: ZCL command 0x18fc2600000f4d00/1 hvacThermostat.write({"occupiedHeatingSetpoint":2200}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Delivery failed for '12805'.)'
[2025-01-17 23:51:16] error: 	zh:ember: Delivery of BROADCAST failed for '65535'.
[2025-01-17 23:53:16] error: 	zh:ember: Delivery of BROADCAST failed for '65535'.
[2025-01-17 23:54:15] error: 	z2m: Publish 'set' 'occupied_heating_setpoint' to 'Büro Heizung' failed: 'Error: ZCL command 0x18fc2600000f4d00/1 hvacThermostat.write({"occupiedHeatingSetpoint":1950}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Delivery failed for '12805'.)'
[2025-01-18 00:05:14] error: 	zh:controller:device: Handling of poll check-in from 0x18fc26000008245d failed (ZCL command 0x18fc26000008245d/1 genPollCtrl.checkinRsp({"startFastPolling":false,"fastPollTimeout":0}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false,"sendPolicy":"immediate"}) failed (Delivery failed for '45149'.))

If i play around with the temp, it sometimes just does not set the temp. As u also can see in the logs. Also you can see that another Thermostate is getting error on poll check-in whatever that means.

@Nerivec any ideas?

@Ricc68
Copy link
Contributor

Ricc68 commented Jan 18, 2025

@JericoPablo would you mind updating your dongle firmware to 8.0.2 as you are using fw 7.4.5? This might help.
If you have read the entire thread I'm not going to repeat about environment, cabling, etc.

@JericoPablo
Copy link

JericoPablo commented Jan 18, 2025

@JericoPablo would you mind updating your dongle firmware to 8.0.2 as you are using fw 7.4.5? This might help. If you have read the entire thread I'm not going to repeat about environment, cabling, etc.

Hi @Ricc68 ! Thank u for ur reply. Ive read a lot about it. Already moved the dongle away and the only thing which comes to my mind is that the cable is going next to a USV and 2 HDDs. Its an Amazon Basic 3.0 USB cable. I will try to eliminate these stuffs aswell, but not sure if they really bother. I also turned WiFi off for several hours but still same errors.

Please let me know if i can provide more information.

The v8.0.2 firmware, where can i find it?
I used https://github.com/darkxst/silabs-firmware-builder/blob/main/firmware_builds/zbdonglee/ncp-uart-hw-v7.4.5.0-zbdonglee-115200.gbl till now to get the 7.4.5 and thought thats also the latest.

After searching around, is it this you are refering to?
sonoff_zbdonglee_zigbee_ncp_8.0.2.0_115200_sw_flow.gbl

@Ricc68
Copy link
Contributor

Ricc68 commented Jan 18, 2025

Fw 8.0.2 from @Nerivec is here https://github.com/Nerivec/silabs-firmware-builder/releases.
Usb3 may not be a good idea because it has the usb3 extra wiring that may introduce noise.
I am using an USB2 cable to avoid that: same vendor as you mentioned.

@JericoPablo
Copy link

ill give it a shot with the new firmware. Thanks! ill let u guys know what the outcome is.
yes the wiring should not do any harm since its plugged in into a USB2. But hey ill give it also a try with a USB2.0 lets see 👍

Thank you so much for helping out.

@Ricc68
Copy link
Contributor

Ricc68 commented Jan 18, 2025

What is the USV you mention in "cable is going next to a USV" ?

@JericoPablo
Copy link

image

image

I have a UPS to which my SFF PC, serving as a server, is connected. The server is located inside an Ikea cabinet. The UPS is placed next to the 3D printer on top of the cabinet. The USB cable runs out of the cabinet, along the wall, and next to the UPS (with a distance of 2-3 cm), as you can see in the photos.

USV was a typo sorry.

@Ricc68
Copy link
Contributor

Ricc68 commented Jan 18, 2025

Ok, understood. To be on the safe side, if you could route the cable far from the UPS, like if you could run it up behind the printer instead of back down along the side of the UPS it would rule out eventual 50 Hz EM noise coming from the transformer of the UPS which is adsorbing around 50-60W looking at your setup (should be shielded but a small emission can still happen depending on the EMC specs).
For good measure make also sure the cable is shielded (my usb2 one is).

@JericoPablo
Copy link

JericoPablo commented Jan 18, 2025

I just tried the new firmware, first i was very happy but after 30 mins the errors again appeared:

[18:52:10] INFO: Preparing to start...
18:52:11] INFO: Socat not enabled
[18:52:11] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2025-01-18 19:23:28] error: 	zh:ember: Delivery of BROADCAST failed for '65535'.
[2025-01-18 19:26:16] error: 	zh:controller:device: Handling of poll check-in from 0x18fc26000008245d failed (ZCL command 0x18fc26000008245d/1 genPollCtrl.checkinRsp({"startFastPolling":false,"fastPollTimeout":0}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false,"sendPolicy":"immediate"}) failed (Delivery failed for '45149'.))

My next step will be:

  • To purchase a shielded USB 2.0 cable.
  • To move the server to a completely different location, without the UPS and, most importantly, without any sources of interference for the signal from the Sonoff Zigbee Dongle E.

I guess the USB Cable will arrive best on monday. Lets see. If you have any recommendation there i can also check out a specific one.

@Ricc68
Copy link
Contributor

Ricc68 commented Jan 18, 2025

No no, just the amz basic shielded, same as I have, is good.

@Ricc68
Copy link
Contributor

Ricc68 commented Jan 18, 2025

Aha ... You have a "VM (HAOS runs on Promox)".
Consider passing to the VM the serial port rather than the full USB device: see https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start_crashes-runtime.html#error-regular-crashes-with-timeout-errors-or-failure-to-start-after-the-serial-port-is-opened

This definitely fixed some of the issues for me but they were stability issues with ZBDongle-E stalling and not responsive to commands, not broadcast issues. It may be worth a try.

@JericoPablo
Copy link

JericoPablo commented Jan 20, 2025

Aha ... You have a "VM (HAOS runs on Promox)".
Consider passing to the VM the serial port rather than the full USB device: see https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start_crashes-runtime.html#error-regular-crashes-with-timeout-errors-or-failure-to-start-after-the-serial-port-is-opened

This definitely fixed some of the issues for me but they were stability issues with ZBDongle-E stalling and not responsive to commands, not broadcast issues. It may be worth a try.

After all the stuff we discussed, which, I thought, it did not helped, i restarted yesterday the whole machine. I cant believe that it helped. No broadcast errors since yesterday midnight where I started it again.

USB2.0 Cable will arrive today and I will still use it.

Only thing left is

[2025-01-20 07:53:19] error: zh:controller:device: Handling of poll check-in from 0x18fc26000008245d failed (ZCL command 0x18fc26000008245d/1 genPollCtrl.checkinRsp({"startFastPolling":false,"fastPollTimeout":0}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false,"sendPolicy":"immediate"}) failed (Delivery failed for '45149'.))

I wonder why, do u think it has another reason than interference?

EDIT:
After 11 Hours it appeared again.

@JericoPablo
Copy link

JericoPablo commented Jan 22, 2025

Okay new setup:
Using USB 2.0 (Amazon) + Aluminum foil around the cable where other cables are close (should help with inteferences)
Removed the UPS, only HA VM is running
Added serial3 on the UI
/etc/pve/nodes/prox/qemu-server/107.conf <- added here this:
serial3:/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20231009085327-if00
i removed i even changed first in the Settings -> Addons -> Z2M -> Config from

serial:
  port: /dev/ttyACM0
  adapter: ember

to

serial:
  port: /dev/ttyS3
  adapter: ember

then looked via File Manager to the configuration.yaml there it was still old so i changed it there aswell
restarted after every step

Now im getting:

[00:18:12] INFO: Preparing to start...
[00:18:13] INFO: Socat not enabled
[00:18:13] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2025-01-23 00:18:14] debug: 	z2m: Removing old log directory '/config/zigbee2mqtt/log/2025-01-23.00-07-11'
[2025-01-23 00:18:14] info: 	z2m: Logging to console, file (filename: log.log)
[2025-01-23 00:18:14] debug: 	z2m: Loaded state from file /config/zigbee2mqtt/state.json
[2025-01-23 00:18:14] info: 	z2m: Starting Zigbee2MQTT version 2.0.0 (commit #unknown)
[2025-01-23 00:18:14] debug: 	z2m: sd-notify loaded
[2025-01-23 00:18:14] info: 	z2m: Starting zigbee-herdsman (3.2.1)
[2025-01-23 00:18:14] debug: 	z2m: Using zigbee-herdsman with settings: '"{\"network\":{\"panID\":8913,\"extendedPanID\":[175,121,165,30,89,1,228,246],\"channelList\":[11],\"networkKey\":\"HIDDEN\"},\"databasePath\":\"/config/zigbee2mqtt/database.db\",\"databaseBackupPath\":\"/config/zigbee2mqtt/database.db.backup\",\"backupPath\":\"/config/zigbee2mqtt/coordinator_backup.json\",\"serialPort\":{\"baudRate\":115200,\"path\":\"/dev/ttyS3\",\"adapter\":\"ember\"},\"adapter\":{\"disableLED\":false}}"'
[2025-01-23 00:18:14] debug: 	zh:adapter:discovery: Connected devices: [{"path":"/dev/ttyS0"},{"path":"/dev/ttyS1"},{"path":"/dev/ttyS2"},{"path":"/dev/ttyS3"}]
[2025-01-23 00:18:14] debug: 	zh:adapter:discovery: Unable to match USB adapter: ember | /dev/ttyS3
[2025-01-23 00:18:14] info: 	zh:ember: Using default stack config.
[2025-01-23 00:18:14] debug: 	zh:controller: Starting with options '{"network":{"networkKeyDistribute":false,"networkKey":"HIDDEN","panID":8913,"extendedPanID":[175,121,165,30,89,1,228,246],"channelList":[11]},"serialPort":{"baudRate":115200,"path":"/dev/ttyS3","adapter":"ember"},"adapter":{"disableLED":false},"databasePath":"/config/zigbee2mqtt/database.db","databaseBackupPath":"/config/zigbee2mqtt/database.db.backup","backupPath":"/config/zigbee2mqtt/coordinator_backup.json"}'
[2025-01-23 00:18:14] info: 	zh:ember: ======== Ember Adapter Starting ========
[2025-01-23 00:18:14] info: 	zh:ember:ezsp: ======== EZSP starting ========
[2025-01-23 00:18:14] info: 	zh:ember:uart:ash: ======== ASH Adapter reset ========
[2025-01-23 00:18:14] info: 	zh:ember:uart:ash: RTS/CTS config is off, enabling software flow control.
[2025-01-23 00:18:14] debug: 	zh:ember:uart:ash: Opening serial port with {"path":"/dev/ttyS3","baudRate":115200,"rtscts":false,"autoOpen":false,"parity":"none","stopBits":1,"xon":true,"xoff":true}
[2025-01-23 00:18:14] info: 	zh:ember:uart:ash: ASH COUNTERS since last clear:
[2025-01-23 00:18:14] info: 	zh:ember:uart:ash:   Total frames: RX=0, TX=0
[2025-01-23 00:18:14] info: 	zh:ember:uart:ash:   Cancelled   : RX=0, TX=0
[2025-01-23 00:18:14] info: 	zh:ember:uart:ash:   DATA frames : RX=0, TX=0
[2025-01-23 00:18:14] info: 	zh:ember:uart:ash:   DATA bytes  : RX=0, TX=0
[2025-01-23 00:18:14] info: 	zh:ember:uart:ash:   Retry frames: RX=0, TX=0
[2025-01-23 00:18:14] info: 	zh:ember:uart:ash:   ACK frames  : RX=0, TX=0
[2025-01-23 00:18:14] info: 	zh:ember:uart:ash:   NAK frames  : RX=0, TX=0
[2025-01-23 00:18:14] info: 	zh:ember:uart:ash:   nRdy frames : RX=0, TX=0
[2025-01-23 00:18:14] info: 	zh:ember:uart:ash:   CRC errors      : RX=0
[2025-01-23 00:18:14] info: 	zh:ember:uart:ash:   Comm errors     : RX=0
[2025-01-23 00:18:14] info: 	zh:ember:uart:ash:   Length < minimum: RX=0
[2025-01-23 00:18:14] info: 	zh:ember:uart:ash:   Length > maximum: RX=0
[2025-01-23 00:18:14] info: 	zh:ember:uart:ash:   Bad controls    : RX=0
[2025-01-23 00:18:14] info: 	zh:ember:uart:ash:   Bad lengths     : RX=0
[2025-01-23 00:18:14] info: 	zh:ember:uart:ash:   Bad ACK numbers : RX=0
[2025-01-23 00:18:14] info: 	zh:ember:uart:ash:   Out of buffers  : RX=0
[2025-01-23 00:18:14] info: 	zh:ember:uart:ash:   Retry dupes     : RX=0
[2025-01-23 00:18:14] info: 	zh:ember:uart:ash:   Out of sequence : RX=0
[2025-01-23 00:18:14] info: 	zh:ember:uart:ash:   ACK timeouts    : RX=0
[2025-01-23 00:18:14] info: 	zh:ember:uart:ash: ======== ASH stopped ========
[2025-01-23 00:18:14] error: 	zh:ember:uart:ash: Failed to init port with error Error: Error: I/O error setting custom baud rate of 115200
[2025-01-23 00:18:14] error: 	z2m: Error while starting zigbee-herdsman
[2025-01-23 00:18:14] error: 	z2m: Failed to start zigbee-herdsman
[2025-01-23 00:18:14] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start_crashes-runtime.html for possible solutions
[2025-01-23 00:18:14] error: 	z2m: Exiting...
[2025-01-23 00:18:14] error: 	z2m: Error: Failed to start EZSP layer with status=HOST_FATAL_ERROR.
    at EmberAdapter.initEzsp (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:670:19)
    at EmberAdapter.start (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:1533:24)
    at Controller.start (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/controller/controller.ts:136:29)
    at Zigbee.start (/app/lib/zigbee.ts:69:27)
    at Controller.start (/app/lib/controller.ts:142:13)
    at start (/app/index.js:161:5)

I dont understand why this did not work out but slowly getting really really frustraded and annoyed.

EDIT: i made a mistake by editing wrong VM lol but corrected it and still not getting connected the dongle right.
Every step makes it kinda more broken :(

EDIT2: also tried with ttyS0 and removing the console=ttyS0 from the cmdline.txt - still same

EDIT3:
HA Hardware:

Image

there is no Dongle anymore under Hardware...

@leloch
Copy link

leloch commented Jan 24, 2025

Extra datapoint here: I got existing Z2M instance with TI Sonoff dongle, was hoping to migrate to SLZB-06M, by cloning IEEE address and preserving network key, PAN ID, etc configs from the old dongle.

This eventually did not work, so I deleted all the devices and tried to start from scratch, however then started seeing these dreaded error, when trying to pair new devices (which brought me here...):

Delivery of BROADCAST failed for '65535'.

The paring kind of pretended to work, but in many cases the deivce was not correctly recognized ("Unsupported") or dysfunctional in some other way.

I have been messing with various firmwares, redoing configs, reinstalling ad-on, ember vs ezsp driver, etc - but nothing was really helping. The ezsp driver / firmware was a bit better (no error), but ultimately had problems with discovering devices and stability.

I was ready to throw this SLZB-06M thing into the bin and get 'properly supported' non-M flavour, but then decided to play with it a bit more with ZHA. ZHA actually worked well, but I hated the primitive nature of it, with crude controls visibility.

Then, just for fun, I re-installed Z2M addon, with a completely vanilla config (no encrytpion keys, PAN ID, channels or anything like that) - and everything started working, no dreaded Delivery of BROADCAST error, problems with adding devices, rocks solid, with the latest 20241127 + v2.7.1 firmwares.
What us interesting, realized that during this entire ordeal with ZHA the IEEE address has reverted to the default one somehow on its own (it is stored in SLZB-06M firmware, I believe - not part of ZHE/Z2M config)

TL;DR A bit unclear what fixed this for me, but I suspect some sort 'bad state' on the SLZB-06M, that got cleared by configuring it for ZHA and then reverting back to Z2M. Perhaps IEEE address clone feature is triggering this bug (ZHA seem to be reverting the address to default) or some other weird state can perist there, outside of what is in Z2A config / coordinator_backup file

Not a great 'solution' of course if you want to preserve your existing network / config (unless ZHA deployment-> wipe -> Z2M install -> restore from Z2M backup can 'unclog' the device too?), but perhaps interesting datapoint for people wrestling with this.

@JericoPablo
Copy link

Extra datapoint here: I got existing Z2M instance with TI Sonoff dongle, was hoping to migrate to SLZB-06M, by cloning IEEE address and preserving network key, PAN ID, etc configs from the old dongle.

This eventually did not work, so I deleted all the devices and tried to start from scratch, however then started seeing these dreaded error, when trying to pair new devices (which brought me here...):

Delivery of BROADCAST failed for '65535'.

The paring kind of pretended to work, but in many cases the deivce was not correctly recognized ("Unsupported") or dysfunctional in some other way.

I have been messing with various firmwares, redoing configs, reinstalling ad-on, ember vs ezsp driver, etc - but nothing was really helping. The ezsp driver / firmware was a bit better (no error), but ultimately had problems with discovering devices and stability.

I was ready to throw this SLZB-06M thing into the bin and get 'properly supported' non-M flavour, but then decided to play with it a bit more with ZHA. ZHA actually worked well, but I hated the primitive nature of it, with crude controls visibility.

Then, just for fun, I re-installed Z2M addon, with a completely vanilla config (no encrytpion keys, PAN ID, channels or anything like that) - and everything started working, no dreaded Delivery of BROADCAST error, problems with adding devices, rocks solid, with the latest 20241127 + v2.7.1 firmwares.
What us interesting, realized that during this entire ordeal with ZHA the IEEE address has reverted to the default one somehow on its own (it is stored in SLZB-06M firmware, I believe - not part of ZHE/Z2M config)

TL;DR A bit unclear what fixed this for me, but I suspect some sort 'bad state' on the SLZB-06M, that got cleared by configuring it for ZHA and then reverting back to Z2M. Perhaps IEEE address clone feature is triggering this bug (ZHA seem to be reverting the address to default) or some other weird state can perist there, outside of what is in Z2A config / coordinator_backup file

Not a great 'solution' of course if you want to preserve your existing network / config (unless ZHA deployment-> wipe -> Z2M install -> restore from Z2M backup can 'unclog' the device too?), but perhaps interesting datapoint for people wrestling with this.

Im using the Sonoff Dongle E, but will maybe give it a try. Since im using Proxmox and i set it up on a new machine before 5 months, this could be indeed old data / conf issue? Anyways I could try it out and if it does not work usw a backup

@vbelloir
Copy link

vbelloir commented Jan 30, 2025

Same here.

everythink was ok, with 18 monthes old docker version, using ezsp driver.
I updated docker container, and it complained with ezsp driver.
I updated my dongle (popp elelabs ZB-Stick), flashed with ncp-uart-hw-v7.4.5.0-elelabs-elx0x3-115200.gbl firmware found here.

Dongle is correctly detect:

[2025-01-30 22:48:56] info: zh:ember: Adapter EZSP protocol version (13) lower than Host. Switched.
[2025-01-30 22:48:56] info: zh:ember: Adapter version info: {"ezsp":13,"revision":"7.4.5 [GA]","build":0,"major":7,"minor":4,"patch":5,"special":0,"type":170}
[2025-01-30 22:48:56] info: zh:ember: [STACK STATUS] Network up.
[2025-01-30 22:48:56] info: zh:ember: [INIT TC] Adapter network matches config.
[2025-01-30 22:48:56] info: zh:ember: [CONCENTRATOR] Started source route discovery. 1248ms until next broadcast.
[2025-01-30 22:48:56] info: z2m: zigbee-herdsman started (resumed)

All my devices already configured in z2m are lost, and I can't add them again:

[2025-01-30 22:49:47] info: z2m: Zigbee: allowing new devices to join.
[2025-01-30 22:49:47] info: zh:ember: [STACK STATUS] Network opened.
[2025-01-30 22:49:47] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/response/permit_join', payload '{"data":{"time":254},"status":"ok"}'
[2025-01-30 22:49:48] error: zh:ember: Delivery of BROADCAST failed for '65533'.
[2025-01-30 22:49:48] error: zh:ember: Delivery of BROADCAST failed for '65532'.
[2025-01-30 22:51:55] error: zh:ember: Delivery of BROADCAST failed for '65535'.

Any advice?

EDIT : I removed my previous data folder, create a new one with new configuration.yaml file, and it's ok, I can add new devices. My previous devices are still lost, but my networtk is really small.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ember Issues related to ember driver fixed-in-dev The issue should be fixed in current dev/edge. problem Something isn't working
Projects
None yet
Development

No branches or pull requests