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.

1 Like