Zigbee2mqtt usb port by-id

I am trying to run zigbee2mqtt on my Truenas Scale ElectricEel-24.10.2 instance. While creating the app you have to fill in the Port which is described as follows:

The serial port to use.

Examples:

  • /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0

How do I retrieve this port by-id for my Sonoff Zigbee dongle?
Using the shell I do see /dev/ttyACM0 which is the Zigbee dongle.

While investigating this issue I did read a lot about installing a vm where zigbee2mqtt can be run in a docker environment and the usb (or pci-express port) is passed-through to the vm but I’d rather not use this solution.

Thanks!

If I create a new app using zigbee2mqtt it is working! :slight_smile:
My configuration.yaml contains:

  • port: /dev/ttyACM0

Instead of

  • port: /dev/serial/by-id

I managed to get this working by opening a shell window and running

ls -l /dev/serial/by-id

Result>

total 0
lrwxrwxrwx 1 root root 13 Mar 11 03:40 usb-Silicon_Labs_Sonoff_Zigbee_3.0_USB_Dongle_Plus_0001-if00-port0 -> ../../ttyUSB0

I then used this to enter the following when installing the app

/dev/serial/by-id/usb-Silicon_Labs_Sonoff_Zigbee_3.0_USB_Dongle_Plus_0001-if00-port0

Hope this helps someone.

@senders @Tele
Thanks to your guide I was able to populate the port for the dongle. However I still cannot get zigbee2mqtt to start. What are the other configuration parameters you set? Are you using mosquitto?
I have
topic: zigbee2mqtt
server: mqtt://localhost:1883 (I have the mosquitto app installed)
user/pass: I have mosquitto/mosquitto for these but am unclear if this is correct
serial port: /dev/serial/by-id/usb-Itead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_V2_c2cb3cfxxxxxxxx-if00-port0 (xxx in place of serial)
adapter: ember (i have the sonoff dongle E updated to 7.4.4 which I understand should be ember)

The app gets stuck in a start/stop loop

After further testing I have determined the configuration section is probably correct, but my storage using host paths is not working as expected. I will troubleshoot that separately.