Raspberry Pi

From Domoticz
Revision as of 12:42, 14 July 2018 by AndyWhittaker (talk | contribs) (Prerequisites)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Raspberry Pi 2 Model B


The following page will give you an overview about how to load and run Domoticz on a Raspberry Pi. We will start with the things you will need and then go through the installation of all necessary software and hardware components.


The following things are needed to install Domoticz and your chosen operating system successfully.

  • Raspberry Pi 3 Model B (Raspberry Pi 1 Model B(+) and 2 model B are supported as well)
  • microSD card minimal 4GB class 10 (The original Model B requires a full-size SD card)
  • Computer with a SD card reader to install the operating system to the SD card
  • Display and HDMI cable
  • USB keyboard and mouse
  • 5V micro USB power supply (2A power supply is recommended, 2.5A for the Raspberry Pi 3)
  • Ethernet cable (or USB WiFi adapter) connected to your home network. Note that the Pi 3B has an on-board WiFi adapter, hence no separate adapter is necessary.

(*) Display, HDMI, keyboard and mouse are NOT mandatory. If you have another computer, you can remote control your RPi via SSH. Just find the IP of your RPi (by examining your router/Home internet Box's DHCP lease table or running a local IP Address scan) and follow all the instructions without the first 'ifconfig' (because you already know its IP Address). Of course, remember not to disable SSH!

You can find some example systems in the Buyer's Guide

When using a Raspberry Pi 3 Model B, please consider to boot and run from an USB mass storage device instead of microSD card. In order to boot from USB, you have to enable this function on a RPi3 (see [1]). Since running Domoticz from an USB stick it never crashes for me anymore.

Prepare your Pi

If you haven't done it already, you need to install a supported operating system on your Pi. A guide to prepare your Pi for Domoticz can be found here.

Install Domoticz

The "easy" way

After setting up the operating system of your choice, you are now ready to install Domoticz. Assuming your Linux is Debian-based, like Raspbian or Ubuntu, installing Domoticz is extremely easy. Just open a terminal window and execute this command.

curl -L install.domoticz.com | sudo bash

Congratulations, you're done!

Just point your browser to the IP address of your Raspberry Pi, and use port 8080. From your Pi's browser type this:

Now you can go on and visit the Getting started area.

[Note: If you receive certificate error messages, you could also try executing sudo curl -L -k install.domoticz.com | sudo bash. This will download Domoticz through an unsecure (http instead of https) connection.

The "not so easy" way (Compiling from Source)

The other way to get Domoticz up and running is, to build it by yourself. You can find a detailed guide here.

Raspberry Pi additional software installations

After the successful installation of Domoticz there are several other useful guides to follow:

Please follow at least Persistent USB Devices.
There are numerous forum posts from new users that can not connect to their RFXCOM or Z-Wave stick after a reboot.
By following the guide above this problem cannot happen anymore.

Raspberry Pi related hardware

Raspberry Pi GPIO 40 pin.png

Raspberry Pi General Purpose Input/Output (GPIO)

The Raspberry Pi 1 Model A and B boards have a 26-pin expansion header
The Raspberry Pi 1 Model A+ and B+ boards, and the Pi 2/ 3, have a 40-pin expansion header
Support for the standard GPIO is available in Domoticz from release 1726 and onwards.

Domoticz GPIO installation instruction
Raspberry Pi GPIO Domoticz forum thread

PiFace Digital

PiFace Digital.png

PiFace Digital is designed to plug on to the GPIO of your Raspberry Pi. With PiFace Digital you can detect the state of a switch, for example from a door sensor, a pressure pad or any number of other switch types. You can drive outputs to power motors, actuators, LEDs or anything you can imagine. PiFace Digital has eight digital inputs, eight open­-collector outputs, eight LED indicators, two changeover relays and four switches.
The Piface Digital board is compatible with Raspberry Pi 2 Model B, Raspberry Pi Model B and A (26 pin connector)
The PiFace Digital 2 board is compatible with Raspberry Pi 2 Model B, Raspberry Pi Model B+ and A+ (40 pin connector)
Support for the PiFace Digital is available in Domoticz release 1045 and onwards.

[PiFace|Domoticz PiFace Digital installation instruction]
PiFace Digital Domoticz forum thread

RaZberry Daughter Card


The RaZberry is a tiny daughter card that site on top of the Raspberry Pi GPIO connector without blocking any of the USB ports. It is powered by the Raspberry Pi board with 3.3V and communicates using TTL signals (RX/TX). The daughter card hosts a Sigma Designs ZM5202 Z-Wave transceiver module (a so called 5th generation Z-Wave module; old RaZberry hardware was based on ZM3102 module - so called 3rd generation Z-Wave module), an external 32 K SPI flash for network data and a PCBA antenna. Additionally two LEDs are used to indicate certain status of the Z-Wave controller chip.
This board is compatible with Raspberry Pi 3, Raspberry Pi 2 Model B, Raspberry Pi B(+) and is supported by Domoticz.

NEW - Domoticz RaZberry installation instruction Raspberry Pi 3 in combination with OpenZwave.
OLD - Domoticz RaZberry installation instruction in combination with OpenZwave. Please note there is no active support on Domoticz in combination with the Z-way software.

RazBerry2 Daughter Card

DETAILED -Detailed installation instructions RazBerry2 and Pi3 in combination with OpenZwave.


The Pi-mote control board is is a low cost and a simple wireless controller, dedicated to the Raspberry Pi computer, and Energenie ENER002 RF controlled mains sockets. It is an extremely simple, transmit only, open loop system controlled by six GPIO pins in "out" mode on the Raspberry Pi. It plugs directly into a Raspberry Pi computer, and is powered from the Pi.

Pi-Mote Pi-mote installation instruction

Buyer's Guide

Following are some tips to configure and arrange your system. These are just suggestions, feel free to choose your shop and the final product.


  • Raspberry Pi 3 Model B
Raspberry 3 ABS Case Protective Box - BLACK DYS 5V 4A Power Supply Adapter for Raspberry Pi - BLACK (don’t use cheap 2a chargers) Class 10 Micro Sd

Click on the pictures to get product info and buy the product.



Raspberry Pi Foundation website
Raspberry Pi GPIO details
PiFace Digital website
RaZberry website
Pi-mote website