Has anybody tried with Serial devices under Linux?
I’ve just testing on my production system (yeah, I know ) and noticed that /dev/ttyUSB0 can’t be accessed by the smartmeter binding:
2020-12-05 13:49:21.150 [INFO ] [ding.smartmeter.internal.MeterDevice] - Opening connection to smartmeter:meter:7a73a9f7a2
2020-12-05 13:49:21.153 [WARN ] [ding.smartmeter.internal.MeterDevice] - Failed to read: No provider for port /dev/ttyUSB0 found. Closing connection and trying again in 2 seconds...; smartmeter:meter:7a73a9f7a2
java.lang.IllegalStateException: No provider for port /dev/ttyUSB0 found
User permissions are the same as before the “upgrade” for user openhab:
# id openhab
uid=109(openhab) gid=114(openhab) groups=114(openhab),5(tty),20(dialout),29(audio),113(bluetooth),997(gpio)
Device is fine:
root@openhab2:/home/pi# ls -l /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 0 Feb 14 2019 /dev/ttyUSB0
I’ve tested with additional options in /etc/default/openhab but no succes:
EXTRA_JAVA_OPTS="-Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0"
Any suggestions on this?
Thanks,
Sascha