I am creating a new topic particularly for running Openhab 4 on Macos High Sierra. The usual solutions don’t seem to apply as they mostly reference OpenHabian.
I am trying to set up Zwave using a Vera using ser2net and socat.
I have the Vera using ser2net setup correctly. Socat is talking, and I have set up a serial port /dev/zwavevera. Socat says it is connected to device /dev/ttys004.
However, adding the ports to Openhab 4 has been a challenge. What I have done:
I have added my user to the group wheel.
I have created a /var/lock folder and tested it.
I have added a serial bridge in Openhab Paper UI.
I have added a serial Z-wave controller to Openhab Paper UI.
Nothing connects in Openhab until I add the ports using “export EXTRA_JAVA_OPTS=”-Dgnu.io.rxtx.SerialPorts=/dev/ttys004:/dev/zwavevera" at the top of the start.sh file.
If I run this file manually from the command line, the serial port connects in Openhab, but nothing changes on the Zwave controller in OH, it shows “BRIDGE_OFFLINE” and “Controller Is Offline”.
The two questions I have is:
Where do I add “export EXTRA_JAVA_OPTS=”-Dgnu.io.rxtx.SerialPorts=/dev/ttys004:/dev/zwavevera" if I am running a Launchctl Agent? I tried creating a openHAB-wrapper.conf file in my openhab/etc/ folder, but it doesn’t seem to affect anything.
What would be the next step in getting the z-wave controller online?