Zigbee2MQTT Stopped Working 1/5/2025

PROBLEM / ISSUE: After over 1 year of this addon working flawlessly, it stopped working today. The addon fails to start (see screenshot).

SETUP:

  • Platform: RPi4
  • Sonoff Zigbee 3.0 USB Dongle Plus-E Gateway
  • Core: 2025.1.0
  • Supervisor 1024.12.3
  • OS: 14.1
  • Frontend: 20250103.0
  • Zigbee2MQTT version: 2.0.0-1

STEPS TAKEN:

  1. Searched community for similar issues → found no recent issues. Similar issues have been documented in the past. I attempted a solution from one of them (below).
  2. Attempted a solution provided here. Added “adapter: zstack” to serial section of configuration.
  3. Restarted service
  4. Restarted HA
  5. Confirmed Sonoff Zigbee Adapter is connected
  6. Downloaded logs (attached)

QUESTION: Is anyone aware of a simple solution?

LOGS:

[16:35:28] INFO: e[32mPreparing to start...e[0m
[16:35:28] INFO: e[32mSocat not enablede[0m
[16:35:29] INFO: e[32mStarting Zigbee2MQTT...e[0m
Starting Zigbee2MQTT without watchdog.
[2025-01-05 16:35:34] e[32minfoe[39m: 	z2m: Logging to console, file (filename: log.log)
[2025-01-05 16:35:34] e[32minfoe[39m: 	z2m: Starting Zigbee2MQTT version 2.0.0 (commit #unknown)
[2025-01-05 16:35:34] e[32minfoe[39m: 	z2m: Starting zigbee-herdsman (3.2.1)
[2025-01-05 16:35:34] e[31merrore[39m: 	z2m: Error while starting zigbee-herdsman
[2025-01-05 16:35:34] e[31merrore[39m: 	z2m: Failed to start zigbee-herdsman
[2025-01-05 16:35:34] e[31merrore[39m: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start_crashes-runtime.html for possible solutions
[2025-01-05 16:35:34] e[31merrore[39m: 	z2m: Exiting...
[2025-01-05 16:35:34] e[31merrore[39m: 	z2m: Error: USB adapter discovery error (No valid USB adapter found). Specify valid 'adapter' and 'port' in your configuration.
    at discoverAdapter (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/adapterDiscovery.ts:523:15)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at Function.create (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/adapter.ts:68:33)
    at Controller.start (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/controller/controller.ts:132:24)
    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)
[2025-01-05 16:35:34] e[31merrore[39m: 	z2m: If this happens after updating to Zigbee2MQTT 2.0.0, see https://github.com/Koenkk/zigbee2mqtt/discussions/24364
[16:39:47] INFO: e[32mPreparing to start...e[0m
[16:39:48] INFO: e[32mSocat not enablede[0m
[16:39:48] INFO: e[32mStarting Zigbee2MQTT...e[0m
Starting Zigbee2MQTT without watchdog.
[2025-01-05 16:39:53] e[32minfoe[39m: 	z2m: Logging to console, file (filename: log.log)
[2025-01-05 16:39:53] e[32minfoe[39m: 	z2m: Starting Zigbee2MQTT version 2.0.0 (commit #unknown)
[2025-01-05 16:39:53] e[32minfoe[39m: 	z2m: Starting zigbee-herdsman (3.2.1)
[2025-01-05 16:39:53] e[31merrore[39m: 	z2m: Error while starting zigbee-herdsman
[2025-01-05 16:39:53] e[31merrore[39m: 	z2m: Failed to start zigbee-herdsman
[2025-01-05 16:39:53] e[31merrore[39m: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start_crashes-runtime.html for possible solutions
[2025-01-05 16:39:53] e[31merrore[39m: 	z2m: Exiting...
[2025-01-05 16:39:53] e[31merrore[39m: 	z2m: Error: USB adapter discovery error (No valid USB adapter found). Specify valid 'adapter' and 'port' in your configuration.
    at discoverAdapter (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/adapterDiscovery.ts:523:15)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at Function.create (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/adapter.ts:68:33)
    at Controller.start (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/controller/controller.ts:132:24)
    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)
[2025-01-05 16:39:53] e[31merrore[39m: 	z2m: If this happens after updating to Zigbee2MQTT 2.0.0, see https://github.com/Koenkk/zigbee2mqtt/discussions/24364
[16:40:02] INFO: e[32mPreparing to start...e[0m
[16:40:02] INFO: e[32mSocat not enablede[0m
[16:40:03] INFO: e[32mStarting Zigbee2MQTT...e[0m
Starting Zigbee2MQTT without watchdog.
[2025-01-05 16:40:08] e[32minfoe[39m: 	z2m: Logging to console, file (filename: log.log)
[2025-01-05 16:40:08] e[32minfoe[39m: 	z2m: Starting Zigbee2MQTT version 2.0.0 (commit #unknown)
[2025-01-05 16:40:08] e[32minfoe[39m: 	z2m: Starting zigbee-herdsman (3.2.1)
[2025-01-05 16:40:08] e[31merrore[39m: 	z2m: Error while starting zigbee-herdsman
[2025-01-05 16:40:08] e[31merrore[39m: 	z2m: Failed to start zigbee-herdsman
[2025-01-05 16:40:08] e[31merrore[39m: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start_crashes-runtime.html for possible solutions
[2025-01-05 16:40:08] e[31merrore[39m: 	z2m: Exiting...
[2025-01-05 16:40:08] e[31merrore[39m: 	z2m: Error: USB adapter discovery error (No valid USB adapter found). Specify valid 'adapter' and 'port' in your configuration.
    at discoverAdapter (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/adapterDiscovery.ts:523:15)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at Function.create (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/adapter.ts:68:33)
    at Controller.start (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/controller/controller.ts:132:24)
    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)
[2025-01-05 16:40:08] e[31merrore[39m: 	z2m: If this happens after updating to Zigbee2MQTT 2.0.0, see https://github.com/Koenkk/zigbee2mqtt/discussions/24364
[16:40:15] INFO: e[32mPreparing to start...e[0m
[16:40:15] INFO: e[32mSocat not enablede[0m
[16:40:15] INFO: e[32mStarting Zigbee2MQTT...e[0m
Starting Zigbee2MQTT without watchdog.
[2025-01-05 16:40:20] e[32minfoe[39m: 	z2m: Logging to console, file (filename: log.log)
[2025-01-05 16:40:20] e[32minfoe[39m: 	z2m: Starting Zigbee2MQTT version 2.0.0 (commit #unknown)
[2025-01-05 16:40:20] e[32minfoe[39m: 	z2m: Starting zigbee-herdsman (3.2.1)
[2025-01-05 16:40:21] e[31merrore[39m: 	z2m: Error while starting zigbee-herdsman
[2025-01-05 16:40:21] e[31merrore[39m: 	z2m: Failed to start zigbee-herdsman
[2025-01-05 16:40:21] e[31merrore[39m: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start_crashes-runtime.html for possible solutions
[2025-01-05 16:40:21] e[31merrore[39m: 	z2m: Exiting...
[2025-01-05 16:40:21] e[31merrore[39m: 	z2m: Error: USB adapter discovery error (No valid USB adapter found). Specify valid 'adapter' and 'port' in your configuration.
    at discoverAdapter (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/adapterDiscovery.ts:523:15)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at Function.create (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/adapter.ts:68:33)
    at Controller.start (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/controller/controller.ts:132:24)
    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)
[2025-01-05 16:40:21] e[31merrore[39m: 	z2m: If this happens after updating to Zigbee2MQTT 2.0.0, see https://github.com/Koenkk/zigbee2mqtt/discussions/24364
[16:44:27] INFO: e[32mPreparing to start...e[0m
[16:44:27] INFO: e[32mSocat not enablede[0m
[16:44:28] INFO: e[32mStarting Zigbee2MQTT...e[0m
Starting Zigbee2MQTT without watchdog.
[2025-01-05 16:44:33] e[32minfoe[39m: 	z2m: Logging to console, file (filename: log.log)
[2025-01-05 16:44:33] e[32minfoe[39m: 	z2m: Starting Zigbee2MQTT version 2.0.0 (commit #unknown)
[2025-01-05 16:44:33] e[32minfoe[39m: 	z2m: Starting zigbee-herdsman (3.2.1)
[2025-01-05 16:44:33] e[31merrore[39m: 	z2m: Error while starting zigbee-herdsman
[2025-01-05 16:44:33] e[31merrore[39m: 	z2m: Failed to start zigbee-herdsman
[2025-01-05 16:44:33] e[31merrore[39m: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start_crashes-runtime.html for possible solutions
[2025-01-05 16:44:33] e[31merrore[39m: 	z2m: Exiting...
[2025-01-05 16:44:33] e[31merrore[39m: 	z2m: Error: USB adapter discovery error (No valid USB adapter found). Specify valid 'adapter' and 'port' in your configuration.
    at discoverAdapter (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/adapterDiscovery.ts:523:15)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at Function.create (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/adapter.ts:68:33)
    at Controller.start (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/controller/controller.ts:132:24)
    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)
[2025-01-05 16:44:33] e[31merrore[39m: 	z2m: If this happens after updating to Zigbee2MQTT 2.0.0, see https://github.com/Koenkk/zigbee2mqtt/discussions/24364
1 Like

Never mind, my suggestion was what you had already tried. It worked for me so not sure :frowning:

@ncd Thanks for responding. Just to be sure, this was the line I added to the config (see screenshot). Does that look like what you did?

I have the same dongle, adapter: zstack Try and check the log, if it works…

One other thing I just noticed is that the addon isn’t even in the store anymore (see screenshot). All I see is the proxy and the developer one (edge).

adapter: ember

1 Like

the is reason that the store is not listings the add-on at the moment because config.json is invalid…the pr for fix is already there, just wait for merge

3 Likes

Trying adapter: ember. Rebooting.

Okay, good info. Do you think this explains the problem and it will correct itself with the update?

and you have space before adapter:

I have this same issue with the store BTW. Great news!

1 Like

This has nothing to do with your problem.

1 Like

That fixed it! Thank you! Not sure why it was always working before and just stopped. But, I’m good with this.

ember did not work for me. zstack did.

Before the update I don’t think the adapter was required, just the port…

1 Like

I had to restart the VM to get the Z2M addon working. Beyond that no troubles.
Something odd happened from the upgrade that the VM software kept connecting/disconnecting the Zigbee stick (windows kept pinging and reloading device manager)

That’s very puzzling because your device clearly indicates it’s an “E” type which uses a chip from Silicon Labs. Z2M’s own documentation indicates ember is for communicating with the Silicon Labs’ chip.

In contrast, zstack is for use with the chip made by TI (which is used in the Sonoff “P” version).

FWIW, you’re the second person (since the advent of Z2M 2.0) with a Sonoff dongle that indicates it uses the Silicon Labs chip but only works when adapter is set to zstack, not ember. Odd.


EDIT

Your first post indicates you have an E type. How do you know it’s an E type?

The reason why I ask is because the screenshot you posted shows the name of your Sonoff dongle and it’s virtually the same as my Sonoff dongle which is a “P” type.

Yours:

Mine:

port: >
  dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_5xxxx-if00-port0

Their sonoff naming of these versions is very confusing, some shops also give wrong markings between them.

I just went to Amazon and looked up the order to figure out what dongle I had. See screenshot. Maybe it’s not what they sold?

That table clearly shows the two models use different hardware (CC2652P from TI and EFR32MG21 from Silicon Labs) and each uses a different serial communications protocol (zstack vs ember).

That’s why I find it perolexing when users report their Sonoff dongles using Silicon Labs hardware only work with adapter: zstack.

Maybe not because zstack and ember are not interchangeable protocols.


EDIT

FWIW, whenever it comes time for you to update the dongle’s firmware, you need to know for sure which model it is to ensure you don’t attempt to load the wrong one.

2 Likes