Skip to content

Using USB Serial devices

Stefan edited this page Mar 7, 2021 · 1 revision

If you need an external usb/serial device of the host it is already automounted to the homegear container. If you want to use a /dev/ttyUSB* or a /dev/ttyAMA* device the homegear user has already the required access permission to the group of this device.

To get the required device path just open the Hassio web interface and click on Supervisor => System => ... in the Host section => Hardware.

The result there looks like this:

 - name: ttyUSB0
    sysfs: >-
      /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3:1.0/ttyUSB0/tty/ttyUSB0
    dev_path: /dev/ttyUSB0
    subsystem: tty
    by_id: /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0

Don't use the value of dev_path. This could change on every reboot. Instead better use the value of by_id for the homegear config.

Clone this wiki locally