Zigbee access to Nortek Serial Ports on RaspberryPi 3+

No, it all needs to be combined. You will need something like this…

EXTRA_JAVA_OPTS="-Xms1024m -Xmx2048m -Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0:/dev/ttyUSB1"

I recommend the beta bundle, which includes Jython and the helper libraries. Using the bundle, there is no need to add anything to EXTRA_JAVA_OPTS.

If you do not want to use the bundle, then…

EXTRA_JAVA_OPTS="-Xms1024m -Xmx2048m -Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0:/dev/ttyUSB1 -Xbootclasspath/a:/etc/openhab2/automation/jython/jython-standalone-2.7.0.jar -Dpython.home=/etc/openhab2/automation/jython -Dpython.path=/etc/openhab2/automation/lib/python"

That line is getting a liitle long, so let’s add some line breaks…

EXTRA_JAVA_OPTS="-Xms1024m -Xmx2048m \
-Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0:/dev/ttyUSB1 \
-Xbootclasspath/a:/etc/openhab2/automation/jython/jython-standalone-2.7.0.jar \
-Dpython.home=/etc/openhab2/automation/jython \
-Dpython.path=/etc/openhab2/automation/lib/python"

You configure the controller/coordinator Thing. I prefer using Habmin…

1 Like