Pages

Sunday, January 03, 2016

Getting Started - Raspberry Pi & ZWave

Before buying any kit I took a brief look at the complete solutions on offer:

Heat Genius
Nest
Hive
Tado

I really liked the look of the Heat Genius solution and thanks to a demo available through a web browser or as a phone app I got to have a good play around. It uses ZWave as its communication protocol for which there are plenty of blogs around detailing diy-er's experiences.

J Heyman's Blog
Steve Prater's Blog
Darren Miller's Blog

The Heat Genius system consists of the following components (some of which are used by the bloggers above).

Controller (Heat Genius)
Master Thermostat (Horstmann HRT4-ZW  / Secure SRT323)
Boiler control (Horstmann ASR-ZW / Secure SSR303)
TRVs (Danfoss Living Connect)
Philio Multisensor PIR/Temp/Light

It has been around since at least 2014 and user experiences have been positive. Although the thermostat and phone app aren't as slick as those from Nest, Hive & Tado I think the functionality is better. I decided to model my own system roughly on that of Heat Genius and opted for a Raspberry Pi as a controller (mainly as I had one already). And by choosing some of the same devices I would always have the option to switch to the Heat Genius system if things didn't work out with my own design.

But before buying anything, I installed the zwave.me software on my existing Raspberry Pi image just to get a feel for what it involved. These were the instructions from the ZWave.me site:

First installation when Raspberry is already up und running
To download Z-Way for your RaZberry, login to your Rapsberry Pi box execute the following command:
wget -q -O - razberry.z-wave.me/install | sudo bash

This was a good sanity check to see if everything loaded okay before investing in the hardware. And in fact I managed to glean a lot more information just by poking around in the code than reading the documentation.

It had been a good few years since I had worked on a unix based system - the directory structure and commands largely a distant memory. Stepping carefully through the install process and seeing what processes were generated and where files ended up in the directory structure was an important step for me.


The most important directory and file changes made by the install script were as follows:

  • /opt/z-way-server - where the zway software is installed and where any customization will occur
  • /etc/z-way -  a depository for VERSION and box_type details
  • /etc/init.d/z-way-server - a zway server startup script
  • /var/log/z-way-server.log - anything that the zway system logs gets put here
  • /etc/logrotate/z-way-server - z-way-server.log is added to the rotating logs
And the new processes created were:

  • z-way_server - the all important ZWay server
  • zbw_connect - for connecting to z-wave.me
  • mongoose - provides a web interface (for upgrading the firmware?). It is not the same web interface available on port 8083
Next step, I bought the razberry daughter card and a Thermostat to play around with.






No comments: