Z2m problems

Hmm just got my Sonoff stick today and ran into this issue. Deleted the Mosquitto and Zigbee2MQTT folders, .db file, uninstalled/reinstalled, but still getting the same error. :frowning:

alright I was able to get it to work. I updated the Sonoff firmware and then removed the " adaptor: ezsp" from my config and now it’s magically working. (I had only added that after 20 attempts or so :laughing: )

I was having the same issue, for me it was caused by the host OS: linux - Unable to use USB dongle based on USB-serial converter chip - Unix & Linux Stack Exchange

brltty was preventing from the Zigbee USB dongle to connect properly, I removed it completely and it solved the issue. I was even able to restore a backup from my old pi (using the same dongle) without having the re-pair everything.

In my case it was easy. I just had to physically disconnect and connect the sonoff usb stick.

My problem started about 2 days ago, reseating the USB worked the first time. But now nothing helps. I tried changing the configuration and then search for brltty, but running HA as a VM, so it does not seem to have this. I would very much like to avoid reinstalling.

Have you checked that the USB stick hasn’t changed ports? ttyUSB0 and so on. Try using /dev/serial/by-id

yes USB is still on the same port, and i also did the write test from the Z2M site, test -w /dev/ttyACM0 && echo success || echo failure. Which works fine.

What errors do you get ?

[14:57:15] INFO: Preparing to start…
[14:57:15] INFO: Socat not enabled
[14:57:16] INFO: Starting Zigbee2MQTT…
Zigbee2MQTT:debug 2023-10-03 14:57:17: Loaded state from file /config/zigbee2mqtt/state.json
Zigbee2MQTT:info 2023-10-03 14:57:17: Logging to console and directory: ‘/config/zigbee2mqtt/log/2023-10-03.14-57-17’ filename: log.txt
Zigbee2MQTT:debug 2023-10-03 14:57:17: Removing old log directory ‘/config/zigbee2mqtt/log/2023-10-03.13-57-46’
Zigbee2MQTT:info 2023-10-03 14:57:17: Starting Zigbee2MQTT version 1.33.0 (commit #unknown)
Zigbee2MQTT:info 2023-10-03 14:57:17: Starting zigbee-herdsman (0.18.5)
Zigbee2MQTT:debug 2023-10-03 14:57:17: Using zigbee-herdsman with settings: ‘{“adapter”:{“concurrent”:null,“delay”:null,“disableLED”:false},“backupPath”:"/config/zigbee2mqtt/coordinator_backup.json",“databaseBackupPath”:"/config/zigbee2mqtt/database.db.backup",“databasePath”:"/config/zigbee2mqtt/database.db",“network”:{“channelList”:[11],“extendedPanID”:[221,221,221,221,221,221,221,221],“networkKey”:“HIDDEN”,“panID”:6754},“serialPort”:{“adapter”:“ezsp”,“path”:"/dev/ttyACM0"}}’
Error: Reset error: Error: {“sequence”:-1} after 10000ms
at /app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:299:23
at Queue.executeNext (/app/node_modules/zigbee-herdsman/src/utils/queue.ts:32:32)

You mention that you are running this as a vm, try deleting the usb device from the vm and add it again. Does the stick show up under Settings → System → Hardware? Like this:

yeah its USB0 in the proxmox, i have been running it like this for months, close to a year. no issues, maybe a whole reboot of the proxmox would do good.

So did a reboot help? To be honest I assumed you already had tried it :blush:

No it didnt :frowning: I tried stopping Z2M and tried activating ZHA, but it could not connect to the SONOFF either … so now i am thinking the SONOFF might be broken. but the write test to it worked, all kinds of a mess. Can i switch cordinators and still keep my configuration ?

Try reflashing the firmware. Read this in regards to switching coordinators.

Flashed firmware, changed the passthrough from Proxmox from device id to specific port. but no change. I guess its time to reinstall Z2M.

You haven’t enabled ZHA unknowingly?

no ZHA was still ignored, Uninstalled z2m and deleted the configuration as in a post above, reinstalled but still had the error. uninstalled z2m and MQTT. Enabled ZHA but it could not connect to the dongle during configuration. I ordered a new dongle, hoping my issues are hardware ones.

This fixed it for me. I’m running proxmox and USB passthrough. I had to change the server to the ip instead of using core-mosquitto:1883. Thank you internet buddy!

This just happened to me this morning and, honestly, I’m kind of panicking.

I’d been using the conbee II but having some trouble with it that, from reading, might be solved with the Sonoff ZBDongle-E. So that’s what I got. I initially tried to transfer my hue bulbs over using the Hue dimmer method, but it seems that hue bulbs paired with the conbee II can’t be reset this way? It didn’t work for me, anyway. So I spent half a day with one machine running zigbee2mqtt with the conbee stick and another running it with the ZBDongle-E and painstakingly removing bulbs from my old setup and bringing them into my new one. It worked for two days, except one Nue brand bulb refused to show up after being removed from the old zigbee network. I had the “bright” idea to shut down zigbee2mqtt and manually enter its MAC and settings into the new zigbee2mqtt config file and start back up. When I did this, zigbee2mqtt refused to come up, with the same error described here. I reverted to the previous config and since then have had no success getting it back up. I’ve moved the dongle to another machine and tried it both with a clone of my working config and with a fresh config; I’ve successfully reflashed the firmware, but still the same problem. Is this a hardware fault potentially?

The reason I’m panicking is I wasn’t able to get my bulbs off the zigbee network when I did this transition without a working system - so now I’m afraid I’ve effectively bricked all my hue bulbs.

UPDATE EDIT: panic subsiding - I discovered that I somehow ended up at the router firmware download page instead of the coordinator firmware, and had put that on my dongle. Now I can start zigbee2mqtt successfully with a fresh configuration, just working out how to restore everything…

I have the exact same error message (see below) as you had. I’m new to HA, installed it on a Raspberry Pi 4 and use the Sonoff Zigbee Dongle-E.
Did a new dongle help?

Zigbee2MQTT:info 2023-12-13 23:21:01: Starting zigbee-herdsman (0.25.0)
Error: Reset error: Error: {“sequence”:-1} after 10000ms
at /app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:299:23
at Queue.executeNext (/app/node_modules/zigbee-herdsman/src/utils/queue.ts:32:32)

Hey, did you ever figure this out? Have the same problem. Solutions above didn’t help :frowning: