I am trying to set up the DSC binding on a RPi3 with the IT-100 interface. However, it will not connect to /dev/ttyUSB0. I know the interface works with another program, but I can’t connect with Openhab. Any help would be appreciated.
John
Why can’t you connect with OH? Any error logs?
Here is the log entry:
2018-04-25 14:51:59.098 [ERROR] [rm.handler.DSCAlarmBaseBridgeHandler] - Not Connected to the DSC Alarm!
2018-04-25 14:51:59.128 [ERROR] [.dscalarm.handler.IT100BridgeHandler] - openConnection(): No Such Port Exception: null
Thanks
John
It may be a permissions issue with openHAB accessing /dev/ttyUSB0. I believe there are some topics addressing this on the site. Here is a link that might help also: openHAB Docs. Hope this helps.
That worked (see below)!!!
sudo adduser openhab dialout
sudo adduser openhab tty
Additionally it’s needed to allow the java environment to access the serial port of the connected peripheral. Therefore the following setting has to be added/adapted on your system in file /etc/default/openhab2:
EXTRA_JAVA_OPTS="-Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0:/dev/ttyS0:/dev/ttyS2:/dev/ttyACM0:/dev/ttyAMA0"
Thanks again