How do I access a USB device in an addon (from python)?
-
serial.tools.list_ports.comports()
lists the device (so it’s visible in the addon) -
with Serial(port, baud) as dev:
throwsPermissionError: [Errno 1] Operation not permitted: '/dev/ttyUSB0'
- 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?
devices:
- "/dev/USB0"
full_access: true