HA Green + Sonoff Zigbee 3.0v2 dongle, how to set permission when udevadm: command not found?

The dongle and configuration is migrated from PC where it worked just fine.

Log output: zh:ezsp:ezsp: Connection attempt 1 error: Error: Failure to connect
[10:14:29] INFO: Preparing to start...
[10:14:31] INFO: Socat not enabled
[10:14:36] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-08-11 10:14:46] info: 	z2m: Logging to console, file (filename: log.log)
[2024-08-11 10:14:46] info: 	z2m: Starting Zigbee2MQTT version 1.39.1 (commit #unknown)
[2024-08-11 10:14:46] info: 	z2m: Starting zigbee-herdsman (0.55.3)
[2024-08-11 10:14:47] warning: 	zh:ezsp: Deprecated driver 'ezsp' currently in use, 'ember' will become the officially supported EmberZNet driver in next release. If using Zigbee2MQTT see https://github.com/Koenkk/zigbee2mqtt/discussions/21462
[2024-08-11 10:14:57] error: 	zh:ezsp:uart: --> Error: Error: {"sequence":-1} after 10000ms
[2024-08-11 10:14:57] error: 	zh:ezsp:ezsp: Connection attempt 1 error: Error: Failure to connect
    at SerialDriver.resetForReconnect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:341:19)
    at SerialDriver.emit (node:events:517:28)
    at /app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:344:22
    at Queue.execute (/app/node_modules/zigbee-herdsman/src/utils/queue.ts:35:20)
    at SerialDriver.openSerialPort (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:106:13)
    at SerialDriver.connect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:61:13)
    at Ezsp.connect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:347:17)
    at Driver.startup (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/driver.ts:176:13)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:127:29)
    at Zigbee.start (/app/lib/zigbee.ts:63:27)

Zigbee troubleshooting instructs to use udevadm to check and set write permissions by editing /etc/udev.conf which is not present in HA Green.

Getting error “udevadm: command not found”

[core-ssh ~]$ ls -1 / dev/serial/by-id
total 0
Urwxrwxrwx 1 root root 13 Jan 25 2024 usb-ITEAD_SONOFF •_Zigbee_3.0_USB_Dongle_Plus_V2_20220818080600-if00 > ../../ttyACMO

[core-ssh ~]$ test -w ../../ttyACM0 && echo success || echo fail
fail

[]$ udevadm info -a -n /dev/ttyACMO | grep 'serial'
bash: udevadm: command not found

This exact configuration and dongle worked fine on a PC.

Alternatively user can be adde to groups tty, uucp, dialout. But it seems like it’s running under root anyway? There’s no homeassistant user. And no commands like usermod.

What can I do to make it work?

Thanks!

Why don’t you use

port: /dev/serial/by-id/usb-ITEAD_SONOFF •_Zigbee_3.0_USB_Dongle_Plus_V2_20220818080600-if00

in your Zigbee2MQTT configuration, instead of /ttyACM0 ?

(ID is not correct, but I pasted it from your post)

You can see at tehend of line it shows it’s symlinked to > /dev/ttyACM0 and exactly same was working on a PC, addressign through /dev/TTYACM

And that port id is full of special symbols, I’m not sure it’s possible to input.
But I will try, thanks for suggestion.

First do

ls /dev/serial/by-id

and then copy it to Zigbee2MQTT’s configuration

Finally managed to get the id exactly right and getting same error as through symlink ttyACM0:

[2024-08-11 17:52:08] error: zh:ezsp:uart: → Error: Error: {“sequence”:-1} after 10000ms
[2024-08-11 17:52:08] error: zh:ezsp:ezsp: Connection attempt 1 error: Error: Failure to connect
at SerialDriver.resetForReconnect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:341:19)
at SerialDriver.emit (node:events:517:28)

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

Ok, it is a dongle E

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_20220818080600-if00
  adapter: ezsp