Hi.
Does anybody know if there is a way to dynamically recognize usb device in hassio container (attached to pi usb port, when system is already up and running)?
ttyUSB appears in /dev only when device is plugged at start time.
If it was not plugged at boot time --> it is not available in hassio /dev directory
?
I don’t use hassio, but I do use docker for HA among other things. The HA container needs to be sent the device name to pass into the container at creation time and the device has to exist when the container is started otherwise it will not appear inside the container. If the device is removed while the container is still running it will lock out that device (e.g. /dev/ttyUSBA0) until the container is restarted. This is what causes the device to show up on the host system as /dev/ttyUSBA1 when you plug it back in after removing while the HA container is running.
TL;DR: No, you cannot add any devices to a docker container after it has been started.