Sample Code

The basic idea behind RaZberry is to allow everybody to write own Smart Home Solutions based on an industry grade and stable band end software. Developers should have knowledge in HTML, CSS and Javascript. No other software language knowledge is needed!

The RazBerry project comes with several user interfaces that are made available as source code for reference and study. All out UI and test projects are free. You can download latest version of all these projects from github servers.

Interfaces using Z-Way HTTP API:

  1. The Demo UI The Demo UI (also internally called the Expert UI as well as it's older version called 'Blue UI') is written in AJAX technology and comes with every installation of Z-Way. Its main purpose is to demonstrate all the functions of Z-Way with its access to Z-Wave network variable and parameter and the execution of Z-Wave network commands.

  2. The Mini UI Limited to about 800 lines of code this AJAX interface is a condensed version of the blue UI. It is a good starting point for writing AJAX based User Interfaces for RaZberry.

  3. The iPhone App In todays world accessing the smart home from a mobile is a key feature. We provide  a very basic but fully functional iPhone App in Objective C. You can also install it from Apple App Store.

Interfaces using Home Automation HTTP API:

  1. The Web UI This full feature UI allows to control virtual devices, create and configure modules, see notifications. This is the tool to configure your home automation based on Z-Way.

  2. The iPhone and Android Apps In todays world accessing the smart home from a mobile is a key feature. We provide  a very basic but fully functional iPhone and Android Apps in Objective C and Java correspondingly. You can also download the compiled version of these Apps from the Apple AppStore and Google Play.

Using low level Z-Way C API:

  1. The C Library API Z-Way comes as 'out of the box' solution with its own web server but its possible to only use the C level libraries. You find the libraries in the distribution folder of Z-Way under /libs and the header files in /libzway. A very basic test tool showing the use of the C level API can be downloaded from here.

Writing own modules for JavaScript v8 engine to add more JavaScript API function:

  1. JavaScript extensions Z-Way is shipped with many JavaScript add-ons like HTTP request handler, XML parser, TCP/UDP sockets handler. But you are not limited to these API extensions. Write your own modules in C++ to extend JavaScript with more functions. Use this sample code as a reference. All headers are located in /libzway and /modules-includes folders.


Compatible with new Model B+ and Raspi 2

RaZberry is compatible with old Raspberry Pi Model B as well as with new Model B+! We have not tested against the new Raspberry 2 but we don't expect problems.


Users Voice

Yesterday I received my Razberry, plugged it on my baseboard and was up and running. Great Work Guys! Saves me month of effort dealing with the low-level Z-Wave stuff.

Wayne Hunt, Moonlight Software


Z-Wave Book

The new Book about Z-Wave (264 pages) written by Dr. Christian Paetz, is now available at amazon.com or amazon.co.uk It mentions a lot of the UI elements of the current RaZberry demo UI and is a great documentation about Z-Wave in general. 

517efb333