I have a problem with zigbee sonoff-dongle disconnecting periodically.
Yes, done the list of things needed to reduce this (mostly).
Today I just woke it up after 8 hours disconnected (by itself, very annoying) by going to:
zigbee2mqtt > network > load,
the zigbee network immediately functioned perfectly. From memory, I did not even need to wait for the network to be displayed.
This is easier than a reboot.
It would be nice to automate this on reciept of unexpected timeout(s).
It would be better to find out the cause of the issue rather than automating a reload every night. A healthy Z2M does not need to be reloaded every 24 hours. What does your Z2M logs say? Supply some more detailed information and people will help you.
One of these posts should help you improve your mesh or sort out the problem: The Home Assistant Cookbook - Index
good idea, should have thought that myself. No warnings here a few hours of errors:
[17/08/2026, 17:03:21] zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
[17/08/2026, 17:03:21] zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
[17/08/2026, 17:23:35] zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
[17/08/2026, 17:23:35] zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
[17/08/2026, 17:29:38] zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
[17/08/2026, 17:29:38] zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
[17/08/2026, 17:41:47] zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
[17/08/2026, 17:41:47] zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
[17/08/2026, 17:44:58] zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
[17/08/2026, 17:44:58] zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
[17/08/2026, 18:00:58] zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
[17/08/2026, 18:00:58] zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
[17/08/2026, 18:05:48] zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
[17/08/2026, 18:05:48] zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
[17/08/2026, 18:10:36] zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
[17/08/2026, 18:10:36] zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
[17/08/2026, 18:12:07] zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
[17/08/2026, 18:12:07] zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
[17/08/2026, 18:16:43] zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
[17/08/2026, 18:16:43] zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
[17/08/2026, 18:16:44] zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
[17/08/2026, 18:16:44] zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
[17/08/2026, 18:17:31] zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
[17/08/2026, 18:17:31] zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
[17/08/2026, 18:18:10] zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
[17/08/2026, 18:18:10] zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
[17/08/2026, 18:27:17] zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
[17/08/2026, 18:27:17] zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
[17/08/2026, 18:29:17] zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
[17/08/2026, 18:29:17] zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
[17/08/2026, 18:31:37] zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
[17/08/2026, 18:31:37] zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
[17/08/2026, 18:33:20] zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
[17/08/2026, 18:33:20] zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
[17/08/2026, 18:35:53] zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
[17/08/2026, 18:35:53] zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
[17/08/2026, 18:40:53] zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
[17/08/2026, 18:40:53] zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
[17/08/2026, 18:46:38] zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
[17/08/2026, 18:46:38] zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
[17/08/2026, 18:48:29] zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
[17/08/2026, 18:48:29] zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
[17/08/2026, 18:55:57] zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
[17/08/2026, 18:55:57] zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
[17/08/2026, 18:56:32] zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
[17/08/2026, 18:56:32] zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
[17/08/2026, 18:56:37] zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
[17/08/2026, 18:56:37] zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
[17/08/2026, 18:56:38] zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
[17/08/2026, 18:56:38] zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
[17/08/2026, 19:55:19] z2m: Publish 'set' 'state' to 'Plug heating' failed: 'Error: ZCL command 0xa4c13804124bb8e6/1 genOnOff.off({}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Timeout after 10000ms [address=3208 endpoint=1 clusterId=6 cmdId=11 tsn=17])'
[17/08/2026, 20:05:04] zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
[17/08/2026, 20:05:04] zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
[17/08/2026, 20:10:58] zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
[17/08/2026, 20:10:58] zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
WARNING: I don’t use Zigbee, so take what I write with caution
If you can’t find the root cause and solve it another way you can reset the USB socket/device from linux (HAOS?) OS: GitHub - jkulesza/usbreset · GitHub
crontab it to run every x hours..
I use this to reset a usb to serial adapter that connect to a serial console on another system, It freezes every now and then so after losing my very short patience debugging the issue I reverted to using brute force…
OK, following your excellent advice here is the sequence before it stops working,
Hopefully someone will have an idea of the cause, and possibly the solution:
I am a bit concerned to remove the repeating error that occurs all day but does not seem to cause a crash
… Repeated error sequence that does not cause crash
zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
[18/08/2026, 12:50:18] zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
[18/08/2026, 12:50:18] zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
… final error before crash
[18/08/2026, 17:37:46] frontend:ws: Failed to connect to WebSocket after 10 tries
…
Here the error sequence that caused the crash:
[18/08/2026, 12:55:57] zh:ezsp:uart: --> Error: Error: {"sequence":5} after 4000ms
[18/08/2026, 12:55:57] zh:ezsp:uart: -!- break waiting (5)
[18/08/2026, 12:55:57] zh:ezsp:uart: Can't send DATA frame (4,5,0): 840001340000d8a4040100ef010100010000a0a10510ee0b2400
[18/08/2026, 12:56:02] zh:ezsp:uart: --> Error: Error: {"sequence":5} after 4000ms
[18/08/2026, 12:56:02] zh:ezsp:uart: -!- break rewaiting (5)
[18/08/2026, 12:56:02] zh:ezsp:uart: Can't resend DATA frame (4,5,1): 840001340000d8a4040100ef010100010000a0a10510ee0b2400
[18/08/2026, 12:56:10] zh:ezsp:uart: --> Error: Error: {"sequence":7} after 4000ms
[18/08/2026, 12:56:10] zh:ezsp:uart: -!- break waiting (7)
[18/08/2026, 12:56:10] zh:ezsp:uart: Can't send DATA frame (6,6,0): 0e00015500066000
[18/08/2026, 12:56:15] zh:ezsp:uart: --> Error: Error: {"sequence":7} after 4000ms
[18/08/2026, 12:56:15] zh:ezsp:uart: -!- break rewaiting (7)
[18/08/2026, 12:56:15] zh:ezsp:uart: Can't resend DATA frame (6,6,1): 0e00015500066000
[18/08/2026, 12:56:15] zh:ezsp:ezsp: setPolicy(6, 96) error: Error: Failure send setPolicy:{"type":"Buffer","data":[14,0,1,85,0,6,96,0]}
[18/08/2026, 12:56:15] zh:ezsp:ezsp: setPolicy(5, 81) error: Error: Connection not initialized
[18/08/2026, 12:56:15] zh:ezsp:ezsp: setPolicy(0, 3) error: Error: Connection not initialized
[18/08/2026, 12:56:23] zh:ezsp:uart: --> Error: Error: {"sequence":1} after 4000ms
[18/08/2026, 12:56:23] zh:ezsp:uart: -!- break waiting (1)
[18/08/2026, 12:56:23] zh:ezsp:uart: Can't send DATA frame (0,1,0): 1800012800
[18/08/2026, 12:59:31] zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
[18/08/2026, 12:59:31] zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
[18/08/2026, 13:01:26] zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
[18/08/2026, 13:01:26] zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
[18/08/2026, 13:01:26] zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
[18/08/2026, 13:01:26] zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
[18/08/2026, 13:01:26] zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
[18/08/2026, 13:01:26] zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
[18/08/2026, 13:20:38] zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
[18/08/2026, 13:20:38] zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
[18/08/2026, 14:06:12] zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
[18/08/2026, 14:06:12] zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
[18/08/2026, 14:53:33] zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
[18/08/2026, 14:53:33] zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
[18/08/2026, 15:40:19] zh:ezsp:ezsp: Frame changeSourceRouteHandler parsing error: RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds
[18/08/2026, 15:40:19] zh:ezsp:ezsp: Unparsed frame 0xc4. Skipped
[18/08/2026, 17:37:46] frontend:ws: Failed to connect to WebSocket after 10 tries
From what I could google myself to, this might be firmware related. Have you tried updating the firmware on the dongle?