Newbe needs some help with zigbee2mqtt and mosquito broker

Hey there,

I just installed Homeassistant on a raspberry pi 4 and tried to configure it. I installed the zigbee2mqtt addon and mosquito broker addon

I filled in my serial port number for the Conbee II that I am using, and tried to start the zigbee2mqtt addon, but it keeps giving me this error:

[23:30:46] INFO: Preparing to start...
[23:30:46] INFO: Socat not enabled
[23:30:48] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-10-02 23:30:54] info: 	z2m: Logging to console, file (filename: log.log)
[2024-10-02 23:30:54] info: 	z2m: Starting Zigbee2MQTT version 1.40.2 (commit #unknown)
[2024-10-02 23:30:54] info: 	z2m: Starting zigbee-herdsman (2.1.3)
[2024-10-02 23:30:55] error: 	zh:zstack:znp: Failed to determine if path is valid: 'Error: spawn udevadm ENOENT'
[2024-10-02 23:30:55] info: 	zh:zstack:znp: Opening SerialPort with {"path":"/dev/ttyACM0","baudRate":115200,"rtscts":false,"autoOpen":false}
[2024-10-02 23:30:55] info: 	zh:zstack:znp: Serialport opened
[2024-10-02 23:30:55] info: 	zh:zstack:znp: Writing CC2530/CC2531 skip bootloader payload
[2024-10-02 23:30:56] info: 	zh:zstack:znp: Skip bootloader for CC2652/CC1352
[2024-10-02 23:30:56] error: 	z2m: Error while starting zigbee-herdsman
[2024-10-02 23:30:56] error: 	z2m: Failed to start zigbee
[2024-10-02 23:30:56] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-10-02 23:30:56] error: 	z2m: Exiting...
[2024-10-02 23:30:56] error: 	z2m: Error: Error: Not supported, cannot set

/app/node_modules/winston/node_modules/readable-stream/lib/_stream_writable.js:264
  var er = new ERR_STREAM_WRITE_AFTER_END();
           ^
Error: write after end
    at writeAfterEnd (/app/node_modules/winston/node_modules/readable-stream/lib/_stream_writable.js:264:12)
    at DerivedLogger.Writable.write (/app/node_modules/winston/node_modules/readable-stream/lib/_stream_writable.js:300:21)
    at DerivedLogger.log (/app/node_modules/winston/lib/winston/logger.js:231:12)
    at Logger.log (/app/lib/util/logger.ts:198:25)
    at Logger.info (/app/lib/util/logger.ts:211:14)
    at Znp.onPortClose (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:96:16)
    at Object.onceWrapper (node:events:632:26)
    at SerialPort.emit (node:events:529:35)
    at port.close.then.closing (/app/node_modules/@serialport/stream/dist/index.js:242:18)

Gemini says that it seems like udev is not installed, but I can not install that myself I think, as everything is running in containers and when a container restarts it’s gone agian, so there is probably something else that is going on here. I cannot imagine that something that is needed for this to work is not installed by default. I am probably doing something wrong.

Here’s my config:

data_path: /config/zigbee2mqtt
socat:
  enabled: false
  master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777
  slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
  options: "-d -d"
  log: false
mqtt: {}
serial:
  port: /dev/ttyACM0

I am having this same exact issue. I’ve added/changed configuration.yaml file but still isn’t working. This is on a Dell MicroPC with HA OS installed(not windows). Using Sonoff Zigbee 3.0 USB Dongle Plus (ZBDongle-E).

[16:38:20] INFO: Preparing to start...
[16:38:20] INFO: Socat not enabled
[16:38:20] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-10-02 16:38:22] info: 	z2m: Logging to console, file (filename: log.log)
[2024-10-02 16:38:22] info: 	z2m: Starting Zigbee2MQTT version 1.40.2 (commit #unknown)
[2024-10-02 16:38:22] info: 	z2m: Starting zigbee-herdsman (2.1.3)
[2024-10-02 16:38:22] error: 	zh:zstack:znp: Failed to determine if path is valid: 'Error: spawn udevadm ENOENT'
[2024-10-02 16:38:22] info: 	zh:zstack:znp: Opening SerialPort with {"path":"/dev/ttyACM0","baudRate":115200,"rtscts":false,"autoOpen":false}
[2024-10-02 16:38:22] info: 	zh:zstack:znp: Serialport opened
[2024-10-02 16:38:22] info: 	zh:zstack:znp: Writing CC2530/CC2531 skip bootloader payload
[2024-10-02 16:38:23] info: 	zh:zstack:znp: Skip bootloader for CC2652/CC1352
[2024-10-02 16:38:23] error: 	z2m: Error while starting zigbee-herdsman
[2024-10-02 16:38:23] error: 	z2m: Failed to start zigbee
[2024-10-02 16:38:23] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-10-02 16:38:23] error: 	z2m: Exiting...
[2024-10-02 16:38:23] error: 	z2m: Error: Error: Not supported, cannot set

/app/node_modules/winston/node_modules/readable-stream/lib/_stream_writable.js:264
  var er = new ERR_STREAM_WRITE_AFTER_END();
           ^
Error: write after end
    at writeAfterEnd (/app/node_modules/winston/node_modules/readable-stream/lib/_stream_writable.js:264:12)
    at DerivedLogger.Writable.write (/app/node_modules/winston/node_modules/readable-stream/lib/_stream_writable.js:300:21)
    at DerivedLogger.log (/app/node_modules/winston/lib/winston/logger.js:231:12)
    at Logger.log (/app/lib/util/logger.ts:198:25)
    at Logger.info (/app/lib/util/logger.ts:211:14)
    at Znp.onPortClose (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:96:16)
    at Object.onceWrapper (node:events:632:26)
    at SerialPort.emit (node:events:529:35)
    at port.close.then.closing (/app/node_modules/@serialport/stream/dist/index.js:242:18)

Hey Mac-Doggie! I just got it working!
I know we aren’t on the same platform but if you’re using the dongle like the one I have (E version not P) this is my config within the Configuration Tab in zigbee2mqtt. Also, I erased everything I had manually put in the yaml config files and secret.yaml.

Note: I do get a warning about adding ezsp but I’ll look further. At least it’s progress!

data_path: /config/zigbee2mqtt
socat:
  enabled: false
  master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777
  slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
  options: "-d -d"
  log: false
mqtt:
  server: mqtt://core-mosquitto:1883
  user: mqtt_user
  password: [Masked]
serial:
  port: /dev/ttyACM0
  adapter: ezsp

Thanks, I also tried to add adapter: ezsp and also get a warning about it being deprecated, but also:

[00:52:44] INFO: Preparing to start...
[00:52:44] INFO: Socat not enabled
[00:52:46] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-10-03 00:52:52] info: 	z2m: Logging to console, file (filename: log.log)
[2024-10-03 00:52:52] info: 	z2m: Starting Zigbee2MQTT version 1.40.2 (commit #unknown)
[2024-10-03 00:52:52] info: 	z2m: Starting zigbee-herdsman (2.1.3)
[2024-10-03 00:52:52] warning: 	zh:ezsp: 'ezsp' driver is deprecated and will only remain to provide support for older firmware (pre 7.4.x). Migration to 'ember' is recommended. If using Zigbee2MQTT see https://github.com/Koenkk/zigbee2mqtt/discussions/21462
[2024-10-03 00:53:02] error: 	zh:ezsp:uart: --> Error: Error: {"sequence":-1} after 10000ms
[2024-10-03 00:53:02] error: 	zh:ezsp:ezsp: Connection attempt 1 error: Error: Failure to connect
[2024-10-03 00:53:17] error: 	zh:ezsp:uart: --> Error: Error: {"sequence":-1} after 10000ms
[2024-10-03 00:53:17] error: 	zh:ezsp:ezsp: Connection attempt 2 error: Error: Failure to connect
[2024-10-03 00:53:37] error: 	zh:ezsp:uart: --> Error: Error: {"sequence":-1} after 10000ms
[2024-10-03 00:53:37] error: 	zh:ezsp:ezsp: Connection attempt 3 error: Error: Failure to connect
[2024-10-03 00:54:02] error: 	zh:ezsp:uart: --> Error: Error: {"sequence":-1} after 10000ms
[2024-10-03 00:54:02] error: 	zh:ezsp:ezsp: Connection attempt 4 error: Error: Failure to connect
[2024-10-03 00:54:02] error: 	z2m: Error while starting zigbee-herdsman
[2024-10-03 00:54:02] error: 	z2m: Failed to start zigbee
[2024-10-03 00:54:02] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-10-03 00:54:02] error: 	z2m: Exiting...
[2024-10-03 00:54:03] error: 	z2m: Error: Failure to connect
    at Ezsp.connect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:364:19)
    at Driver.startup (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/driver.ts:186:13)
    at EZSPAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/adapter/ezspAdapter.ts:152:16)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:137:29)
    at Zigbee.start (/app/lib/zigbee.ts:69:27)
    at Controller.start (/app/lib/controller.ts:161:27)
    at start (/app/index.js:154:5)

You have to have your mqtt sever added like mine does. Can you post your config again? Or did you add the server elsewhere in a config?

Also, I just updated the dongle following the instructions here.
After the updated I changed the “adapter: ezsp” to “adapter: ember” as instructed.

https://github.com/Koenkk/zigbee2mqtt/discussions/21462

[18:16:40] INFO: Preparing to start...
[18:16:41] INFO: Socat not enabled
[18:16:41] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-10-02 18:16:42] info: 	z2m: Logging to console, file (filename: log.log)
[2024-10-02 18:16:42] info: 	z2m: Starting Zigbee2MQTT version 1.40.2 (commit #unknown)
[2024-10-02 18:16:42] info: 	z2m: Starting zigbee-herdsman (2.1.3)
[2024-10-02 18:16:43] info: 	zh:ember: Using default stack config.
[2024-10-02 18:16:43] info: 	zh:ember: ======== Ember Adapter Starting ========
[2024-10-02 18:16:43] info: 	zh:ember:ezsp: ======== EZSP starting ========
[2024-10-02 18:16:43] info: 	zh:ember:uart:ash: ======== ASH Adapter reset ========
[2024-10-02 18:16:43] info: 	zh:ember:uart:ash: RTS/CTS config is off, enabling software flow control.
[2024-10-02 18:16:43] info: 	zh:ember:uart:ash: Serial port opened
[2024-10-02 18:16:43] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-10-02 18:16:43] error: 	zh:ember:uart:ash: Received frame with CRC error
[2024-10-02 18:16:44] info: 	zh:ember:uart:ash: ======== ASH connected ========
[2024-10-02 18:16:44] info: 	zh:ember:uart:ash: ======== ASH started ========
[2024-10-02 18:16:44] info: 	zh:ember:ezsp: ======== EZSP started ========
[2024-10-02 18:16:44] info: 	zh:ember: Adapter EZSP protocol version (13) lower than Host. Switched.
[2024-10-02 18:16:44] info: 	zh:ember: Adapter version info: {"ezsp":13,"revision":"7.4.4 [GA]","build":0,"major":7,"minor":4,"patch":4,"special":0,"type":170}
[2024-10-02 18:16:44] info: 	zh:ember: [STACK STATUS] Network up.
[2024-10-02 18:16:44] info: 	zh:ember: [INIT TC] Adapter network matches config.
[2024-10-02 18:16:44] info: 	zh:ember: [CONCENTRATOR] Started source route discovery. 1248ms until next broadcast.
[2024-10-02 18:16:44] info: 	z2m: zigbee-herdsman started (resumed)
[2024-10-02 18:16:44] info: 	z2m: Coordinator firmware version: '{"meta":{"build":0,"ezsp":13,"major":7,"minor":4,"patch":4,"revision":"7.4.4 [GA]","special":0,"type":170},"type":"EmberZNet"}'
[2024-10-02 18:16:44] info: 	z2m: Currently 0 devices are joined.
[2024-10-02 18:16:44] info: 	z2m: Zigbee: disabling joining new devices.
[2024-10-02 18:16:44] info: 	z2m: Connecting to MQTT server at mqtt://core-mosquitto:1883
[2024-10-02 18:16:44] info: 	z2m: Connected to MQTT server
[2024-10-02 18:16:44] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload '{"state":"online"}'
[2024-10-02 18:16:45] info: 	z2m: Started frontend on port 8099
[2024-10-02 18:16:45] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload '{"state":"online"}'
[2024-10-02 18:16:45] info: 	z2m: Zigbee2MQTT started!

Are you sure of your serial port?
Settings → system → hardware and click on All Hardware. Then search for Sonoff. Mine is on ttyUSB0. My Coral dongle is on ttyACM0.

ttyUSB0

DEVLINKS: >-
  /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2692170-if00
  /dev/serial/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.2:1.0
  /dev/serial/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usbv2-0:1.2:1.0
DEVNAME: /dev/ttyACM0
DEVPATH: >-
  /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.2/1-1.2:1.0/tty/ttyACM0
ID_BUS: usb
ID_MODEL: ConBee_II
ID_MODEL_ENC: ConBee\x20II
ID_MODEL_ID: '0030'
ID_PATH: platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.2:1.0
ID_PATH_TAG: platform-fd500000_pcie-pci-0000_01_00_0-usb-0_1_2_1_0
ID_PATH_WITH_USB_REVISION: platform-fd500000.pcie-pci-0000:01:00.0-usbv2-0:1.2:1.0
ID_REVISION: '0100'
ID_SERIAL: dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2692170
ID_SERIAL_SHORT: DE2692170
ID_TYPE: generic
ID_USB_DRIVER: cdc_acm
ID_USB_INTERFACES: ':020201:0a0000:'
ID_USB_INTERFACE_NUM: '00'
ID_USB_MODEL: ConBee_II
ID_USB_MODEL_ENC: ConBee\x20II
ID_USB_MODEL_ID: '0030'
ID_USB_REVISION: '0100'
ID_USB_SERIAL: dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2692170
ID_USB_SERIAL_SHORT: DE2692170
ID_USB_TYPE: generic
ID_USB_VENDOR: dresden_elektronik_ingenieurtechnik_GmbH
ID_USB_VENDOR_ENC: dresden\x20elektronik\x20ingenieurtechnik\x20GmbH
ID_USB_VENDOR_ID: 1cf1
ID_VENDOR: dresden_elektronik_ingenieurtechnik_GmbH
ID_VENDOR_ENC: dresden\x20elektronik\x20ingenieurtechnik\x20GmbH
ID_VENDOR_ID: 1cf1
MAJOR: '166'
MINOR: '0'
SUBSYSTEM: tty
TAGS: ':systemd:'
USEC_INITIALIZED: '3599117'

I also tried ember as instructed by the deprecation warning, but that also resulted in errors. The mqtt I didn’t fill in because the tutorial said: If you don’t use the mosquito broker addon, fill in the mqtt. I am using the Mosquito broker addon, so I skipped that. I also don’t have any url, port and password info to fill in there. I expect that to be handled by the addon

I found out where this information was: settings / devices and services / mqtt / config / reconfigure.

I now also added the mqtt to the configuration, including the password I found in the MQTT configuration (which I replaced here in the forum with [MASKED] like in the other example)

I also changed ezsp to ember. Now I get this error message. Seems like it still want to do something with ezsp.

[21:58:58] INFO: Preparing to start...
[21:58:58] INFO: Socat not enabled
[21:59:00] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-10-03 21:59:06] info: 	z2m: Logging to console, file (filename: log.log)
[2024-10-03 21:59:06] info: 	z2m: Starting Zigbee2MQTT version 1.40.2 (commit #unknown)
[2024-10-03 21:59:06] info: 	z2m: Starting zigbee-herdsman (2.1.3)
[2024-10-03 21:59:06] info: 	zh:ember: Using default stack config.
[2024-10-03 21:59:06] info: 	zh:ember: ======== Ember Adapter Starting ========
[2024-10-03 21:59:06] info: 	zh:ember:ezsp: ======== EZSP starting ========
[2024-10-03 21:59:06] info: 	zh:ember:uart:ash: ======== ASH Adapter reset ========
[2024-10-03 21:59:06] info: 	zh:ember:uart:ash: RTS/CTS config is off, enabling software flow control.
[2024-10-03 21:59:06] info: 	zh:ember:uart:ash: Serial port opened
[2024-10-03 21:59:06] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-10-03 21:59:09] info: 	zh:ember:uart:ash: ======== ASH Adapter reset ========
[2024-10-03 21:59:09] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-10-03 21:59:11] info: 	zh:ember:uart:ash: ======== ASH Adapter reset ========
[2024-10-03 21:59:11] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-10-03 21:59:14] info: 	zh:ember:uart:ash: ======== ASH Adapter reset ========
[2024-10-03 21:59:14] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-10-03 21:59:16] info: 	zh:ember:uart:ash: ======== ASH Adapter reset ========
[2024-10-03 21:59:16] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-10-03 21:59:19] error: 	z2m: Error while starting zigbee-herdsman
[2024-10-03 21:59:19] error: 	z2m: Failed to start zigbee
[2024-10-03 21:59:19] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-10-03 21:59:19] error: 	z2m: Exiting...
[2024-10-03 21:59:19] error: 	z2m: Error: Failed to start EZSP layer with status=HOST_FATAL_ERROR.
    at EmberAdapter.initEzsp (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:684:19)
    at EmberAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:1583:24)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:137:29)
    at Zigbee.start (/app/lib/zigbee.ts:69:27)
    at Controller.start (/app/lib/controller.ts:161:27)
    at start (/app/index.js:154:5)

this is my current config:

data_path: /config/zigbee2mqtt
socat:
  enabled: false
  master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777
  slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
  options: "-d -d"
  log: false
mqtt:
  server: mqtt://core-mosquito:1883
  user: homeassistant
  password: [MASKED]
serial:
  port: /dev/ttyACM0
  adapter: ember

– edited –
I found another youtube tutorial of someone that said that if you have a conbee stick, you need to fill in adapter: deconz

I also tried that, but this gives me:

[22:11:10] INFO: Preparing to start...
[22:11:11] INFO: Socat not enabled
[22:11:12] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-10-03 22:11:18] info: 	z2m: Logging to console, file (filename: log.log)
[2024-10-03 22:11:18] info: 	z2m: Starting Zigbee2MQTT version 1.40.2 (commit #unknown)
[2024-10-03 22:11:18] info: 	z2m: Starting zigbee-herdsman (2.1.3)
[2024-10-03 22:11:28] error: 	z2m: Error while starting zigbee-herdsman
[2024-10-03 22:11:28] error: 	z2m: Failed to start zigbee
[2024-10-03 22:11:28] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-10-03 22:11:28] error: 	z2m: Exiting...
[2024-10-03 22:11:29] error: 	z2m: Error: TIMEOUT
    at Driver.processBusyQueue (/app/node_modules/zigbee-herdsman/src/adapter/deconz/driver/driver.ts:515:28)
    at Timeout._onTimeout (/app/node_modules/zigbee-herdsman/src/adapter/deconz/driver/driver.ts:168:40)
    at listOnTimeout (node:internal/timers:569:17)
    at processTimers (node:internal/timers:512:7)

–edited–

I now got as far as that I needed to install another addon called deCONZ. Now my log output is as follows:

[22:54:03] INFO: Preparing to start...
[22:54:03] INFO: Socat not enabled
[22:54:05] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-10-03 22:54:11] info: 	z2m: Logging to console, file (filename: log.log)
[2024-10-03 22:54:11] info: 	z2m: Starting Zigbee2MQTT version 1.40.2 (commit #unknown)
[2024-10-03 22:54:11] info: 	z2m: Starting zigbee-herdsman (2.1.3)
[2024-10-03 22:54:11] error: 	z2m: Error while starting zigbee-herdsman
[2024-10-03 22:54:11] error: 	z2m: Failed to start zigbee
[2024-10-03 22:54:11] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-10-03 22:54:11] error: 	z2m: Exiting...
[2024-10-03 22:54:11] error: 	z2m: Error: Error while opening serialport 'Error: Error: Resource busy, cannot open /dev/ttyACM0'
    at SerialPort.<anonymous> (/app/node_modules/zigbee-herdsman/src/adapter/deconz/driver/driver.ts:225:28)
    at SerialPort._error (/app/node_modules/@serialport/stream/dist/index.js:82:22)
    at /app/node_modules/@serialport/stream/dist/index.js:118:18

It looks like it can not open /dev/ttyACM0

Resource busy… that is like it is already doing something…
I trired rebooting the raspberry Pi 4, and I also tried to change the serial port name to:
/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2692170-if00
which is the name I found in the config of deCONZ. But the result remained the same.

– edit –
Hmm, maybe the deCONZ wasn’t needed at all. Seems like that is a whole different way to add the zigbee devices. I NOw found out I can already add my devices to the conbee II, but still the Zigbee2MQTT is not working.

It is better to use by_id:

data_path: /share/zigbee2mqtt
socat:
  enabled: false
  master: pty,raw,echo=0,link=/dev/ttyZ2M,mode=777
  slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
  options: "-d -d"
  log: true
mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://192.168.1.7
  user:  <redacted>
  password: <redacted>
serial:
  port: >-
    /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2481787-if00
  adapter: deconz

Hi, did you found any solution to get zigbee2mqtt running?
I think setting the adapter to ‘deconz’ is mandatory (I’m using the Conbee II as well). I’m currently experiencing the same error like you:

Error log:

[10:34:05] INFO: Preparing to start...
[10:34:05] INFO: Socat not enabled
[10:34:05] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-10-15 10:34:07] info: 	z2m: Logging to console, file (filename: log.log)
[2024-10-15 10:34:07] info: 	z2m: Starting Zigbee2MQTT version 1.40.2 (commit #unknown)
[2024-10-15 10:34:07] info: 	z2m: Starting zigbee-herdsman (2.1.3)
[2024-10-15 10:34:18] error: 	z2m: Error while starting zigbee-herdsman
[2024-10-15 10:34:18] error: 	z2m: Failed to start zigbee
[2024-10-15 10:34:18] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-10-15 10:34:18] error: 	z2m: Exiting...
[2024-10-15 10:34:18] error: 	z2m: Error: TIMEOUT
    at Driver.processBusyQueue (/app/node_modules/zigbee-herdsman/src/adapter/deconz/driver/driver.ts:515:28)
    at Timeout._onTimeout (/app/node_modules/zigbee-herdsman/src/adapter/deconz/driver/driver.ts:168:40)
    at listOnTimeout (node:internal/timers:569:17)
    at processTimers (node:internal/timers:512:7)

My configuration:

homeassistant: true
advanced:
  network_key:
    - 135
    - 172
    - 96
    - 244
    - 237
    - 179
    - 242
    - 131
    - 105
    - 37
    - 255
    - 85
    - 110
    - 245
    - 20
    - 151
  pan_id: 50411
  ext_pan_id:
    - 166
    - 16
    - 37
    - 155
    - 38
    - 101
    - 88
    - 196
mqtt:
  server: mqtt://core-mosquitto:1883
  user: addons
  password: masked
serial:
  port: /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2149990-if00
  adapter: deconz
frontend:
  port: 8099

I’m running Home Assistant in a VM.
I had set up the zigbee2mqtt container directly on my host machine, there it worked.

A couple of months ago, I played around and added the DeConz Addon in HA. Is there a way to verify, that there is nothing left from it? Not that some old components still have an influence.

About my config:
Core - 2024.10.2
Supervisor - 2024.10.2
Operating System - 13.1
Frontend - 20241002.3

I am still struggling with this. I tried a lot of stuff with the help of AI, but still didn’t get it to work.

Isn’t there anyone that solved this same issue already. I just bought an ordinary pi 4, and a commonly used cobee II stick, I’m sure this is exactly the same configuration most people use when experimenting with home assistant on a raspberry pi.

I can’t imagine noone solved this same issue already.

Just got this error out of nowhere :frowning:
Can’t start the addon
@Koenkk if you have any idea?

Which specific error?

Also, do not tag people who aren’t part of the thread, see:

I had the same error:

Error: TIMEOUT
    at Driver.processBusyQueue ...

on a fresh installation of Home Assistant with a ConBee III.

But I had started setting up the ConBee for ZHA before setting up zigbee2mqtt, so it was already (half?) set up for ZHA (when I noticed, it was listed as a device for ZHA but with a warning that some configuration was still missing). Anyway, I removed the ConBee from ZHA and now it is working with zigbee2mqtt.

This is the serial config I am using for zigbee2mqtt:

port: /dev/serial/by-id/usb-dresden_elektronik_ConBee_III_DE03220655-if00-port0
adapter: deconz
baudrate: 115200
1 Like

I tried to start with:

cd /opt/zigbee2mqtt && npm start

First I thought my problem was:
error: z2m: Error: Error while opening serialport 'Error: Error Resource temporarily unavailable Cannot lock port'

Then I realized that logs were created every 10-15 seconds under /opt/zigbee2mqtt/data/log/.

Each of them contained a timeout error.
Log files stopped being created when I ran:

sudo systemctl stop zigbee2mqtt

That also changed the output of my npm start command to produce timeout errors:

error:    z2m: Error: TIMEOUT
    at Driver.processBusyQueue (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/deconz/driver/driver.ts:515:28)
    at Timeout._onTimeout (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/deconz/driver/driver.ts:168:40)
    at listOnTimeout (node:internal/timers:594:17)
    at processTimers (node:internal/timers:529:7)

Am trying to get zigbee2mqtt working with deconz ConBee II in proxmox LXC.

Adapter is seen inside the container:

root@zigbee2mqtt:/opt/zigbee2mqtt# ls -l /dev/serial/by-id
total 0
lrwxrwxrwx 1 root root 13 Nov 10 00:00 usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DEXXXXXXX-if00 -> ../../ttyACM0