Zigbee2MQTT wont start

I tried several options already, but still can’t start it.
I have CC2531 stick that I flashed using this link
At the moment I have this confing

{
  "external_converters": [],
  "devices": [
    "devices.yaml"
  ],
  "groups": [
    "groups.yaml"
  ],
  "homeassistant": true,
  "permit_join": false,
  "mqtt": {
    "base_topic": "zigbee2mqtt",
    "user": "addons",
    "password": "",
    "server": "mqtt://core-mosquitto:1883"
  },
  "serial": {
    "port": "/dev/serial/by-id/usb-Texas_Instruments_TI_CC2531_USB_CDC___0X00124B001CDCED16-if00",
    "adapter":"ezsp",
    "baudrate":115200,
    "rtscts": true
  },
  "advanced": {
    "log_level": "warn",
    "pan_id": 6754,
    "channel": 11,
    "network_key": [
      1,
      3,
      5,
      7,
      9,
      11,
      13,
      15,
      0,
      2,
      4,
      6,
      8,
      10,
      12,
      13
    ],
    "availability_blocklist": [],
    "availability_passlist": []
  },
  "device_options": {},
  "blocklist": [],
  "passlist": [],
  "queue": {},
  "frontend": {
    "port": 8099
  },
  "experimental": {},
  "availability": false
}

and get this error

[2024-10-20 19:52:39] error: 	zh:ezsp:uart: --> Error: Error: {"sequence":-1} after 10000ms
[2024-10-20 19:52:39] error: 	zh:ezsp:ezsp: Connection attempt 1 error: Error: Failure to connect
[2024-10-20 19:52:54] error: 	zh:ezsp:uart: --> Error: Error: {"sequence":-1} after 10000ms
[2024-10-20 19:52:54] error: 	zh:ezsp:ezsp: Connection attempt 2 error: Error: Failure to connect
[2024-10-20 19:53:14] error: 	zh:ezsp:uart: --> Error: Error: {"sequence":-1} after 10000ms
[2024-10-20 19:53:14] error: 	zh:ezsp:ezsp: Connection attempt 3 error: Error: Failure to connect
[2024-10-20 19:53:39] error: 	zh:ezsp:uart: --> Error: Error: {"sequence":-1} after 10000ms
[2024-10-20 19:53:39] error: 	zh:ezsp:ezsp: Connection attempt 4 error: Error: Failure to connect
[2024-10-20 19:53:39] error: 	z2m: Error while starting zigbee-herdsman
[2024-10-20 19:53:39] error: 	z2m: Failed to start zigbee
[2024-10-20 19:53:39] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-10-20 19:53:39] error: 	z2m: Exiting...
[2024-10-20 19:53:40] 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)

tried w/o baudrate and rtscts.

I also tried to change adapter to another one (just did it randomly), for example with ember adapter I get this one

[2024-10-20 20:03:04] error: 	z2m: Error while starting zigbee-herdsman
[2024-10-20 20:03:04] error: 	z2m: Failed to start zigbee
[2024-10-20 20:03:04] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-10-20 20:03:04] error: 	z2m: Exiting...
[2024-10-20 20:03:04] 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)

Any suggestions?
Thanks

EDIT:
As I understood I need to use “zstack” adapter. But then I have this error

[2024-10-20 20:09:25] error: 	zh:zstack:znp: Failed to determine if path is valid: 'Error: spawn udevadm ENOENT'
[2024-10-20 20:09:26] error: 	z2m: MQTT error: getaddrinfo ENOTFOUND core-mosquitto
[2024-10-20 20:09:26] error: 	z2m: MQTT failed to connect, exiting... (getaddrinfo ENOTFOUND core-mosquitto)
[2024-10-20 20:09:27] error: 	z2m: MQTT error: getaddrinfo ENOTFOUND core-mosquit```

This indicates it cannot find your MQTT broker. You have that installed?

zstack should be the correct option in your case.

Yep. And it’s even started.

Can you connect to it from MQTT explorer?

It looks like, that I cant connect to it (but mby I am wrong?) =/ But if I check mosquitto broker log I see that explorer is connected

2024-10-21 13:00:40: New client connected from 192.168.1.6:51799 as mqtt-explorer-f521da6f 

Explorer is empty and after sometime it just disconnectes

I assume if you sort the MQTT issue Z2M will work :slight_smile:

Thanks fleskefjes. Now I will start a research why my mqtt is not working properly. I hope that I won’t come back to this topic anymore. Thanks for you help :slight_smile:

1 Like