Tutorial on how to connect raZberry Z-Wave module to Raspberry Pi 2B and use it with Openhab.
Connect the raZberry to raspberry pi 2 (openhabian OS) on pins 1-10
install raZberry software from zwave.me
wget -q -O - http://razberry.z-wave.me/install | sudo bash
Install Z-Wave binding thru the PaperUI in Openhab.
Go to Addons->Bindings search for Z-Wave and click install on “Z-Wave Binding”.
check if /dev/ttyAMA0 exist
ls -l /dev/ttyAMA0 crw-rw---- 1 root dialout 204, 64 Apr 22 23:04 /dev/ttyAMA0
be sure that user under which you are running the openhab runtime has access to this file.
In my case openhab. /dev/ttyAMA0 is owned by group dialout.
I had to add the user openhab to group dialout as follows.
sudo usermod -G dialout openhab
Add following line in /etc/default/openhab2 to be sure the serial port is started on service start (java has problem with non-standard ports).
If you have openhabian version of system you can use openhabian-config and check option under serial port -> add java options for razberry.
Stop and disable the server service which was installed by z-wave.me to be able to use raZberry in openhab
sudo systemctl stop z-way-server sudo systemctl disable z-way-server sudo systemctl restart openhab