Zigbee network suddenly unstable
What happened?
Out of nowhere (e.g. no update done, no device added, etc...) my Zigbee network became unstable. Whole network just stops working (I see no activity in log at debug or info level) and when trying to control device I receive immediate error due to "0x11 BUFFER FULL"
Example of errors: https://paste.ofcode.org/7zNGYvWkCtFqPkFMzKK2JW
Occasionally when networks works, I receive timeout errors: https://paste.ofcode.org/emFTK9zwWVnnh6qXPGvpFp
Roll back to 1.40.0-1 - It did not help Roll back to full backup with Home Assistant 2024.10.4 + Z2M 1.40.0-1 - It did not help Manual restart - Did not help Power down - Did not help Unplugging USB adapter and plugging it back - Helps but for random amount of time - Will break in hours or minutes in some occasions.
I suspect same case as https://github.com/Koenkk/zigbee2mqtt/issues/23571
My setup: HAOS running on Intel NUC Core 2024.11.2 Supervisor 2024.11.2 Operating System 13.2 Frontend 20241106.2 Zigbee2MQTT 1.41.0 Adapter SONOFF Dongle Plus-P with FW 20240710 Total 102 devices, 66 being routers
I have just enabled debug logging and will provide the log once the issues occurs again.
I also just ordered SMLIGHT SLZB-07p7 planning to replace it as it seems more suitable adapter.
What did you expect to happen?
Fully working Zigbee network
How to reproduce it (minimal and precise)
No idea.... It just happened spontaneously.
Zigbee2MQTT version
1.41.0
Adapter firmware version
20240710
Adapter
SONOFF Dongle Plus-P
Setup
HAOS running on Intel NUC
Debug log
No response
Oh, yeah forgot to mention:
Adapter is placed on USB extension cord. Wi-Fi networks are specifically setup in a way so they do not interfere with Zigbee and I do live in remote location so I have zero interference from outside world.
Have you tried to clear the NVRAM ? You may try the ZigStar Multi Tool
Have you tried to clear the NVRAM ? You may try the ZigStar Multi Tool
And what does that do? I have never heard about such procedure.
So I had full day with debug log and managed to trace the behavior a bit.
18.11.2024 (yesterday) once the issue occurred I tried rolling back to backup, as described above. Nothing helped, but re-plugging the coordinator helped. I enabled debug log in the evening.
The network was stable (active communication at info level log) until 19.11.2024 12:44 I noticed that the network is down again, checked the logs and noticed errors ending usually with
failed (Data request failed with error: 'MAC channel access failure' (225))
or
failed (SRSP - AF - dataRequest after 6000ms)
According to log, the first error occurred at 18.11.2024 21:40 - But I have did not observe any issue.
At 19.11.2024 1:30 first error of device controlled through automation occurred. Since then, probably, whole network was down. I have automation which triggers each 30 mins and controls zigbee devices.
Now, 19.11.2024 16:34 I re-plugged the adapter and network works again. But for how long?
Here is the debug log of the events: 2024_11_18 and 19.log
Usually, when network works, the log is full of info-level notifications of communication, once the network is down, no information is being transmitted and errors are generated due to devices being controlled by automation.
@Koenkk would you mind taking a look at this please and provide some guidance? I am pulling my hair out because of this... If previous version would work, I would just roll back, but it does not...
Have you tried to clear the NVRAM ? You may try the ZigStar Multi Tool
And what does that do? I have never heard about such procedure.
It completely clears the memory of your dongle like flashing with a new firmware. You had errors like BUFFER FULL as you posted.
failed (SRSP - AF - dataRequest after 6000ms)
Your adapter has crashed.
According to some discussions via Discord, the Dongle-P might get corrupted. Mine is now used on a test network and I bought a new one from another brand based on CC2652P. Z2M here is not the cause. It is the hardware.
@chris-1243 Yeah, HW failure could be a cause too, since rolling back to previous Z2M version did not help.
Unfortunately, looking at https://github.com/Koenkk/zigbee2mqtt/issues/23571 the OP switched between SONOFF Zigbee 3.0 USB Dongle Plus-P (CC2652P) and SLZB-06P7 (CC2652P7) and issue persisted, which indicates that it probably is not hardware failure but it might be hardware issue - specifically the firmware of CC2652P.
I ordered SLZB-07p7 (CC2652P7) which will arrive today, so I will try switching. I will also try the NVRAM reset at next opportunity.
I ordered SLZB-07p7 (CC2652P7) which will arrive today, so I will try switching. I will also try the NVRAM reset at next opportunity.
Try to use latest firmware on your P7 chip. First generation of firmwares had issues due to bugs in TI SDK.
It might be firmware issue as well. I tried a lot of them to debug and help without having many issues. 20240710 for the CC2652P is perfectly working since it was in beta phase. It is, for me, one of the most stable release. As you are staying on TI chip, the migration should be easy and no need to re-pair everything👍. You must write the old IEEE address (Donge-P) to your new coordinator. The tool I suggested should be able to do the job.
I certainly plan to update the FW, as I run 20240710 on the Dongle-P due to some issues in the past.
Thanks for the help, much appreciated, I will give it a try!
Update: Still running same setup without any change, 24 hours passed without single error and network is stable.
I have been loosing multiple zigbee devices the last few days. A bit similar like this issue describes.
Cannot put zigbee2mqtt into pairing mode (permit join) from home assistant nor from the z2m interface. now about ⅔ zigbee devices are offline.
Using zigbee and home assistent fort remote monitoring (500km drive for 2 ways) all I can do is restart my host from here or z2m addon but unable tot taken out the USB stick or something. Any idea what I can do (remotely) tot get my sensors back would be appreciated.
It starts freezing now outside and the sensors are for example monitoring water pipe temperature to be alarmed when it freezes and if the boiler (on an other floor) is working.
UPDATE nov26: asked someone to reseat the usb zigbee dongle and reset some devices ... found one smart plug (ELIVCO model SPA9) that didn't react when trying to re-pair. also didn't seam to power on or of the attached boiler anymore ... removed the device
Now network seams to be stable
Update: Still running same setup without any change, 24 hours passed without single error and network is stable.
Great!!! It would be interesting to know what you have done. Clear the NVRAM, remove power to the dongle, etc..
@chris-1243 that's the thing, I have done nothing :D
So issues are still persistent, randomly appearing...
I have just flashed SLZB-07p7 with "CC1352P7_coordinator_20240710.hex" changed IEEE address, replaced the coordinator, Z2M is working. I will now observe for how long it will stay stable...
Since switching to the SLZB-07p7 (Now more than 48 hours) the network is stable and I have not perceived any issues so far. Hopefully this has solved it.
Network still stable, therefore I am closing this thread.
Conclusion My theory is that 1.41.0 maybe brought some bug which occurs only in specific constellations (Network size, type of devices, type of coordinator) which result in permanent damage (since rolling back to backup with older Z2M did not help) of the coordinator´s memory. Replacing coordinator for another one (with same chipset, just higher memory) solved the issue (hopefully for good now).
Thanks everyone for help.