Water leakage protection based on the Smart Home Plugmee system
"Technique will reach such perfection that a person can do without himself."
Stanislav Jerzy Lec
Part one. Leakage control
I will say right away, I am not good at electronics and photography. Therefore, all schemes and photos are made “on the knee”. But with a soul.
At first it was ...
The desire to translate into reality the smart home has always soared somewhere nearby. But all the solutions out of the box, presented on the market "heavenly", seemed flawed. Others frightened off the price. And now, a few years ago, I had the opportunity to realize what I wanted to the full and for how much strength I have. The combination of programming, artificial intelligence and a piece of iron still make the heart beat a little faster. Smart home Plugmee fully implemented my need for programming and managing hardware. We didn’t have to wield a soldering iron, the whole system works by radio. ')
purpose
The first time I was faced with the consequences of a water “element” on the part of the victim without the ability to influence the situation, watching water dripping from the ceiling. Then there were breaks of household filter connections after night pressure surges, siphon leaks under sinks and bathrooms, constant attempts of the washing machine to rebel and to capture the world with foam. But now I learned to control what happens in my house.
The main component, an electric ball valve, is installed on the cold water inlet to the apartment. It is powered by a 12V power supply that connects to the main wires. To close the valve, the third control wire must be connected to the zero phase. When the control wire is disconnected from “zero”, the tap will open.
The power supply unit on 12V 2A will be permanently connected to the 220V network and connected to the electric crane. The zero phase is connected via controlled relay contacts to the control wire of an electric crane. A radio outlet will also be connected to the 220V network, which, on a signal from the controller, will supply power to the additional 12V 0.5A power supply unit that controls the relay.
So let's get started
The basic control component of my system is a radio controlled socket. You can buy it on Chinese websites, in supermarkets of electronics or construction. I bought mine in the "Epicenter". With them in the kit was a universal control panel that is suitable for all other outlets that will be in the house.
But to use the outlet to control the tap in this form would be unprofessional. An external outlet on the wall in the bathroom, into which a radio outlet is inserted, from which a tee with two power supplies protrudes, does not meet the safety requirements! I want my system to work even if a bucket of water is poured from above. To do this, it must meet (at least) the level of protection IP44.
We disassemble the radio outlet and pull out the control board:
We apply the same vandalism to power supplies:
Now only constructive, I promise. A new house for our devices will be a waterproof building wiring box. It will contain all connections and contacts. Boxes of this type can withstand quite serious conditions. If you collect everything correctly, of course.
Spend a little time re-soldering wires on all boards. This will allow us to conveniently and securely connect all devices to each other.
After that we collect the boards according to the scheme and put them in the box.
To fix the boards in the box, I used a thermo-gun. Keeps well, but at any time you can easily disconnect any component.
Using a punch and screws, fasten the box to the wall:
We start the wire from the electric crane in the box:
We connect to the necessary Wago terminals. Once again, we visually check the correctness and reliability of the connection of all system components. After that, you can connect 220V and close the box.
At the control of the leakage there will be such a Chinese sensor:
There are a large number of versions of such sensors. At the price they too can differ essentially. The Plugmee system requires devices operating at 433.92 MHz. I found 4 on aliexpress for $ 12. I liked these sensors by the presence of a contact board (many simply have two wires sticking out) and an LED indication of battery discharge.
Leakage sensors will be placed in areas of increased risk of an uncontrolled flow of water. To begin, I decided to put 3 sensors:
1. Near the reverse osmosis system, under the sink. There he will be able to control several points at once, including the drain of the dishwasher.
2. In the bathroom, in the cabinet of the riser, where there are filters and pass all the pipes.
3. Next to the sink and washing machine.
In the future, I plan to put a few more sensors: next to the shower tray tray and behind the suspended ceiling, in the place where the floor slab joints, from where the neighboring water was dripping. But this is the next batch of sensors.
Let's move on to the program part.
As you already understood, I will use the Plugmee platform for device management. To work with various sensors and devices, the system contains quite convenient components in the form of a web panel, a list of devices and a rule. This time I will not dwell on the web panel, but I would like to tell you in more detail about the rules and the list of devices.
Choosing on the tab “Devices” we get to the page where all sensors and devices connected to the system are displayed. Also here you can see and change their status, delete, rename or add a new device.
The rules offer automation of the entire system. They are of three types: event, in schedule, or in value. Event rules will instantly respond to device status changes. For example, the triggering of the leakage sensor and, as a result, the overlapping of water, the activation of the motion sensor and the activation of the siren.
According to the schedule, it is possible to program switching on the nightlight for a child every day at 23-00 and switching off in the morning at 7-00, or any other event for a certain date or time, with repetitions of time or not. Turn on the heater when the air temperature falls below a certain value will help the rules in value.
Add devices to the system:
There is! You can test the performance of the siren and the outlet "without departing from the cash register." The crane closes long enough. Full closure occurs in 15 seconds. Someone can say that during this time enough water will flow out and be right. But the main distinguishing feature of the crane from the valves is the independence of the installed position from the power supply. In other words, if the crane is closed and something happens with the power supply (for example, a fault has occurred and the machine has triggered), then it will retain its state. The valve, however, with the loss of power can go to the "default settings".
You can use a normally-closed valve. But in this case it will be difficult to take a bath if for some reason the lights are turned off (it happens sometimes). Or then you need to think about the UPS for the valve ...
Next, create a "Rules" that will handle events from the sensors and control devices.
Translated into an understandable language, this Rule will sound like this: if the sensor “leakage kitchen” reports activation, then it is necessary: ​​turn on the device “socket valve bath”; turn on the device “siren”; send SMS to the user number; send a notification to the user's phone.
All is ready! It's time to start the trials.
I wonder how the system will respond to a real leak. I did not have time to install the sensor for the machine in its place. With him and check.
Total
I like what happened: compact, neat and quite budget. It's good that only cold water comes into my apartment, otherwise I would have to duplicate all the components. It is also a pity that while making repairs I did not put the (electro) tap on the common riser. In the case of emergency would not have to run into the basement and cut off the common pipe. And in some cases it is impossible to do. And the overlap of the riser is sometimes the only chance to influence the situation, even though it is not entirely legal.