Skip to main content
loading
By Michal Novotný
October 17, 2025
Model samrt home automation

 

We have chosen the step by step tutorial of setting up a smart home as the best learning option. In this guide you will find how our model house looks like, how rooms are labeled and what we will control in our model house. If you learn to set up a model house, it will be easy for you to adjust the number of lights and their labels so that the setting fits your real project. Let's go!

 

Pi-Home model house

Our model house has a floor plan ~ 10 x 10 m . To avoid having to reinvent the wheel we used the finished floor plan of the real house Terra 173 by Atrium company with their permission. The ground floor rooms are coded as 1xx and the first floor as 2xx. Everything is for the purpose of the tutorial labelled in English.

The house contains the following types of controlled circuits and their coding:

Lights LxxxSockets SxxxShutters/Blinds Rxxx
Heatings HxxxButons BxxxPIR sensors SPxxx
Temperature senors STxxxHumidity sensors SHxxxTemperature floor sensors SFxxx
   

 

The coding you have chosen will be with you almost forever, so think about making it as versatile as possible. A well-chosen coding will give you easy orientation in modules, cables and code. It should be as short as possible, without accents or special characters.

The following table shows the codes and numbers of each type of controlled circuit/sensor:

 LightsSocketsHeatingsShuttersButtonsSensors     
      TempFloor TempHumidityPIR  
1L011S011H111R111B111ST111SF111SH111SP111  
2L012S012H121R131B112ST121SF121SH121SP121  
3L013S013H131R132B121ST131SF131SH131SP131  
4L014S014H151R141B122ST141SF151SH141SP141  
5L021S015H152R151B131ST151SF152SH151SP151  
6L022S016H201R152B132ST152SF201SH152SP152  
7L031S111H211R153B133ST161SF211SH161SP161  
8L041S121H221R154B134ST201SF221SH201SP201  
9L042S131H231R155B141ST211SF231SH211SP211  
10L043S141H241R211B142ST221SF241SH221SP221  
11L111S142 R221B151ST231 SH231SP231  
12L112S151 R231B152ST241 SH241SP241  
13L121S152 R241B153      
14L122S153  B154      
15L131S154  B155      
16L141S155  B156      
17L151S161  B157      
18L152S201  B158      
19L153S211  B159      
20L154S221  B160      
21L155S231  B161      
22L156S241  B162      
23L161   B201      
24L201   B202      
25L211   B211      
26L212   B212      
27L221   B213      
28L231   B214      
29L241   B221      
30    B222      
31    B223      
32    B224      
33    B231      
34    B232      
35    B233      
36    B234      
37    B241      
38    B242      
39    B243      
40    B244      
Sum292210134012101212Total160
 Arduino1 (PA1)

 
Arduino2 (PA2)Arduino3 (PA3)Arduino4 (PA4)       

 

 

Wiring scheme

The diagram of the low-current switchboard for this model house is as follows. In this case, a separate switchboard with a size (in x w x h) of 1200x800x300 mm and 6 to 7 DIN levels with a spacing of 150mm is recommended. Cable perforated plastic U are suitable to be installed between DIN strips.

 

Note: The low-current part in this case does not contain an installation relay. These are located in the high-current installation and only the control cables of switching coils are pulled into the low-current switchboard.

 

 

 

 

Features

Well, what will our model house be able to do after this tutorial?

 

 

FeatureNote
Control 29 lights circuitsSwitch on/off of 230V circuit without dimmer, we recommend wireless devices for dimming if neccessary - Zigbee, Zwave, Shelly, etc. 
 
Control 22 socket circuitsWhy? We can turn off power in all circuits after we leave the house -> children's room, washing machine, iron, oven, etc..Advantage of maximum consumption logic in connection with PV panels.
Control 10 heating zonesDirect switching of electric heating (heating cables, electric radiators) or opening/closing of heating valves for the given zone. Logic of temperature control based on values from the room temperature sensor + possibly in combination with floor temp sensor.

 
Control 13 blinds/shuttersDirect motor control with up/down/stop through multi phase cable. Rotation function of blades (open, close). Group control. Connection to weather station. Can be extended with various rules according to time of the year, forecast, etc.

 
Control 40 buttonsClassic 230V buttons (not switches). Tested for Hager/Berker (2 and 4 buttons). Connection via UTP cable. Safe voltage 5V to ground (GND).

 
Monitor room temperature 12 xWe are using combined sensor DHT22 + PIR HC-SR501. Any Arduino compatible solution or MQTT sensors can be used as well as Z-Wave, Zigbee.

 
Monitor room humidity 12 xWe are using combined sensor DHT22 + PIR HC-SR501. Any Arduino compatible solution or MQTT sensors can be used as well as Z-Wave, Zigbee.
Monitor motion in room 12xWe are using combined sensor DHT22 + PIR HC-SR501. Any Arduino compatible solution or MQTT sensors can be used as well as Z-Wave, Zigbee.
Monitor floor temperature 10xSolution with water-resistant sensor DS18B20 directly connected to UTP and the to Arduino pins.

 
Alarm12 motion sensors primarily used to control the lights (hallways, bathroom, pantry, etc.) are switched to security mode at the time of leaving the house with immediate notification (email, telegram)

 
Optional extensions:
Tags

Add new comment

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.