[HowTo] Update from Z-Way 1.x to 2.0.0-rcX

Tips, Tricks and Scripts to enhance your home automation and workaround known device bugs, limitations and incompatibilities
Post Reply
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

[HowTo] Update from Z-Way 1.x to 2.0.0-rcX

Post by pz1 »

DraftDraftDraftDraftDraftDraftDraftDraftDraft

Please only respond with questions/remarks on this Recipe. Problems with RaZberry should go in that subforum!
CAUTION 1: At the moment, this recipe is only inteded to help testers. Only use if you are confident. No guarantees, and no liabilities are accepted. In short you are on your own. Other users should stick with the production version

Before you start with the expert interface make a backup of your configuration. You will need that in one of the following steps

Get the RaZberry sources from http://razberry.z-wave.me/z-way-server/

Step 1
Use a blank SD card and copy with your favourite image writer the base RaZberry image from razberry.img.zip. On win7 I do use Win32DiskImager. Startup the Raspberry Pi.


Step 2
Open a terminal session on your Pi (using putty in this instruction)

Stop the z-way server:

Code: Select all

sudo service z-way-server stop
CAUTION 2: At the moment of this writing the RaZberry image comes with an OpenRemote installation, which automatically starts after boot-up. If you do not intend to use OpenRemote on Raspberry Pi, do prevent its start by placing a # at the beginning of that command in file. With editor nano change that line:

Code: Select all

sudo nano /etc/init.d/openremote

        #$OPENREMOTE_HOME/openremote.sh start
To ensure the latest libraries will be used, give the following command:

Code: Select all

sudo apt-get update

Step 3 (optional)
As I am working from a Windows environment I decided to install a Samba service on the Pi using the instruction at:

Code: Select all

http://raspberry.znix.com/2013/03/sharing-directories-with-windows-linux.html 
You may consider to make one share at /root in the early phases. Be careful in open environments!!


Step 4
Open your RaZberry backup with an archive program like 7Zip, and copy the zddx directoy of that archive to:

Code: Select all

/opt/z-way-server/config/zddx

Step 5
Next do your upgrade with somthing like:

Code: Select all

wget -q -O - razberry.z-wave.me/install/v2.0.0-rc8 | sudo bash

Step 6
Next update to your archived devices configuration:

Code: Select all

sudo LD_LIBRARY_PATH=/opt/z-way-server/libs find /opt/z-way-server/config/zddx -name "*.xml" -exec /opt/z-way-server/z-cfg-update {} \;
Start Z-Way:

Code: Select all

sudo service z-way-server start

Step 7
Next open the zway home automation app:

Code: Select all

http://RASPBERRY_ip:8083/z-way-ha/
If you do not see the Zwave module under -Preferences-Automation, then open -Preferences-Modules-Peripherals-Zwave. For the RaZberry device set the Serial port to the value /dev/ttyAMA0 as shown in the picture below. (Last character is a ZERO)
Zwave.PNG
Zwave.PNG (7.66 KiB) Viewed 5074 times
Step 8 (OPTIONAL)
If you need to upgrade to the following Release Candidate, just start the Z-Way configurator http://RASPBERRY_ip:8084 and fill the screen as below in the example.
Configurator.PNG
Configurator.PNG (27.64 KiB) Viewed 5552 times
  • Be reminded to:
  • disable the Remote Access if you do not want this. Remote Access is enabled by default during installation/upgrade.
  • regularly make a diskimage after changes of your hardware/software.
Last edited by pz1 on 30 Oct 2014 10:49, edited 9 times in total.
Since 29-12-2016 I am no longer a moderator for this forum
Post Reply