Setting up a smart home command center with Z-Wave
Connecting Worlds
The RaZberry daughter board for your Raspberry Pi unlocks the power of the Z-Wave home automation environment.
Several vendors compete in the field of home automation. The solutions differ in price and also in terms of openness and interoperability: Many smart home solutions only work within the limits set by the manufacturer, and the devices only collaborate with a controller from the same company.
The Z-Wave Alliance [1] takes a different approach: The underlying system's protocol is open, and many manufacturers now offer Z-Wave-compatible devices or services. In addition to Z-Wave founder Sigma Designs, several hundred companies now belong to the consortium [2]. Among them are numerous well-known IT names, such as D-Link, devolo, Logitech, and Zyxel; large electronics groups, such as Bosch, LG, and Panasonic; and many lesser well-known companies. Certification ensures compliance with compatibility standards.
Z-Wave for the Rasp Pi
One of the most attractive features for home users is the fact that a Raspberry Pi is all you need for a Z-Wave control center – all you have to do is teach your Rasp Pi the Z-Wave protocol. You can do this either with the UZB [3], a Z-Wave-ready USB stick suitable for Linux, Mac OS X, and Windows, or with the additional RaZberry board [4], which I will describe in this article.
The RaZberry is a small daughter board that fits over the Rasp Pi's GPIO pins. One advantage of the RaZberry board is that the board is so small that it usually fits into standard Rasp Pi packages without any components protruding. The USB ports also remain free for further expansion. In addition, the EUR50 RaZberry is half as expensive as the EUR100 UZB. One disadvantage of the RaZberry board is that it only works with a Raspberry Pi. The UZB, on the other hand, can connect to other single board computers (SBCs) and even conventional PCs.
Install the RaZberry on the first 10 pins of the Raspberry Pi GPIO. The board is powered directly via the GPIO pins. The board is a bit lower than the USB ports on the Rasp Pi, so the Rasp Pi and RaZberry can be mounted in any standard case. You will want to use a plastic case – metal cases screen off radio signals.
Z-Way on the Rasp Pi
Z-Wave opens many doors when it comes to hardware selection and also offers alternatives when it comes to software. As a counterpart to the open source software for home automation FHEM presented in this issue, the RaZberry manufacturer Z-Wave.Me offers its own Z-Way [5] software. To use Z-Way, you'll need a license, which the RaZberry module already includes. UZB is available with or without license. If necessary, you can always purchase the license later.
If you want to install Z-Way, you have to log in from a freshly installed Raspbian system based on a RPi2 or RPi3, either via SSH or locally, and execute the command shown in Listing 1. If you don't want to install manually, you can alternatively reinstall the memory card of the Rasp Pi with the image provided by Z-Wave.Me.
Listing 1
Installer
Before you install, keep in mind that the Raspberry Pi has to learn the correct time zone for its location via:
sudo raspi-config 5 Internationalisation Options | 2 Change Timezone
Otherwise, the system may react incorrectly to time-controlled actions later on, even though the web interface displays the correct time (Figure 1).
In addition, you'll need to reconfigure the serial port of the Raspberry Pi. In the default setting, the serial port operates as a terminal port for operating the Rasp Pi directly. In this case, FHEM will use the serial port to control the RaZberry. You will need to open the Rasp Pi's configuration tool by typing sudo raspi-config
and answer No to the question Would you like a login shell to be accessible over serial? below 9 Advanced Options | A8 Serial (Figure 2).
Installing Z-Way
The command from Listing 1 loads an installation script from the Internet and immediately calls it with root privileges. After confirming the terms of use, the installer automatically imports any missing dependencies into the system and creates start-stop scripts so that the service starts together with the computer. Finally, the routine offers to register you with the Z-Wave.Me email distribution list.
The installation routine sets up the program and also updates it. To complete the installation, you need to run the script again with the same command. After setting up the software, you can access the interface in a browser via port 8083. If name resolution on the network works properly and only one active Rasp Pi is on the network, http://raspberrypi:8083 should also work.
If you work directly on the Rasp Pi system, you need to address localhost instead, i.e., 127.0.0.1:8083. In case of difficulties finding the Rasp Pi, a help page from Z-Way [6] automatically searches for the Rasp Pi and links directly to the web interface of the Z-Way system discovered on the net.
Since the FHEM developers are continuously developing improvements for various modules of the Smart Home system, you need to be sure to update FHEM by entering the update
command at the FHEM console.
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
System76 Refreshes Meerkat Mini PC
If you're looking for a small form factor PC powered by Linux, System76 has exactly what you need in the Meerkat mini PC.
-
Gnome 48 Alpha Ready for Testing
The latest Gnome desktop alpha is now available with plenty of new features and improvements.
-
Wine 10 Includes Plenty to Excite Users
With its latest release, Wine has the usual crop of bug fixes and improvements, along with some exciting new features.
-
Linux Kernel 6.13 Offers Improvements for AMD/Apple Users
The latest Linux kernel is now available, and it includes plenty of improvements, especially for those who use AMD or Apple-based systems.
-
Gnome 48 Debuts New Audio Player
To date, the audio player found within the Gnome desktop has been meh at best, but with the upcoming release that all changes.
-
Plasma 6.3 Ready for Public Beta Testing
Plasma 6.3 will ship with KDE Gear 24.12.1 and KDE Frameworks 6.10, along with some new and exciting features.
-
Budgie 10.10 Scheduled for Q1 2025 with a Surprising Desktop Update
If Budgie is your desktop environment of choice, 2025 is going to be a great year for you.
-
Firefox 134 Offers Improvements for Linux Version
Fans of Linux and Firefox rejoice, as there's a new version available that includes some handy updates.
-
Serpent OS Arrives with a New Alpha Release
After months of silence, Ikey Doherty has released a new alpha for his Serpent OS.
-
HashiCorp Cofounder Unveils Ghostty, a Linux Terminal App
Ghostty is a new Linux terminal app that's fast, feature-rich, and offers a platform-native GUI while remaining cross-platform.