USB address changes HASSIO


#1

Hey i have two devices connected to the USB port RS485 converter and an Arduino .

Sometimes the address of the USB devices is changed causing the automation not to work…

i was working with hassbian and did not had any issue like this before…

any soultion?


#2

yes, you need to create a symlink and refer to this instead of /dev/ttyusb*.

edit the /etc/udev/rules.d/10-local.rules to contain:

ACTION=="add", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", SYMLINK+="my_uart"
You can check for the variables of your device by running

udevadm info -a -p $(udevadm info -q path -n /dev/ttyUSB0)
There is a more in depth guide you can read on http://www.reactivated.net/writing_udev_rules.html


#3

Can you please elaborate step by step?

Action should be added for each device?
what do you mean by “my_uart”
how can this be verified…?


#4

will this work for HASSIO?


#5

Sorry just realised that the below has been left on draft :open_mouth:
as per previous message above, check for the variables of your device by running

udevadm info -a -p  $(udevadm info -q path -n /dev/ttyUSB0)

Yes it should work for hassio but you’ll need to run the commands via SSH


#6

this command is not working for HASSIO


#7

changed to Hasbian and have ssh…
can someone please provide full example?


#8

Hi, I have a similar (not yet critical with only one USB attached, it doesn’t change if not touched) problem myself, maybe someone did work it out with hassio (Raspberry PI) ?

Also an out of topic question to @poratnir - how do you communicate with this “USB port RS485 converter” in hassio ? And which one do you have ?