Device path for usb stick?

I just got a usb stick “HUSBZB-1” with zigbee and zwave radios. I’m trying to add it to my docker-compose but I’m having troubles figuring out what is the right path. This is what I get from lsusb

ignacio@synology:/volume1/config/home-assistant$ lsusb -ciu
|__usb1          1d6b:0002:0310 09  2.00  480MBit/s 0mA 1IF  (xhci_hcd 0000:00:14.0) hub
  |__1-2         10c4:8a2a:0100 00  2.00   12MBit/s 100mA 2IFs (Silicon Labs HubZ Smart Home Controller C1301284)
  1-2:1.0         (IF) ff:00:00 2EPs ()  
  1-2:1.1         (IF) ff:00:00 2EPs ()  
  |__1-5         f400:f400:0100 00  2.00  480MBit/s 200mA 1IF  (Synology DiskStation 65005CE0C4A34F17)
  1-5:1.0         (IF) 08:06:50 2EPs () usb-storage host3 (synoboot)
|__usb4          1d6b:0003:0310 09  3.00 5000MBit/s 0mA 1IF  (Linux 3.10.105 etxhci_hcd-170202 Etron xHCI Host Controller 0000:04:00.0) hub
  |__4-1         2537:1066:0100 00  3.00 5000MBit/s 8mA 1IF  (Norelsys NS1066 0123456789ABCF7)
  4-1:1.0         (IF) 08:06:50 2EPs () usb-storage host4 (sdr)
  |__4-2         0bc2:50a5:0100 00  3.00 5000MBit/s 0mA 1IF  (Seagate GoFlex Desk NA0LPD1X)
  4-2:1.0         (IF) 08:06:50 2EPs () usb-storage host5 (sdq)

Is this right?

    devices:
      - /dev/ttyUSB1:/zwaveusbstick
      - /dev/ttyUSB2:/zigbeeusbstick

Try something like this: /dev/serial/by-id/usb-0658_0200-if00
that was what I got from Supervisor > System (then click on the hamburger at the bottom right of Host), and click Hardware.

that did not work :frowning:

I think it would be easier to find the device using HA rather than Linux right now so please;

In Home Assistant, do the Supervisor > System (then click on the hamburger at the bottom right of Host), and click Hardware, and give us a screen shot of the results.

try this command:

ls -l /dev/serial/by-id

it should give this result:

total 0
lrwxrwxrwx 1 root root 13 Jan 24 09:14 usb-0658_0200-if00 -> ../../ttyACM0
lrwxrwxrwx 1 root root 13 Jan 24 09:14 usb-Silicon_Labs_HubZ_Smart_Home_Controller_C0F007F9-if00-port0 -> ../../ttyUSB0
lrwxrwxrwx 1 root root 13 Jan 24 09:14 usb-Silicon_Labs_HubZ_Smart_Home_Controller_C0F007F9-if01-port0 -> ../../ttyUSB1
lrwxrwxrwx 1 root root 13 Jan 24 09:14 usb-Texas_Instruments_TI_CC2531_USB_CDC___0X00124B0018ED1C8C-if00 -> ../../ttyACM1

Then to find which of those is the zwave & which is the zigbee:

udevadm info -a -n /dev/ttyUSB0 | grep '{interface}' | head -n1

then use the by-id as above for the correct port.

Or the way I do it is to set a udev rule so that the USB port never changes and just pass that to my container.

That’s for the Aeotec stick, not the HUBS stick.

2 Likes

I had to install a driver for my synology to solve this issue. More information here.