Zigbee2mqtt addon fails to see the coordinator but can connect using docker installation method

Trying to install z2m addon.

Configuration fails with below error

Zigbee2MQTT:error 2023-07-28 19:39:40: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
    at ZStackAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:103:27)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:132:29)
    at Zigbee.start (/app/lib/zigbee.ts:58:27)
    at Controller.start (/app/lib/controller.ts:101:27)
    at start (/app/index.js:107:5)

The output of
ls -l /dev/serial/by-id/* is

lrwxrwxrwx 1 root root 13 Jul 28 18:59 /dev/serial/by-id/usb-I TEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20220815205657-if00 -> ../../ttyACM0

My z2m configuration reads

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-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20220815205657-if00

yet the startup fails with the error above.

I tried installing using port: /dev/ttyACM0 too, but that also fails with the same error.

On the other hand, if I install in docker using

version: '3'
services:
  zigbee2mqtt:
    image: koenkk/zigbee2mqtt
    container_name: zigbee2mqtt
    restart: always
    network_mode: host
    environment:
      - TZ=Asia/Kolkata
    devices:
      - /dev/ttyACM0:/dev/ttyACM0
    ports:
      - 8080:8080/tcp
    volumes:
      - /storage/.kodi/userdata/docker/Z2M:/app/data
      - /run/udev:/run/udev:ro

then it works just fine.

Can anyone figure whats wrong with the addon config?

serial:
  port: >-
    /dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20220815205657-if00
  adapter: ezsp
1 Like

That worked. Thank you so much.