Wiring Scheme

Wiring scheme

Pi-Home - principle wiring diagram


Pi-Home - Schéma zapojení



The installation is based on the heart of the intelligent house - the Raspberry Pi board (RPi). RPi runs the central software - OpenHAB. For more about OpenHAB and its installation on the RPi, see the How to section. RPi is powered via USB HUB and also linked to Arduino Mega boards. Arduino Mega boards are also powered via the USB interface and the necessary code is uploaded via this connection. RPi and Arduino are connected via a LAN to an internal network. Communication between RPi and Arduino is through the MQTT protocol, where commands for specific actions are publshed and subscribed. The system can be complemented by any MQTT-enabled device or wireless standards such as Z-Wave or Zigbee.


Main features:

Controlling high power circuits (lights, sockets, pumps, electric heaters)

We are using combination of Arduino compatible SSR relay board 230V/2A connected with robust installation branded relay (230V/20A). This combination enables to safely controll sockets, pumps and other high-power devices.

Controlling low power circuits ~ 200W (ventilation, heat valves, blinds)

You can controll low-power devices directly with Arduino relay board 230V/2A SSR. Boards are available from single output up to eight outputs.

LED lights

Due to very high current during first several miliseconds of 230V LED lights, we recommend to use Arduino relay board together with robust relay - same as sockets, pums. See first option.


Sensors are usually connected with UTP cables. UTP ends in switchboard on KRONE modules. You can split wires into DATA, GND and 5V. KRONE modules are connected to Arduino Mega boards, where sensors interacting based on sketch (code, program). Arduino comminicating with central node OpenHAB through MQTT protocol. This configuration support huge variety of Arduino compatible sensors which gives you low prices of hardware and variety to use designed box for sensors as you wish.


For apartments or already reconstructed objects you can use OpenHAB with variety of wireless devices as Z-Wave or Zigbee. It is simple to configure it and put customized rules for logic. Wirelless modules are installed in the location you want befeore device you want to controll. We have a good experiece with Z-Wave protocol.

Full detail scheme for model house (see How To section):

PiHome Wiring Scheme



Alarm Smart Home PIR
Alarm from existing PIR sensors in a smart home.Rating: 

In a your smart home, PIR sensors may not only be used to switch lights on and off based on motion, it is possible to utilize these sensors to detect the presence of motion in a particular room. This information can be used to create a relatively reliable uncertified home security system. In this guide, you will find the logic for how this can work in the OpenHAB software in our model smart home.

Voice control smart home
Voice control of the houseRating: 

In this article, we will connect the Amazon Echo Dot voice assistant with open source home automation. We won't be using OpenHAB Cloud, so everything runs locally. In this case, a few additional settings are necessary, but the result is worth it!

Video intercom Doorbird in OpenHABRating: 

Native support for OpenHAB is provided by video intercom by Doorbird company. The solution is powered and connected by a UTP cable and has its own IP address to make it easier for you to install at the gate. OpenHAB is then able to import images from the intercom, visit history, manage gate opening on the button and by the phone, do not disturb feature during night, alarm feature etc. In the instructions we guide you how to use OpenHAB with Doorbird D101.

Jak nastavit pevnou IP adresu v linuxu
How to set static IP for OpenHABRating: 

Need fixed IP address for OpenHAB? Simple guide will show you how to set static IP address on linux Debian systems like Raspbian. You can use same guide for ubuntu or other debian like linux systems.

Smart Home GoodWe inverter
Smart Home vs GoodWeRating: 

In the post, we will demonstrate step by step how to communicate directly with the GoodWe inverter in a smart home setup and obtain real-time information (unlike the SEMS portal). This information is essential if we want to react to current parameters in a smart home, such as activating additional cooling or controlling a socket with a various load.

PiHome - Chytry dum mereni spotreby elektriny
Energy meter in smart homeRating: 

We are providing a simple step-by-step tutorial how to install home energy meter. We did not find any MQTT device, so we buy Aeotec Home Energy Meter as we are already have a Z-Wave controlller in our smart home.

Victron & OpenHAB
Victron vs Smart HomeRating: 

In this post, we will show you how to retrieve information from a photovoltaic power plant by Victron. We will connect to the Cerbo unit via MQTT. Based on these values, we can control various appliances (heating, boiler, etc.) and prevent the battery from being drained when they don't need to be.

Nilan VP18 vs OpenHABRating: 

We provide tutorial for the connection of the active Nilan recuperation unit, in our case the VP18 K WT type with OpenHAB 3. By communicating via Modbus it is possible to read the whole range of values, but mainly also to control the unit through OpenHAB. This allows us to remotely or programmatically change the performance and ventilation settings depending on the mode (night, cooking, etc.)

DALI device control via MQTTRating: 

DALI (Digital Addressable Lighting Interface) is an open interface for lighting controls in the home, industrial buildings, public objects, etc. To connect to our OpenHAB system, we can use a commercial converter from ADFWEB called HD67941-B2 - DALI / MQTT - Converter. In the article, we will show how to use this converter in conjunction with MQTT.

Advanced PIR sensors features in OpenHABRating: 

The HC-SR501 PIR sensor contains mechanical adjustement for range detection and time. But in an intelligent house, we want to be able change time how long the light will be active and change whether the light will be controlled by PIR or not. You can find a tutorial how to config your PIR sensor to enable this features in this article.