Part 1- Model house and project

Pi-Home - Modelový inteligentní dům

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 Lxxx Sockets Sxxx Shutters/Blinds Rxxx
Heatings Hxxx Butons Bxxx PIR sensors SPxxx
Temperature senors STxxx Humidity sensors SHxxx Temperature floor sensors SFxxx

Pi-Home - Modelový příklad chytrého domu

Pi-Home - Modelový příklad inteligentního domuPi-Home - Modelový příklad chytrého domu 1.NP

Pi-Home - Modelový příklad inteligentního domu 1.NP

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:

Lights Sockets Heatings Shutters Buttons Sensors
Temp Floor Temp Humidity PIR
1 L011 S011 H111 R111 B111 ST111 SF111 SH111 SP111
2 L012 S012 H121 R131 B112 ST121 SF121 SH121 SP121
3 L013 S013 H131 R132 B121 ST131 SF131 SH131 SP131
4 L014 S014 H151 R141 B122 ST141 SF151 SH141 SP141
5 L021 S015 H152 R151 B131 ST151 SF152 SH151 SP151
6 L022 S016 H201 R152 B132 ST152 SF201 SH152 SP152
7 L031 S111 H211 R153 B133 ST161 SF211 SH161 SP161
8 L041 S121 H221 R154 B134 ST201 SF221 SH201 SP201
9 L042 S131 H231 R155 B141 ST211 SF231 SH211 SP211
10 L043 S141 H241 R211 B142 ST221 SF241 SH221 SP221
11 L111 S142 R221 B151 ST231 SH231 SP231
12 L112 S151 R231 B152 ST241 SH241 SP241
13 L121 S152 R241 B153
14 L122 S153 B154
15 L131 S154 B155
16 L141 S155 B156
17 L151 S161 B157
18 L152 S201 B158
19 L153 S211 B159
20 L154 S221 B160
21 L155 S231 B161
22 L156 S241 B162
23 L161 B201
24 L201 B202
25 L211 B211
26 L212 B212
27 L221 B213
28 L231 B214
29 L241 B221
30 B222
31 B223
32 B224
33 B231
34 B232
35 B233
36 B234
37 B241
38 B242
39 B243
40 B244
Sum 29 22 10 13 40 12 10 12 12 Total 160
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.

Poznámka: 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.

PiHome - Model House Wiring Scheme

Features

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

Funkce Poznámka
Control 29 lights circuits Switch on/off of 230V circuit without dimmer, we recommend wireless devices for dimming if neccessary - Zigbee, Zwave, Shelly, etc.
Control 22 socket circuits Why? 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 zones Direct 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/shutters Direct 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 buttons Classic 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 x We 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 x We 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 12x We 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 10x Solution with water-resistant sensor DS18B20 directly connected to UTP and the to Arduino pins.

Alarm 12 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:

Add comment

Nejlepší články z blogu

MikroTik - Winbox, DHCP, Ranges
Basics - Winbox, DHCPRating: 
72%

In this series, we will look at the step-by-step setup of MikroTik devices for home users or a small business (up to 25 people). In the first article, we will focus on the initial setup - we will download Winbox and set up DHCP for the primary network and guest network. Similarly, we will also adjust the WiFi settings.

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

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.

NFC Tag Example in Smart Home
NFC tags in smart homeRating: 
80%

NFC (Near Field Communication) tags are small plastic or paper stickers that can be used to automate various functions in the smart home. In this article, we will show you examples of use and a guide on how to write an action on an NFC tag using a mobile phone.

WireGuard iOS
WireGuard on iOS devicesRating: 
85%

In this article, you will find a detailed guide on how to connect to WireGuard VPN from iOS.

WireGuard on Android device
WireGuard on Android devicesRating: 
0%

In this article, you will find a detailed guide on how to connect to WireGuard VPN from Android.

WireGuard on MikroTikRating: 
80%

This article describes the self setup of the WireGuard VPN protocol on MikroTik devices with RouterOS version 7 and higher. This phenomenal VPN is very fast, secure, and easily configurable in a home environment. It can be said that it is currently the best VPN for home use available.

Nilan VP18 vs OpenHABRating: 
67.2%

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.)

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

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.

Centrální tablet pro chytrý dům
Wall tablet to controll your smart homeRating: 
100%

Wall tablet or older smartphone is perfectly suited as a central indicator of the state of the home, as well as controlling it. It usually replaces the video doorbell and as example, you can play your favorite music or read recipes on it during cooking in your kitchen. In the article, we describe a functional example of such a "wall" tablet and its settings in so-called kiosk mode so, display doesn't run at night and only reacts when someone is nearby.

Jablotron and smarthome synchronization
Connecting Jablotron with OpenHABRating: 
80%

In this article we will show you how to install Jablotron binding in OpenHAB. This binding helps us to synchronize states from Jablotron alarm to OpenHAB. Typically, you can force to switch off lights, close water pipe and circulation, switch off sockets or whatever you want to do when you leave home and set alarm.