Some OpenHAB 2 examples
On a raspberry, give the openhab user access to the serial interfaces:
sudo usermod -a -G dialout openhab