Serial communication with no sudoer

Hi I have a python script which drive a MCU with serial communication. in this script I use pySerial.
Serial access need specific rights on linux.
My homeassistant user which runs homeassistant is not a sudoer or any special user.

how do you recommend to handle hardware access with this account?

Your user needs to be a member of the dialout group. Use the following command to add the group.

usermod -a -G dialout user_name
1 Like

indeed, this group is done for that, it works, thx.
need to logout and login