Zigbee2MQTT failed to start

Hi there,

A few days ago, I bought an SLZB-06Mg24 Zigbee Coordinator that I plugged to my ethernet network.
I than installed Mosquitto and Zigbee2MQTT as recommended. But unfortunately, Zigbee2MQTT failed at start. Since than I’m struggling to make Zigbee2MQTT working and need help as I’m a newbee.

My configurations:

  1. Raspberry PI5 32 GB, DHCP, mapped MAC to IP address 192.168.1.12
  2. Openhanbian:
    • set openhabian to main branch
    • applied improvements 11, 12, 13, 14 from openhabian configuration menu prior installing Mosquitto and Zigbee2MQTT
  3. SLZB-06Mg24 Zigbee Coordinator:
    • mode: coordinator
    • connection: ethernet, DHCP, mapped MAC to IP address 192.168.1.13
  4. Zigbee2MQTTconfiguration file:
frontend:
  enable: true
  port: 8081
homeassistant: false
permit_join: true
mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://localhost
  user: openhabian
  password: ***
serial:
  port: tcp://192.168.1.13:6638
  adapter: ember
  baudrate: 115200
advanced:
  transmit_power: 20
  network_key:
    - 175
    - 95
    - 10
    - 206
    - 4
    - 252
    - 185
    - 188
    - 254
    - 105
    - 92
    - 57
    - 0
    - 52
    - 145
    - 245
  pan_id: 50807
  log_level: warn
  channel: 25
  output: attribute_and_json
  log_directory: /var/log/zigbee2mqtt/%TIMESTAMP%al
  homeassistant_legacy_entity_attributes: false
  legacy_api: false
  legacy_availability_payload: false
device_options:
  legacy: false

Mosquitto is reachable through MQTT Explorer:

AND this is the errors in log:

Jul 05 10:29:14 openhabian systemd[1]: Started zigbee2mqtt.service - Zigbee2MQTT.
Jul 05 10:29:16 openhabian npm[754]: > zigbee2mqtt@1.42.0 start
Jul 05 10:29:16 openhabian npm[754]: > node index.js
Jul 05 10:29:16 openhabian npm[790]: Starting Zigbee2MQTT without watchdog.
Jul 05 10:29:33 openhabian npm[790]: [2025-07-05 10:29:33] error:         z2m: Error while starting zigbee-herdsman
Jul 05 10:29:33 openhabian npm[790]: [2025-07-05 10:29:33] error:         z2m: Failed to start zigbee
Jul 05 10:29:33 openhabian npm[790]: [2025-07-05 10:29:33] error:         z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Jul 05 10:29:33 openhabian npm[790]: [2025-07-05 10:29:33] error:         z2m: Exiting...
Jul 05 10:29:33 openhabian npm[790]: [2025-07-05 10:29:33] error:         z2m: Error: Failed to start EZSP layer with status=HOST_FATAL_ERROR.
Jul 05 10:29:33 openhabian npm[790]:     at EmberAdapter.initEzsp (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:684:19)
Jul 05 10:29:33 openhabian npm[790]:     at EmberAdapter.start (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:1598:24)
Jul 05 10:29:33 openhabian npm[790]:     at Controller.start (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/controller/controller.ts:137:29)
Jul 05 10:29:33 openhabian npm[790]:     at Zigbee.start (/opt/zigbee2mqtt/lib/zigbee.ts:69:27)
Jul 05 10:29:33 openhabian npm[790]:     at Controller.start (/opt/zigbee2mqtt/lib/controller.ts:161:27)
Jul 05 10:29:33 openhabian npm[790]:     at start (/opt/zigbee2mqtt/index.js:154:5)
Jul 05 10:29:33 openhabian systemd[1]: zigbee2mqtt.service: Main process exited, code=exited, status=1/FAILURE
Jul 05 10:29:33 openhabian systemd[1]: zigbee2mqtt.service: Failed with result 'exit-code'.
Jul 05 10:29:33 openhabian systemd[1]: zigbee2mqtt.service: Consumed 4.184s CPU time.
Jul 05 10:29:33 openhabian systemd[1]: zigbee2mqtt.service: Scheduled restart job, restart counter is at 1.
Jul 05 10:29:33 openhabian systemd[1]: Stopped zigbee2mqtt.service - Zigbee2MQTT.
Jul 05 10:29:33 openhabian systemd[1]: zigbee2mqtt.service: Consumed 4.184s CPU time.

Thanks in advance for your kind advices and help.

usually this means z2m has no connection to the zigbee adapter. Mine is not connected by Ethernet, so I’m not sure about the problem. You’re sure about the port? Doesn’t it have a web interface to check the settings?

I have access to the zigbee adapter through its web interface.
Here some prints screen:


Zigbee2MQTT settings:



Network Settings::

i think configuration. yaml should be

serial:
  port: tcp://192.168.1.13:6638  
  adapter: ezsp                   
  baudrate: 115200             

I set “ezsp” as value for adapter, but I got an error (see logs below). I think “ember” was the correct: it is the value proposed by the zigbee adapter (see above).

Jul 06 10:38:54 openhabian systemd[1]: Started zigbee2mqtt.service - Zigbee2MQTT.
Jul 06 10:38:56 openhabian npm[755]: > zigbee2mqtt@1.42.0 start
Jul 06 10:38:56 openhabian npm[755]: > node index.js
Jul 06 10:38:56 openhabian npm[791]: Starting Zigbee2MQTT without watchdog.
Jul 06 10:39:01 openhabian npm[791]: [2025-07-06 10:39:01] warning:         zh:ezsp: 'ezsp' driver is deprecated and will only remain to provide support for older firmware (pre 7.4.x). Migration to '>
Jul 06 10:39:11 openhabian npm[791]: [2025-07-06 10:39:11] error:         zh:ezsp:uart: --> Error: Error: {"sequence":-1} after 10000ms
Jul 06 10:39:11 openhabian npm[791]: Error: Failure to connect
Jul 06 10:39:11 openhabian npm[791]:     at SerialDriver.resetForReconnect (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:341:19)
Jul 06 10:39:11 openhabian npm[791]:     at SerialDriver.emit (node:events:517:28)
Jul 06 10:39:11 openhabian npm[791]:     at /opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:341:22
Jul 06 10:39:11 openhabian npm[791]:     at Queue.execute (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/utils/queue.ts:36:20)
Jul 06 10:39:11 openhabian npm[791]:     at SerialDriver.reset (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:326:16)
Jul 06 10:39:11 openhabian npm[791]:     at Socket.<anonymous> (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:149:17)
Jul 06 10:39:11 openhabian systemd[1]: zigbee2mqtt.service: Main process exited, code=exited, status=1/FAILURE
Jul 06 10:39:11 openhabian systemd[1]: zigbee2mqtt.service: Failed with result 'exit-code'.
Jul 06 10:39:11 openhabian systemd[1]: zigbee2mqtt.service: Consumed 4.258s CPU time.
Jul 06 10:39:11 openhabian systemd[1]: zigbee2mqtt.service: Scheduled restart job, restart counter is at 1.
Jul 06 10:39:11 openhabian systemd[1]: Stopped zigbee2mqtt.service - Zigbee2MQTT.

I also tried to set

homeassistant: true

But I got the same orginal error.

I don’t have a username and password set as to not make the install even harder…

Anyway here is my config for comparison:

homeassistant:
  enabled: false
  discovery_topic: homeassistant
device_options:
  retain: true
mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://192.168.1.164
  keepalive: 60
  reject_unauthorized: true
  version: 4
  include_device_information: false
serial:
  disable_led: true
  port: tcp://192.168.1.9:6638
  adapter: zstack
  baudrate: 115200
advanced:
  last_seen: disable
  log_output:
    - syslog
  log_level: error
  log_syslog:
    app_name: Zigbee2MQTT
    eol: /n
    host: 192.168.1.164
    localhost: zigbee2mqtt
    path: /dev/log
    pid: process.pid
    port: 514
    protocol: udp4
    type: '5424'
  channel: 25
  transmit_power: 20

Koenkk/zigbee2mqtt · Discussions · GitHub ← this is the correct Forum

why bother the OpenHAB Community with this?

1 Like

Hi,
In the meantime I’ve contacted the support of the Zigbee adapter who was really responsive.

Disabling the “Enable Zigbee Socket packet processing” solved my issue.

Thanks to all of you that proposed their help.

1 Like

…and thanks for posting the solution so that others might benefit from that.