📜 ⬆️ ⬇️

Smart home from amateur or HomeMatic & Co

In this story, I would like to describe my own experience in the field of home automation at the amateur level. In my experiments, I came across quite easy-to-use HomeMatic and X10 systems, the use of which I would like to touch on here.
In the news, there are often messages that you can control a teapot or a Christmas garland from an iPhone (and necessarily from an iPhone, otherwise the news will not be understood by the masses). At the same time, I get indignant every time: why do people react so violently to such messages? After all, there have long been solutions that allow it to be done. At the same time, manage your home from any browser, and yes ... from your iPhone too!


Webfront

Instead of intro


Penny - “Here's a question: Why?”
Guys - “Because we can.”
Big Bang Theory, Season 1, Episode 9

I in no way do not advertise the equipment described here and do not impose its use. I will not describe in detail all the solutions I have implemented, since each solution will be the size of this article, and will focus on automation capabilities and scenarios. I hope that the facts and thoughts presented here will push someone to new solutions and interesting ideas that (I believe) will also be described on this Internet resource.

Lyrical digression


Since childhood (9 years old) they are fanatels for robots and later, “as a result,” for computer technologies. The choice of a specialty (2204 - who knows who needs it) was also determined by the same interests, and the choice happened in the same 10-11 years.
Later, from the time of the university, it became increasingly wondering: Why is everything so convenient in the car: the lights and music turn on and off themselves when entering or leaving the car, the doors (and everything) and the windows open and close by pressing a button; and in the house you have to do everything with handles: turn the door on and off, turn on and off the lights on the stairs and in the “hallway”?
After all, if it was done in the car, and in large quantities, then why are people still “tormented” with stupid keys and switches in apartments and houses? I will make a reservation that we are not talking about the domestic auto-prome of that time.
Since then, I gradually came to the idea of ​​a smart home and in the end realized something, which I want to share.
')

Part One, Short - X10


For a start, it was necessary to acquire the most important, it is - ... right - home. In my case it was a 2-bedroom, not fully renovated, apartment.
Before moving and before pasting the wallpaper, I spent all the necessary (what I could think of) wires: zero to the switches, wires in the walls for the lamps and for blinds on the windows, ethernet cables and audio / video wires from the intended place of the computer to the intended place of the TV ( I will say in advance that for 6 years he never appeared there and did not appear in the apartment at all).
Already by that time I knew that I would use X10. At that time, the choice, as such, was not (for no tire solutions) and I was limited in cost.



I will briefly describe the principle of operation of this “very old” system: Commands are transmitted via electrical wiring at a speed of 50 bits per second. Commands are not confirmed and, as a result, are not repeated if the transfer failed. There is a possibility of wireless communication for some devices at a frequency of 310 MHz (for example, a wall switch can send a signal to a wireless gateway, which translates this signal into a wired one). Each device has an address consisting of a letter from A to P and a number from 1 to 16 (total of a maximum of 256 unique addresses). All wired devices require a phase and zero. Wall switches send a command with an address, and an actuator with the same set address receives this command. Moreover, you can assign the same address to different devices and then by pressing one button you can control several devices and turn on, for example, a desk lamp and a wall lamp together.
Read more in Wikipedia .


X10 plug-in controller

The purchase and installation of the first batch took a year.

What I got:



An example of the interface of the ActiveHome program used to work with X10

The system with a grief in half worked and hardly passed the Wife Acceptence Test remained in the apartment.
I was unhappy with the quality of the wiring connection, the slowness of the commands and the inconvenience of programming. But as long as it was possible to turn on the lamp locally or open the blinds, I tolerated and reconciled myself with all the "convenient" inconveniences.


Blind controller X10 built into a standard outlet

Problems I encountered using X10:


Well, some other disadvantages, which I may have already forgotten.


Web Interface on X10. Blue shows where something can be turned on or off.

I developed this system over the next 5 years and it gradually overgrown with an analog light sensor for closing the blinds, a web interface, IR control of an audio amplifier, opening apartment and access doors and other trifles.

Part Two - HomeMatic


All the time after starting to use the system, I was continuously looking for a new, better system. 2 years before buying a new apartment, I already knew what I would build in the next apartment / house. Having compared all the possible options (time, thank God, there was a car and a small truck), the choice fell on HomeMatic.


CCU1 - Central Controller for HomeMatic

There are many (mostly non-Russian) articles on this topic on the web, but I will tell you briefly what I was guided by when choosing. I dismounted the systems based on the EIB / KNX bus right away, since only one tire would cost me 10 thousand euros. Accordingly, there remained only wireless solutions and systems that communicate on wiring.
I chose from HomeMatic and FS20 from ELV , EnOcean , XControl from Möller (now EATON ) and Control4 / ZigBee . I also did not consider systems with electrical wiring, since Namayal with the previous system.

Control4 was dropped due to the “dampness” of the protocol and the system as a whole. Devices with this protocol could find units. Yes, and those that were worth a little expensive.

Controller of light control from Control4

Wall-mounted wireless switch from Control4

EnOcean was attractive because the wall switches did not need batteries. They extract energy using the piezo effect when the button is pressed. But at that time there was no control computer, or I just did not find it. I'll run ahead and let you know that you can use EnOcean in HomeMatic using a special adapter.


The EnOcean switch is one-on-one with HomeMatic switches.

FS20 is the predecessor of HomeMatic and there was no channel encryption. And the design of the switches was, as they say, not a fountain.


FS20 Wireless Wall Switch Example - Updated Design

There were HomeMatic (later simply HM) and XControl.

The advantages of XControl were that the switches were design compatible with many firms (Gira, Jung, Siemens, ...), and the HM switches only with PEHA Aura. My design is not the best for my wife , but an order of magnitude better than the X10.


Climate Control by XControl is beautiful but expensive

The decision was made after visiting the Light & Building exhibition in Frankfurt, where the controller (Gateway) for XContol for 1500 Euros was also presented. The same functionality Gateway from HM then cost 500 Euro. After a month, its price dropped to 180, which further strengthened me in the correctness of the chosen solution.

HomeMatic Basics

HomeMatic Basics


Free translation of the original article from the German language.

HomeMatic is produced by the German company eQ-3. Historically, HomeMatic is the heir to the FS 20 system, which is produced by the same company, but has very little in common with the new system. For example, HomeMatic uses the bidirectional BidCoS protocol, which is completely incompatible with the FS20.
Mostly, HomeMatic components use a wireless connection, although the most important ones are also available in a “wired” version. Wired components use RS485 bus. For the same bus is and their power.

There are various form factor components:
  • for embedding in sockets / walls (flush),
  • component for a normal outlet / adapter (wireless only),
  • for external embedding,
  • as well as for use in electrical panel (only wire version).

The heart of the system is the central controller CCU1, which has numerous management capabilities. Programming takes place through a Web browser, which allows you to implement complex scenarios.
The use of wired components is possible only with the use of CCU1, while the wireless components can be directly interconnected.
The solution with direct connection of devices with each other does not have significant advantages compared to cheap “radio” switches available on the market. The benefit comes only with the use of a CCU1 or USB adapter for the PC. With their help, you can implement almost every imaginable scenario.

The system can be gradually increased, by purchasing more and more new components. Currently, devices are available for use in the following areas: remote controls and buttons, switches and dimmers, alarms, weather stations and climate control, as well as control of door locks and opening window leaves.
From the day the system started production (2007), a fairly large community was formed, which created and wrote many add-ons for the system, such as Telnet and FTP, Android and iPhone applications, email sending and pairing with other systems: FS20 and EnOcean.
HomeMatic is also recognized by other commercial firms producing home automation software: IP-Symcon , homeputer or ebrixx .



Training


Because a new apartment was being built for another half a year, I had time to prepare and plan. The first step was to check: is there a zero in the switches. But, fortunately, it became the standard and zero and earth were held in absolutely all switches. The developer did not anticipate the Ethernet network in the apartment (now, after 3 years, it has also become almost standard), and having agreed with the foreman, I spent 7 lines and 14 outlets in the future apartment myself on the weekend. It was necessary to act very quickly, because 2 weeks after the purchase, the floors would be poured and this would be impossible). By the end of the second day, I was so exhausted that I was ready to give these 700 euros to the builders, so that I myself would not send these cables.
There was no hope for a wireless connection (and not in vain), since I was working on the development of a wireless access point and knew what a wireless connection was capable of (or rather could not). Even now, at 801.11n, I can’t see the HD movie sans wire *. Maybe 801.11ac will be better.

At this training in the apartment is over, because I decided not to overpay to the developer for electric blinds and hoped to bring the wiring to the blinds motors later.

Began planning. I defined for myself 4 main stages of automation:
  1. Shine
  2. Jalousie
  3. Heating
  4. Bring all controls to the wall panel in the hallway.

and began to think through possible scenarios, read the documentation and save money.

I sold my old apartment to a Croat whose hands grew from the right place. I didn’t even bother removing the X10 equipment from the apartment just by throwing all this rubbish to pieces. I must give credit to the Croat - he never called me again. From which we can conclude: either the X10 is still working, or it threw everything into a landfill, because even it is impossible to reprogram the time for raising the blinds without special software and knowledge (which the truck driver could not have).

After everything was done in the new apartment (something more important than automation), for example, 2 mirror cabinets with a total length of 7 meters, I purchased the first batch of HM switches for one room.


PEHA Aura Switch Design

Having built them in, I made sure that everything works as I want, only the native sockets are different in design from the new switches. It was decided to change all the sockets too, because they didn’t cost much, and I was fed up with amateur solutions.


Old JUNG CD500 outlet design

New PEHA Aura outlet design

Over time, I changed all 40 sockets and 15 different TV / Ethernet / Phone sockets. I had to completely change the entire outlet, because a simple change of overhead panels could not be avoided due to the incompatibility of the add ones. But, as a bonus, I received protection from children (which I now have two) built into the socket.
Blinds in the bedrooms have to be closed anyway, although the floor has become the second, because under the windows is a lantern that shines all night.


KeyMatic


Office lighting in the kitchen

Programming took place through the Web interface of the CCU1 control unit and was (and still is) quite bearable. You just need to click on the browser and the rule is ready.


Web-interface of the software window

To create a script, do the following:

But I found that I could not build a beautiful “Web-Front-End” on this base.


WebFront built into HomeMatic CCU

I had to implement a Web Server for management based on NAS Qnap TS-110 (it runs Lunix with Apache and MySQL), which by that time was registered in my apartment under the guise of a media server and just a document repository.
Online, I found FrontEnd in PHP + JavaScript from some student and filed it for myself. The solution was good and it still works.

As described above, it is possible to connect some components via RS-485, but I was not interested.
On the CCU1, there are two USB ports in which you can plug in additional adapters:

I use only EnOcean adapter. But EnOcean switches produce a rather loud click (piezo effect) when pressed and cannot be placed in the bedroom, for example. Although the idea itself: do not change the batteries; very good.

Gradually, I added all new and new rooms and components and only recently completed the 1st and 2nd stages completely, and the 3rd and 4th half. There are quite a few different components from which I built the following (about 80 different devices):


As well as the following non-HM components with the ability to control via WebFront:


Such a wall switch seemed interesting here:

OLED Multiswitcher. Can control up to 10 devices. Left / right device selection, up / down commands
But in practice, it was not very convenient to use it, because in normal condition, the display is turned off (to save energy) and to turn on the first device you need to press 2 times: the display will turn on the first time and the command will be executed only the second time. To enable the other 9 devices, you need to scroll left or right and this is a very long story. To enable the fifth programmed device, it takes 6 seconds and an annoying click.


Device communication diagram

At the moment, I have about 30 programs (scenarios) spinning on the controller. Here are some of them:

Due to the two-directional communication, the web-page displays the status of all windows, lamps and blinds, as well as the temperature and humidity in each room and overboard from two sides. I reset the temperature to QNAP in MySql and build daily graphs with JpGraph .


Daily Temperature Chart

This is how the Web Interface looked like half a year ago. Now he has not changed much. On all devices, html does not slow down (HTC Desire, iPad, Windows PC) and only on the Galaxy Tab & Android animation slows down.

Web Interface on PC

The delay between the team and the response to the team is quite small. On other videos with professional solutions, the delay is no less.

Demonstration of delay between team and reaction

The following are planned for the future:



Disadvantages:


Security

You can think up a lot of paranoid scenarios about hacking the system, for example, how a hacker from China will play with light in an apartment, and a neighbor will intercept a radio command for the castle and enter the house.

On this account I have the following considerations:


Results


For 3 years and 5,000 euros I have home automation that almost satisfies me. These five thousand include a tablet for almost 600 euros and 10 motors for blinds for 140 euros each, as well as all LED lights (under the bed, under the cabinet, on the balcony under the parapet, on the cabinets, etc.). The price of the system is only half the cost of a bus (bus) without devices from a professional system. At the same time, I can control and monitor the house from any browser (and c Iphone too), which was one of my main goals. Home put up with my hobby and has already scored forgotten what happens in another.

* without wires

References:

Source: https://habr.com/ru/post/149716/


All Articles