Zigbee2Mqtt - Failed to start Zigbee with Conbee II

I have just purchased a Conbee II stick and followed this video to get it set up in HA with Zigbee2Mqtt however Z2m will not start Zigbee. I get the following in the logs:

    [07:40:05] INFO: Handing over control to Zigbee2MQTT Core ...
    Zigbee2MQTT:info  2022-09-14 07:40:06: Logging to console and directory: '/config/zigbee2mqtt/log/2022-09-14.07-40-06' filename: log.txt
    Zigbee2MQTT:info  2022-09-14 07:40:06: Starting Zigbee2MQTT version 1.27.2 (commit #unknown)
    Zigbee2MQTT:info  2022-09-14 07:40:06: Starting zigbee-herdsman (0.14.53)
    Zigbee2MQTT:error 2022-09-14 07:40:06: Error while starting zigbee-herdsman
    Zigbee2MQTT:error 2022-09-14 07:40:06: Failed to start zigbee
    Zigbee2MQTT:error 2022-09-14 07:40:06: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
    Zigbee2MQTT:error 2022-09-14 07:40:06: Exiting...
    Zigbee2MQTT:error 2022-09-14 07:40:06: Error: spawn udevadm ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
    at onErrorNT (node:internal/child_process:478:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
    [07:40:07] INFO: Handing over control to Zigbee2MQTT Core ...

Here is my config.yaml:

    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:
      port: mqtt://core-mosquitto
      username: mqtt-user
      password: Password123
    serial:
      port: >-
        /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2287395-if00
     adapter: deconz

I have tried:

  • A completely fresh install of HA
  • Adding the mqtt-user to Moquitto
  • giving all users full access to the conbee stick with ‘sudo chmod a+rwx /dev/ttyACM0’
  • flashing the latest firmware to the Conbee II stick

It’s hard for me to tell if this is a problem with the Conbee stick or a configuration problem with my HA/Z2M/Mosquitto Installation but I have heard good things about the Sonof 3.0 stick.

Does anybody see anything obvious that I am missing?

Try

mqtt:
  base_topic: zigbee2mqtt
  user: yyyyyyy
  password: XXXXXXX
  server: mqtt://core-mosquitto:1883

I had tried that before but gave it another go, no luck.

I have just tried uninstalling Z2M and using ZHA instead which worked first time and paired a light with no issues. To me it sounds like a problem with my Z2M installation. I have tried uninstalling, using the beta, and going back to the core installation all with no luck too.

Just a small comment. The spaces in you original configuration was wrong. You were missing 1 space before the adapter. Pretty sure this is just a copy/paste error, however if not then try with adapter aligned with port in spaces.

Besides this, I do not have any good ideas.

your “port” should be “server” for mqtt://core-mosquitto. also “username” should be user

mqtt:
  server: mqtt://core-mosquitto
  user: mqtt-user
  password: yourPassword
serial:
  port: /dev/ttyACM0
  adapter: deconz

1 Like

Are you not using the HA autoconfiguration of the mqtt server? The used domain indicates you’re using the official mosquitto addon which could autoconfigure Z2M’s credentials.

My (complete, and for the first few lines default) config for the Z2M config looks like this:

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/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2463099-if00
  adapter: deconz

And works fine. However, this configuration is just used initially for provisioning the acual config stored in data_path. The MQTT server, including credentials will be injected if omitted on first start, afterwards the configuration for the addon is not used anymore (atleast in my experience).

The relevent parts of the actual config (/config/zigbee2mqtt/configuration.yaml) looks like this:

mqtt:
  server: mqtt://core-mosquitto:1883
  user: addons
  password: <redacted>
serial:
  port: >-
    /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2463099-if00
  adapter: deconz

And a small side note: Please change your network_key if you’re still using it, it is now publicly known rendering network_key: GENERATE or even worse reusing pre-generated network_key useless from a security perspectiv. The necessary repairing helps remembering this :grin: but don’t mind I learnd similarly.

If not using the autoconfiguration was a mistake, remove the zigbee2mqtt folder, or probably atleast configuration.yaml (haven’t tested this approach), and start Z2M again worked for me.

i dont know what to do. Guys, i have read your answers but i still cannot get it to run.
I am on Rasb4 with latest HA (System 10.3). I have a Conbee 2 aswell.

I have tried with following 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/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2194761-if00
adapter: deconz
homeassistant: true
zigbee_herdsman_debug: false

also tried with:
port: /dev/ttyACM0

// Data from my HA under All Hardware
ttyACM0
/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2194761-if00
Subsystem:
tty
Device path:
/dev/ttyACM0
ID:
/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2194761-if00
Attributes:
DEVLINKS: >-
/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2194761-if00
/dev/serial/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.1:1.0
DEVNAME: /dev/ttyACM0
DEVPATH: >-
/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0

have also tried to add
server: mqtt://core-mosquitto:1883
under mqtt:

what am i doing wrong?
I do not have the deconz addon installed and mosquitto broker is running

This worked for me, thanks

I can be added to the list of z2m failed startups. Any help would be appreciated :blush:. My mqtt broker seems to be setup correctly. My zigbee adapter also works, but connecting the two seems impossible. Tied a lot of different config for the serial bit.

My serial config is

port: >-
/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2676313-if00
adapter: deconz

My logs tell me the following :

[20:25:56] INFO: Preparing to start…
[20:25:56] INFO: Socat not enabled
[20:25:58] INFO: Starting Zigbee2MQTT…
[2024-06-01 20:26:03] info: z2m: Logging to console, file (filename: log.log)
[2024-06-01 20:26:03] info: z2m: Starting Zigbee2MQTT version 1.38.0 (commit #unknown)
[2024-06-01 20:26:03] info: z2m: Starting zigbee-herdsman (0.49.2)
[2024-06-01 20:26:14] error: z2m: Error while starting zigbee-herdsman
[2024-06-01 20:26:14] error: z2m: Failed to start zigbee
[2024-06-01 20:26:14] error: z2m: Check Zigbee2MQTT fails to start | Zigbee2MQTT for possible solutions
[2024-06-01 20:26:14] error: z2m: Exiting…
[2024-06-01 20:26:14] error: z2m: undefined

1 Like

Same issue here with my new Conbee III stick. On my other rpi 4 its working with a conbee 2 stick.