Trouble with Zigbee2mqtt addon

Hello,
I am a beginner and have been trying to get Zigbee2mqtt running for more than 4 hours. Here is the error message.

[17:44:35] INFO: Preparing to start...
[17:44:35] INFO: Socat not enabled
[17:44:35] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2025-02-06 17:44:36] info: 	z2m: Logging to console, file (filename: log.log)
[2025-02-06 17:44:36] info: 	z2m: Starting Zigbee2MQTT version 2.1.0 (commit #unknown)
[2025-02-06 17:44:36] info: 	z2m: Starting zigbee-herdsman (3.2.5)
[2025-02-06 17:44:36] error: 	z2m: Error while starting zigbee-herdsman
[2025-02-06 17:44:36] error: 	z2m: Failed to start zigbee-herdsman
[2025-02-06 17:44:36] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start_crashes-runtime.html for possible solutions
[2025-02-06 17:44:36] error: 	z2m: Exiting...
[2025-02-06 17:44:37] error: 	z2m: Error: Cannot discover TCP adapters at this time. Specify valid 'adapter' and 'port' in your configuration.
    at findTCPAdapter (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/adapterDiscovery.ts:470:15)
    at discoverAdapter (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/adapterDiscovery.ts:496:26)
    at Function.create (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/adapter.ts:68:54)
    at Controller.start (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/controller/controller.ts:132:38)
    at Zigbee.start (/app/lib/zigbee.ts:69:47)
    at Controller.start (/app/lib/controller.ts:142:13)
    at start (/app/index.js:161:5)
    at start (/app/index.js:161:5)

My config/zigbee2mqtt/configuration.yaml"

version: 4
homeassistant:
  enabled: true
advanced:
  network_key:
    - <redacted>
  pan_id: 33001
  ext_pan_id:
    - <redacted>
permit_join: true
mqtt:
  server: mqtt://localhost:1883
  user: zigbee
  password: hewHUZHGZFRDDXE463!!hefw
serial:
  port: tcp://192.168.0.74:6638
  baudrate: 115200
frontend:
  enabled: true
  port: 8099

I use a Cod.m Zigbee Cordinator.

Can someone please give me a hint on where I can look for the error?

You need to specify the adapter.

serial:
  port: tcp://192.168.0.74:6638
  baudrate: 115200
  adapter: zstack

Then I reinstall the entire mini PC and do a firmware update, and then it’s just a line in the code. Thank you very much, it’s working now. :slight_smile:

1 Like

I edited your post to remove the network key. Not a huge security risk (people have to be physically there to use it) but best not to share it in future.

1 Like