Recently a new version of the MajorDoMo complex was released, about which there was a
review article on Habré, and I decided that it would be good to show with a live example how it works. Take the most ordinary weekday and see how the Smart House behaved in its course.

')
For starters, I will introduce you to Alice. Alice is a character who was invented so that communication with the Smart Home was, let's say, somewhat more humane. Alice's personality, if I may say so, is simple enough, but, nevertheless, my three-year-old son perceives her exactly as a person, endowing her with those human qualities that, of course, do not exist in reality, but are sometimes imitated successfully - for example , care, courtesy, frugality.
But back to our day ... So, a country house, a family of three, the beginning of the day.
00:51 Alice: I think no one is home ...
00:51 Alice: Although most likely everyone is sleeping :) The night is in fact!
00:51 Alice: Moving to economy mode
00:51 Alice: The temperature is higher than desired, I close the heating valve
For several wireless motion sensors, the house monitors the activity of the inhabitants and, after some time without it, comes to the conclusion that no one is at home, or everyone has fallen asleep :) This event initiates the scenario of switching off unnecessary consumers (now it is a hot water boiler and the associated circulating pump) and also changes the settings of the desired temperature in the house. The latter, in turn, causes the heating controller to cover the valve so as not to waste energy on unnecessary heating.

05:33 Alice: Internet is not available
05:38 Alice: Internet access is provided
Unfortunately, the Internet in my home is only 3G, so that failures sometimes happen. In night mode, this is just a record for the story and Alice does not announce such things to the whole house, although if there was some kind of emergency situation (for example, exceeding the permissible temperature in the heating circuit), then the notification would be at least spoken out loud.

06:30 Alice: Soon the hosts should wake up, warm up
06:30 Alice: Exit saving mode
06:30 Alice: Temperature is lower than desired, open the heating valve
At 6:30 there is a forced exit timer out of the economy mode - you need to take care of reaching a comfortable temperature in advance.
07:39 Alice: Motion detected.
07:39 Alice: Good morning!
07:39 Alice: Now 7 hours 39 minutes
07:39 Alice: I also remind you of the missed tasks. 1. Take out the trash.
The alarm clock rang, and the awakening was detected by a motion sensor in the corridor. In the bathroom I find out that, as usual, I forgot to take out the garbage yesterday. The music started playing — a random folder of favorites added to my media collection.
08:27 Alice: It should already be light ...
08:30 Alice: The temperature outside the window is 3.3 degrees Celsius. It seems to me rather cold. Sunrise today at 08:57, sunset at 16:54.
Morning bustle, breakfast, fees. In the meantime, we learn what is there on the street and how to dress a child. Passing through the corridor, I take a look at the terminal screen - a nameless Android tablet, constantly turned on and showing basic information about the state of home systems, the weather, the temperature of the house, and the events that occurred. The same information is available from any other device both at home and outside of it (the latter is locked with a password, of course). Honestly, even though it’s all always and affordable, I like it more when you don’t need to go anywhere - once the house has been called “smart”, then, be kind, somehow, as far as possible, cope.
Weather conditions, by the way, are monitored by such a weather station installed on the roof.

I had to tinker a bit to get the data from her into the system, but in the end, Alice acquired additional senses.

08:39 Alice: Attention! Open the entrance gate.
08:39 Alice: The gates will be closed after 1 minute
08:40 Alice: The gate is closed.
Time to work. We leave the house, start the car, open the home menu on the phone, select the item “Temporarily open the gate”, leave. For some time I’m standing next to the house, waiting for the gate to close - the automatic did not let down, but, as they say, "safe ..."
08:57 Alice: The sun comes up
09:00 Alice: It is now 9 o'clock
09:05 Alice: Sergey left home
10:46 Alice: Sergey drove to the office
Do you think you can get rid of the care of a caring Alice, leaving home? No matter how wrong! The phone periodically sends the owner's GPS coordinates to the home server and Alice watches someone where. When you exit or enter a certain hot-spot, an event is triggered, to which you can somehow react.

10:00 Alice: It is now 10 o'clock
10:16 Alice: I think no one is home ...
10:16 Alice: Moving to economy mode
10:16 Alice: The temperature is higher than desired, I close the heating valve
Alice discovers that she is left alone - why not economize a little while doing this. By the way, in the first month of the economy test, I paid 30% less for electricity, so it makes sense.
11:00 Alice: It is now 11 o'clock
12:00 Alice: It is now 12 o'clock
13:00 Alice: It is now 13 o'clock
In the afternoon, Alice entertains herself with accurate time signals :)
13:35 Alice: Attention! Open the entrance gate.
13:35 Alice: Attention! Opened entrance to the garage.
13:36 Alice: Driving in the garage.
13:40 Alice: Garage closed.
13:42 Alice: The gates are closed.
The usual episode - I sit at work, my wife's brother calls:
- Seryoga, I want to take you a lawnmower, will you open the garage?
- Yes, come, of course.
A few minutes later he calls and informs that he has arrived. I launch the “home” page from the working computer, I open the entrance gate, the garage through the menu. With the help of network cameras I see what is happening in the yard, in order to close everything later.

14:00 Alice: It is now 14 o'clock
15:00 Alice: It is now 15 o'clock
16:00 Alice: It is now 16 o'clock
16:54 Alice: The sun sets
17:00 Alice: It is now 5 pm
17:24 Alice: It should be dark outside ...
Dawn and dawn take time from the Internet, as well as other useful information. The Internet is a universal info-sensor.
17:30 Alice: Soon the hosts should come home from work, warm up
17:30 Alice: Exit saving mode
17:30 Alice: Temperature is lower than desired, open the heating valve
The same forced exit from economy mode, as well as early in the morning.
18:00 Alice: It is now 6 pm
18:14 Alice: Attention! Open the entrance gate.
18:15 Alice: Motion detected.
18:15 Alice: The gate is closed.
My wife and child usually return home before me. In passing, I notice this event by reading my Twitter feed, where I have Alice’s “friends” account (non-public, of course), where she regularly writes about all the events.
19:00 Alice: It is now 19 o'clock
19:32 Alice: Sergey left the office
19:55 Alice: Sergey is passing the shop "Neighbors"
19:55 Alice: I am switching to a waiting mode.
20:00 Alice: It is now 20 o'clock
20:00 Alice: I switch to night mode
20:03 Alice: Sergey passes the auto market
20:12 Alice: Sergey approaches the house
20:12 Alice: Automatic gate opening.
20:13 Alice: Attention! Open the entrance gate.
20:14 Alice: Sergey is already at home. The gate can be closed.
20:14 Alice: The gates are closed.
This is me coming home. First, passing several hot-spots, I got under the pattern of behavior described in the system and Alice herself put herself into the standby mode of my return. The latter implied an automatic opening of the entrance gate when I was approaching the house - a trifle, but terribly convenient, especially when you return on a motorcycle and to open the gate "manually" you have to tighten the gloves, look where you put the remote control from the gate drive this time. In addition, the system uniquely determined that it was I who arrived, since A constantly working bluetooth device scanner spotted my phone in the range of my MAC address and it was decided that the recently opened gate should be closed.
21:00 Alice: It is now 21 o'clock
22:00 Alice: It is now 10 pm
23:00 Alice: It is now 23 o'clock
23:30 Alice: Alice wishes you a good night. Do not forget to air the room before going to bed.
That's all. The day was not overshadowed by any emergency situations, all systems worked normally.
PS Taking this opportunity, I will tell you a bit about the news of the
MajorDoMo project, on the platform of which all of the above has been implemented.
First, as I have already mentioned, a new version of the system was released with a whole bunch of not major, but important changes and corrections. Despite the fact that the collected versions are rarely released (once every few months), the system is constantly updated, which can be monitored through
GitHub . In addition, the latest version has a built-in update mechanism that allows, if desired, to pull out all the freshest right from GitHub.
Secondly, and most importantly, a community is formed around the project - on the forum you can see how the system is being introduced to others, what devices are assembled (and how), problems that are being solved, experience in setting up and programming is being shared. The community is still small, but very active :)
Thirdly, for, let's say, educational and educational purposes, I have assembled a prototype of the Smart Apartment set. It consists of several basic modules, each of which in one form or another is described on the pages of the project.

Read more
here .
PPS You can consider advertising, but the following message is directly related to the project :) In one of the articles on Habré, I saw a mention of Nootech company - a Belarusian manufacturer of home automation devices. I had the opportunity to meet and talk with them, because they are located, just like me, in the city of Minsk. So, at the moment they have a
product line that allows to introduce basic automation of load and lighting control using wireless modules and remotes at home, but, as you understand, I am more interested in devices that can be integrated into the overall control environment of Smart Home and me I was very interested in the information that Nootekhnika is planning to release control devices for its modules using a USB stick attached to a computer. In general, I was assured that a prototype of this device will be released soon and I will be one of the first to receive it for testing :) So, if everything goes according to plan, soon another budget will be integrated into the project device for wireless lighting control.