zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

SONOFF zigbee 3.0 usb dongle plus Keeps crashing

Open Veldkornet opened this issue 4 years ago • 63 comments

What happened?

As a continuation of https://github.com/Koenkk/zigbee2mqtt/issues/11216, every so often all devices become unavailable and I get messages like the following:

Debug Received MQTT message on 'zigbee2mqtt/bridge/request/permit_join' with data '{"device":null,"time":254,"transaction":"wjftl-3","value":true}'
Info Zigbee: allowing new devices to join.
Error Request 'zigbee2mqtt/bridge/request/permit_join' failed with error: 'SRSP - ZDO - mgmtPermitJoinReq after 6000ms'
Debug Error: SRSP - ZDO - mgmtPermitJoinReq after 6000ms at Timeout._onTimeout (/app/node_modules/zigbee-herdsman/src/utils/waitress.ts:64:35) at listOnTimeout (internal/timers.js:557:17) at processTimers (internal/timers.js:500:7)
Info MQTT publish: topic 'zigbee2mqtt/bridge/response/permit_join', payload '{"data":{},"error":"SRSP - ZDO - mgmtPermitJoinReq after 6000ms","status":"error","transaction":"wjftl-3"}'

I currently run both MQTT and Z2M on HomeAssistant OS on a RaspberryPi 4 with a ARGON one M.2. The Sonoff adapter is plugged into a Nedis Powered USB HUB, which is plugged into one of the usb 2.0 ports of the RPi. The only items plugged into the hub are the SONOFF and an Aeotec ZStick.

This issue does not occur with the ConBee II.

I’ve been through the troubleshooting topic listed here; and I’ve added usbcore.autosuspend=-1, but this hasn’t seem to make any difference.

It can crash every few hours or every 1-2 days, I don’t find a clear pattern.

What did you expect to happen?

Everything should stay running and the coordinator should not crash.

How to reproduce it (minimal and precise)

unclear, it just crashes on it’s own.

Zigbee2MQTT version

1.25.1

Adapter firmware version

20220507

Adapter

SONOFF Zigbee USB Dongle Plus (zStack3x0)

Debug log

No response

Veldkornet avatar May 22 '22 18:05 Veldkornet

Can you provide the zigbee herdsman log starting from the point where you start z2m until it fails?

See https://www.zigbee2mqtt.io/guide/usage/debug.html on how to enable the herdsman debug logging. Note that this is only logged to STDOUT and not to log files.

Koenkk avatar May 22 '22 20:05 Koenkk

@Koenkk See log here. Looks to have started at 2022-05-25T03:48:50.628Z. I have about 2 days worth of that debug log before the issue arose, but let me know if you need more info.

Veldkornet avatar May 25 '22 05:05 Veldkornet

  • Could you try disabling the availability feature? I don't see any indication that something goes wrong in the coordinator firmware but this should reduce the stress on it.
  • Does anything appear in the dmesg logging when the crash happens?

Koenkk avatar May 25 '22 16:05 Koenkk

I've disabled Availability before, but it didn't make a difference. Only that there is a less visual way for me to see that there is an issue.

A bit difficult to look back in dmesg...

However, I bought a new SONOFF and have moved everything over to it instead. Will see now if it works any better or has the same issues.

Veldkornet avatar May 26 '22 09:05 Veldkornet

I had the same problem with my Electrolama stick. Check if you have the Zigbee Home Automation integration installed. When I disabled the integration everything worked as it should.

dajomu1 avatar May 29 '22 20:05 dajomu1

Nope, same thing happens with the new dongle. It was going strong for the first couple of days, but then last night... ☠️

Also, no I do not have ZHA.

Again, the issue does not occur when I use the ConBee II.

Veldkornet avatar May 30 '22 05:05 Veldkornet

Same here. And some Philips motion sensors get partley disconnected (still shows connection, but it sends no updated sensor data). After hard restart (power off/on) everything is fine until it happens again after some days. Pairing of new devices is not possible as well in that state... I had ConBee II before and it does not happen there...

Bascht74 avatar Jun 24 '22 11:06 Bascht74

At the moment for me, it happens once to twice per day. Most of the time, I just restart the add-on and it’s fine. Now and then I also need to re-plug the stick.

It’s easy to spot because all of the devices become unavailable in HomeAssistant

Veldkornet avatar Jun 24 '22 11:06 Veldkornet

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Jul 25 '22 00:07 github-actions[bot]

Issue still occurs. Still haven't really discovered why...

Veldkornet avatar Jul 25 '22 04:07 Veldkornet

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Aug 26 '22 00:08 github-actions[bot]

FYI, I've updated the firmware to 20220726 and it seems to work better, but it still happens.

Ie, longer periods between when it breaks. Now it's maybe once a week.

Veldkornet avatar Aug 26 '22 04:08 Veldkornet

Hello, @Veldkornet Where do you find the 20220726 firmware? For me the last update for SONOFF Zigbee USB Dongle Plus (zStack3x0) is the 20220219.

Thanks for your feedback

Minoux78 avatar Sep 05 '22 14:09 Minoux78

Hello,

@Veldkornet

Where do you find the 20220726 firmware?

For me the last update for SONOFF Zigbee USB Dongle Plus (zStack3x0) is the 20220219.

Thanks for your feedback

Here -> https://github.com/Koenkk/Z-Stack-firmware/tree/develop/coordinator/Z-Stack_3.x.0/bin

Veldkornet avatar Sep 05 '22 15:09 Veldkornet

@Veldkornet Exact same issue here! The cherry on top, i have bought the sonoff to replace the conbee II because sometimes deconz addon has stabilitty issues :-)

I am also running; 20220219 Did you got the stick stable?

popy2k14 avatar Sep 15 '22 06:09 popy2k14

@Koenkk is this a known issue and solved with an newer firmware?

popy2k14 avatar Sep 15 '22 06:09 popy2k14

@popy2k14 can you provide the herdsman debug logging starting from the moment you start z2m until the crash?

See https://www.zigbee2mqtt.io/guide/usage/debug.html on how to enable the herdsman debug logging. Note that this is only logged to STDOUT and not to log files.

Koenkk avatar Sep 15 '22 08:09 Koenkk

@Koenkk i have enabled the herdsman logging on my hass.io supervised addon and tried to gather the logs as described in the link. There are now herdsman entries in it.

When the issue occured i will grab them an come back here.

Did you found an issue in @Veldkornet log above?

@Veldkornet is the new beta firmware 20220726 stable for you?

popy2k14 avatar Sep 15 '22 10:09 popy2k14

The new firmware works better, but it still happens unfortunately.

Veldkornet avatar Sep 15 '22 13:09 Veldkornet

@Veldkornet thx for the info.

@Koenkk it happened again, here is the log file: https://drive.google.com/file/d/1NjKBKp9Qz-TPUm7kYP6pZS8MHRjekf8a/view?usp=sharing

popy2k14 avatar Sep 16 '22 05:09 popy2k14