I have been starting with system scripts (systemctl start openhab2.service)
Ya, that would not use the env var, can you try manually?
Ohh now it is coming in. Good job man. Thank you. I’m really happy now. Have a nice day. <3
Hello to everyone, sorry if this old post is wrong, but I have the same problem, I put in the java options
"-Dgnu.io.rxtx.SerialPorts = / dev / ttymxc3" if I start with the script start.sh works perfectly, if I start up as a service does not work, is there a way to fix it?
Thank you
P.S. this is an on-line translation
This is now documented at: https://www.openhab.org/docs/administration/serial.html
My OpenHAB 1.8.3 install running on Ubuntu 16.04 LTS (GNU/Linux 4.4.0-47-generic i686) has this -Dgnui.io.rxtx… java arg in ~/openhab/bin/start.sh:
. When the system restarts OpenHAB picks up the -Dgnu.io.rxtx.SerialPorts java argument so that the serial port is activated automatically.
JAVA_ARGS_DEFAULT="-Dosgi.clean=true \
-Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0 \
-Declipse.ignoreApp=true \
-Duser.timezone=America/Los_Angeles \
-Dosgi.noShutdown=true \
… (remainder omitted)
YMMV depending on which version & form of OpenHAB you’re using.