Hey folks,
after trying to get my new razberry board working for the last two days and see that other people dealing around with similar problems, I thought I write a short description how I get my razberry up and running.
My environment:
- RP2 with Raspbian Jessie
- OpenHab 1.8.3
- Razberry Board installed on my pi
- User is
openhab
To get the razberry sister board working do the followings steps:
-
Copy Binding:
First of all you have two copy the z-wave bindingorg.openhab.binding.zwave-1.8.3.jar
to your addons folder<openhab-folder>/addons
. -
Edit openhab.cfg:
Open the configuration file by typingsudo nano <openhab-folder>/configurations/openhab.cfg
.
In the file find the section##### Z-Wave Binding #####
and set port configuration tozwave:port=/dev/ttyAMA0
.
Save the file and exit nano withCTRL+O & CTRL+X
.
/etc/ttyAMA0 is the device file to access your GPIO Pins on your pi. -
Add user openhab to groups:
To access the file the useropenhab
has to be member of the groupsdialout
andtty
.
So entersudo usermod -a -G dialout openhab
andsudo usermod -a -G tty openhab
on the command line. -
Change the start script:
To give your openhab process access to /dev/ttyAMA0 you have to edit your startscript withsudo nano <openhab-folder>/start.sh
.
Find the line-Dosgi.noShutdown=true \
and add the following line right after:
-Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0 \
.
Save the file and exit nano withCTRL+O & CTRL+X
. -
Change device write setting:
The last step is to edit the write access to the device file (this step costs me hours to find).
Typesudo chmod g=rw /dev/ttyAMA0
in the command line to give group members read+write acces to the gpio port. -
Restart your PI:
Restart your pi withsudo shutdown -r now
After that the Razberry should work and you can start to configure your Z-Wave Network. If I forgot a step or something is unclear, please let me know.
Cheers,
Christian