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
-
Endless OS 6 has Arrived
After more than a year since the last update, the latest release of Endless OS is now available for general usage.
-
Fedora Asahi 40 Remix Available for Macs with Apple Silicon
If you've been anticipating KDE's Plasma 6 for your Apple Silicon-powered Mac, then you're in luck.
-
Red Hat Adds New Deployment Option for Enterprise Linux Platforms
Red Hat has re-imagined enterprise Linux for an AI future with Image Mode.
-
OSJH and LPI Release 2024 Open Source Pros Job Survey Results
See what open source professionals look for in a new role.
-
Proton 9.0-1 Released to Improve Gaming with Steam
The latest release of Proton 9 adds several improvements and fixes an issue that has been problematic for Linux users.
-
So Long Neofetch and Thanks for the Info
Today is a day that every Linux user who enjoys bragging about their system(s) will mourn, as Neofetch has come to an end.
-
Ubuntu 24.04 Comes with a “Flaw"
If you're thinking you might want to upgrade from your current Ubuntu release to the latest, there's something you might want to consider before doing so.
-
Canonical Releases Ubuntu 24.04
After a brief pause because of the XZ vulnerability, Ubuntu 24.04 is now available for install.
-
Linux Servers Targeted by Akira Ransomware
A group of bad actors who have already extorted $42 million have their sights set on the Linux platform.
-
TUXEDO Computers Unveils Linux Laptop Featuring AMD Ryzen CPU
This latest release is the first laptop to include the new CPU from Ryzen and Linux preinstalled.