Today, when the pace of life is clearly beyond all reasonable limits, time and nerves are often the most valuable resources. We think that many readers didn’t have the most pleasant situations related to unforeseen events that cost both of them, but taking into account the broken plans, they could have a significant impact on the wallet. Since it is impossible to foresee and exclude everything, it is worth trying to minimize the negative impact as much as possible.
And help us achieve this will help not subject to moods and accidents (at least, I want to think so) automation. There are situations in life when you need to be sure that everything is in order at home, water does not flood neighbors, the stove is turned off in the kitchen, and children do not play with matches.

')
Similar tasks of organizing a fire alarm, detecting water leaks and other emergencies today arise both in private houses and apartments. Of course, these solutions cannot be considered binding, but in certain situations it is difficult to manage without them. For example, if we are talking about objects that are often left unattended or elderly relatives. Note that in this case we are not talking about the decision certified by the relevant services, but only about an autonomous personal system. However, in some cases it is possible to integrate it into solutions of a higher level, for example, common in a village or an apartment building.
The traditional solution to these problems is the use of wired sensors and a ready-made alarm unit. Depending on the latter, you can count on the light and sound indication of events, sending SMS to predefined numbers and other actions pre-programmed in the device.
Implementing a solution with a universal home automation controller based on the Z-Wave protocol in this case has the following advantages:
- integration of sensors into a single system;
- the use of multifunction sensors;
- flexible equipment settings, event handling and modes;
- wireless connection;
- scalability while preserving the individuality of each sensor.
However, all this is implemented only with the controller, the cost of which is quite large. But we must understand that a single universal automation controller is capable of simultaneously solving many other tasks, and also provides almost unlimited possibilities for expanding the system and creating rules of any complexity. So the budget estimate of a single scenario is impossible. In many cases, you can link traditional blocks, but over time, you may want to somehow simplify the scheme and add flexibility to it, which is easily realized on the basis of a single controller. So, it is worth making the decision on the implementation of such an automation system with the expectation of further developing the system and increasing the number of tasks to be solved.

Recall briefly what features Z-Wave protocol has for home automation. Its main characteristic is the use of wireless communication and the implementation of the cellular topology, which simplifies installation in rooms that are already used and allows you to significantly expand the coverage area. The second significant moment directly related to automation systems is the certification of devices and their profiles. This means that in most cases you get full out-of-box interoperability between sensors, actuators and controllers. Well and the huge choice of the equipment of this standard is important. In fact, the only thing you need to pay attention to when buying is to support the Russian frequency range. We will also write in the pluses economical modes of operation on autonomous power and support for encryption. For the scenario under consideration, the possibility of direct communication between sensors and actuators without the participation of a controller is also important.
In particular, in the catalog of one of the most well-known manufacturers of Z-Wave equipment - Fibaro - you can find the Smoke Sensor smoke sensor and the Flood Sensor leak sensor. Note that in the domestic market there are other models of sensors, in particular, Everspring Flood Detector and Vision Security Smoke Sensor.
Another interesting option in the case of traditional wired sensors is the installation of a Fibaro Universal Sensor device, which has two digital inputs and two digital outputs. And of course, the described system can be easily expanded with any other Z-Wave sensors.
Fibaro Smoke Sensor
The device has an attractive round body made of strong white heat-resistant plastic with a metal grid on the end. Overall dimensions are - diameter 65 mm, height 28 mm. To install the device has a removable cover that can be securely mounted on any surface. After that, the main part of the sensor snaps on it.
Under the cover is the battery - the battery CR123A, which, according to the manufacturer, is enough for up to three years. Note that the sensor reports the battery status to the controller, so you will receive a message in time if its charge level decreases. There is also a block for additional wired connection - power supply (12 or 24 V), alarm output and burglary output. So if necessary, you can use this sensor for a standard wired alarm system, setting it in place of a normal one. At the same time, the device will report emergency situations both via Z-Wave and by wire.

In addition, the sensor provides a LED and even a built-in siren, which is enough for a small apartment. Note that they can also be used to report on the unavailability of the Z-Wave network and decrease the battery charge.
Additionally, the device can be used as a temperature sensor. At the same time, a special mode of detecting its sharp growth is also provided, which makes it possible to detect a fire even in the absence of smoke, which reduces dependence on the types of burning materials.

The sensor has a built-in self-diagnostic function, as well as a black box mode, when the smoke and temperature sensor readings are recorded in the built-in log (there is enough space for about a day). In the future, you can see them through the controller interface.

Among the user-configurable parameters, we note the choice of the level of sensitivity, sound and light trigger signals, the type of Z-Wave network messages, the setting of the temperature sensor and others (the total is about two dozen). When choosing a location for the sensor, you can use the built-in Z-Wave network signal quality control system using the button and the LED on the top panel.
Fibaro Flood Sensor
This sensor looks like white glossy pebbles. The case diameter is 71 mm, and the height is about three centimeters. To determine the leakage, three spring-loaded metal legs are used, on which the device rests. Interestingly, they are covered with 24-carat gold. Also at the bottom you can see the hole of the built-in piezo emitter and three standard plastic legs. It is assumed that you simply put this sensor on the floor of a bathroom or other room. The possibility of multiple use of the device is claimed - thanks to the special design of the housing, electronic components do not suffer during leakage. The design here is certainly wonderful, but for business premises it is probably better to use something simpler.
In addition to the built-in temperature sensor, the device is equipped with a tilt sensor, which is triggered if someone, such as a child, tries to move it to another place. By the way, the possibility of measuring the temperature can be used to implement the "warm floor" system. Just add the relay and program the schedule on the controller.

On the top removable cover there is an invisible LED in the inactive state. It is used both to indicate the sensor triggering and can be configured to display the temperature output outside the limits specified in the parameters. You can also use it to check the quality of the coverage of the Z-Wave network at the installation site.

Power is supplied from the CR123A battery, which lasts for up to two and a half years, or by applying a constant voltage of 12 or 24 V to the inner shoe. On it you can find contacts for connecting to wired alarm systems and the implementation of an additional leakage sensor, which, for example, can be installed where this device does not fit in height. Note that the external sensor works parallel to the standard one and there are no differences between them from the program point of view. There is also a button under the cover, which is used to connect to the Z-Wave network and as a case opening sensor.

In the device settings, you can select the type of alarm, the mode of sending Z-Wave messages, the operating parameters of the temperature sensor and several other options.
Installation and Setup
Sensors can work with any Z-Wave controller, but they can be most effectively and conveniently used with products of the same manufacturer - Home Center Lite and Home Center 2. The point here is that, despite the profiles prescribed in the standard, devices can have (and usually have a lot of additional work parameters. To configure them, you can use the standard for Z-Wave controllers setting the value by the parameter number. But Fibaro controllers automatically determine the models of familiar devices and provide the user with the ability to change the necessary parameters through the usual simple Web-interface, all of which are also provided with descriptions. However, in most cases, you will not have to change anything.
To integrate devices into the network, it is enough to enable the search mode on the controller and repeatedly press the button on the sensor. According to the controller message log, you can check that the connection was successful.
After selecting the location of the sensors, it is recommended to check the quality of the Z-Wave network with built-in tools. The formal range of work in the room is declared at the level of 30 meters, but it significantly depends on environmental conditions. Recall that the Z-Wave network operates on the structure of cells, in which devices with constant power (for example, controlled sockets or dimmers) are usually able to act as repeaters of the signal to the controller. So in most cases there will be no problems with the availability of sensors.

After that, you will need to prescribe convenient names for the sensors and distribute them into rooms. Next, in the notification panel, you create message templates and bind them to the necessary sensors. At this stage, it is already possible to say that the task of sending notifications to a corporate client in a mobile device and by e-mail when sensors are triggered has been solved.

Note that in order to send an e-mail, it is enough just to specify the address in the Home Center user options. No servers need to be configured. Moreover, if the system has several user accounts programmed, you can choose which of them will need to send messages. Similarly, you can select and use smartphones and tablets for push notifications.
Note that here it is assumed that the controller has constant access to the Internet, which today is not a difficult or expensive task. In particular, you can use a multifunctional router with a wired connection and reserve via a cellular modem.
SMS messages from Fibaro, like most other systems, are paid. And besides, the standard system does not work for Russian numbers. But thanks to the flexible programming capabilities of the controller, you can always use alternative gates. For example, you can use the service SMS.ru.

Full LUA codelocal telefon_number="7" local your_ID = "---" local your_text = "- ..." HC2=Net.FHttp("sms.ru") response = HC2:GET("/sms/send?api_id="..your_ID.."&to="..telefon_number.."&text="..your_text) local code = string.sub (response,1 ,3) if(code=="100") then fibaro:log("SMS ") else fibaro:log(". "..code..". .") end
Script support will also be useful for implementing automatic event processing scripts. For example, if a leak is detected, you can close the water supply, and in the event of a fire, turn off electrical appliances and activate the fire extinguishing system in the right room. Not to mention the wide possibilities of light and sound alarm.

Full LUA code local myVariable myVariable = fibaro:getValue(20, 'value') fibaro:debug('value = ' .. myVariable) if (myVariable == '1') then fibaro:call(32,"turnOn") fibaro:sleep(3000) fibaro:call(32,"turnOff") end
In addition, you can provide various modes of operation and schedules. For example, use different message channels for the options “home”, “not home” and “on vacation”.
Conclusion
To implement scenarios for signaling a fire or water leakage, there are many solutions on the market today. Most of the autonomous “boxed” variants have limited capabilities both in terms of sensor connection and in event handling.
A home automation system based on a universal controller with support for Z-Wave technology greatly benefits them in terms of ease of installation, configuration and configuration flexibility, and implementation of emergency response algorithms. Of course, only for these scenarios to use it is strange, but if it comes to building a comfortable and efficient smart home, this option seems to be optimal. And do not forget that you will have the opportunity to implement your own work algorithms and create a unique project, not to mention programming, design and setting up the interaction of everything with everything.
You can purchase the entire line of Z-Wave from our partners
5 smart , which until March 8 of this year will give 5% on the discount coupon
GT_Z-Wave .