Rasberry Pi and Z-Wave makes Razberry

RazberryOpenRemote Here’s a guideline to setup ZWave.me GPIO addon on your Rasberry Pi and install OpenRemote.

Hardware
ZWave.me addon module is bought separately from the Rasberry Pi and can be plugged in using the GPIO pins on the board. So far, for the hardware setup 🙂

Software
Setup Rasberry

  1. Download the hardfloat version of Raspbian “wheezy” here.
  2. On Ubuntu:
    Unzip
    Plugin SD card
    Unmount card (df -h to check which devices)
    sudo dd bs=4M if=~/Downloads/2013-05-29….img of=/dev/sdd
    sync
    Plugout SD card
  3. Plugin SD card in the raspberry and fire it up
  4. Set timezone
    Enable SSH
    Also note the IP for logging on to your Raspberry.
    (When you already closed the config, start it again using raspi-config)
  5. Add en_GB locale (or the one for your region) and add to /etc/default/locale
    LC_ALL=en_GB.UTF-8
    LANGUAGE=en_GB.UTF-8

Setup R-wave

  1. Logon to Raspberry via SSH or use the terminal
  2. wget -q -O – http://razberry.z-wave.me/install | sudo bash
  3. Uncomment following lines in /boot/config.txt:
    framebuffer_width=1280
    framebuffer_height=720
  4. Reboot via:
    sudo reboot
  5. Check http://<ip Razberry>:8083 to make sure all is running up to this point.
    The site also provides functions to add new devices, put them on a map, view their state and control them.

Install Java 8

  1. Download file using Raspberry or computer
    Copy from computer to Raspberry using:
    scp jdk-8-ea-b36e-linux-arm-hflt-29_nov_2012.tar.gz pi@192.168.0.148:/home/pi
  2. Logon to Raspberry and execute:
    tar zxvf jdk-8-ea-b36e-linux-arm-hflt-29_nov_2012.tar.gz /opt
    sudo update-alternatives –install “/usr/bin/java” “java” /opt/jdk1.8.0/bin/java 1
    sudo update-alternatives –set java /opt/jdk1.8.0/bin/java
  3. Add JAVA_HOME to /etc/environment:
    JAVA_HOME=/opt/jdk1.8.0
  4. Add JAVA_HOME and PATH to ~/.bashrc
    export JAVA_HOME=”/opt/java/jdk1.8.0″
    export PATH=$PATH:$JAVA_HOME/bin
  5. Reboot using:
    sudo reboot
  6. After logging on again, Java can be verified by executing: java

Install Open Remote

  1. Download from the site using Raspberry or computer
    Copy to Raspberry using:
    scp OpenRemote-Controller-2.1.0_SNAPSHOT-2013-06-17.zip pi@192.168.0.1:/home/pi
  2. Logon to Raspberry and unzip to /opt
  3. Install librxtx-java using:
    sudo apt-get install librxtx-java
  4. Copy file librxtxSerial.so to OpenRemote:
    cp /usr/lib/jni/librxtxSerial.so /opt/OpenRemote-Controller-2.1.0_SNAPSHOT-2013-06-17/webapps/controller/WEB-INF/lib/native/librxtxSerial.so
  5. OpenRemote is started by going to /opt/OpenRemote…../bin and then start using:
    for debugging use: sudo ./openremote.sh run
    for running in the background use: sudo ./openremote.sh start
  6. Verify all is working by visiting http://<ip razberry>:8080/controller
  7. Sign up for an account at OpenRemote here, this is required for the controller (sync panel/ configuration). Logging on to this site enables you to configure OpenRemote. After that sync. When synced, the configuration is loaded and the panel can be opened via http://<ip razberry>:8080/webconsole.
  8. After configuring RRD4J, graphs can be viewed via http://<ip razberry>:8080/controller/graph?name=temperature

 

Upgrading the firmware of the Raspberry Pi via:rpi-update

 

Update all software on the Raspberry Pi via:
sudo apt-get update && sudo apt-get upgrade

Leave a Reply

Your email address will not be published.