Access USB device in addon

How do I access a USB device in an addon (from python)?

  1. lists the device (so it’s visible in the addon)
  2. with Serial(port, baud) as dev: throws PermissionError: [Errno 1] Operation not permitted: '/dev/ttyUSB0'
  3. I’ve specified a “soup” of options, including some I really do not want:
  log_level: debug
  homeassistant_api: true
  usb: true
  uart: true
  # how access usb without this?
    - "/dev/USB0"
  full_access: true
1 Like