[SOLVED] Unable to connect to serial port /dev/ttyUSB0

Hello,

i try to connect from my rpi3 via UART to my ebus adapter.

openhab log file show me

Unable to connect to serial port /dev/ttyUSB0

But with the command

ebusctl info

, everything works file, so it should be a openhab problem.

How can i solve the problem?

Have you added the openhab user to the dialout and tty group?

pi@raspberrypi : /etc/openhab2/services $ ls -l /dev/ttyUSB*

crw-rw---- 1 root dialout 188, 0 Okt 14 17:59 /dev/ttyUSB0

how can i add openhab user to the dialout and tty group?

Try sudo adduser openhab dialout and change user name to what you need if not openhab. Then do the same for tty.

Thank you.

after i use this commands

sudo adduser openhab dialout
sudo adduser openhab tty

everything works fine

Glad to help and please mark the post as solved.