
Once, long ago, when I got involved in the topic of electronics development, the market for "smart-house" devices was empty. Empty for me. I wanted to use the device at the same time, and quite inexpensive, and adequately functional. Cheap devices on the 433rd radio channel were not suitable for this because of their simplicity. They have no feedback, no encryption. You can easily listen to the control commands on the air and do any dirty tricks with “his” smart home. You can not be sure whether the device actually turned on as a result of the command sent. Everything else had an inadequate price tag.
Since then much water has flowed. Dimmer development never reached the final. It did not manage to eliminate all the problems with power supply - the wi-fi module is quite voracious and does not work stably enough in our switching circuit. While the development was sluggish, the market was filled with LED lamps, which were not dimmable for the most part. My understanding of the smart home has changed. It seems that the dimmer in its format, as I thought, is not very necessary. For the "smart home" should work itself, without switches. The dollar exchange rate has changed, which has complicated the development of any electronic project, and the development of a dimmer has complicated considerably. The device is not simple, its cost is high and it depends almost directly on the dollar. Therefore, the dimmer project is still on pause. Until better times. Or for good.
')
His decision was not all and was not, and the cottage was built. If in the apartment "smart home" is still more "rattle", then outside the city automation can make life much more comfortable. I regularly looked for possible solutions from other manufacturers. And I did not find everything. Until recently.

Unexpected find
Wandering once again on the network and deciding to go to the site ITEAD, I found a very interesting update of the range. Comrades began to produce low-cost, yes to be concealed - a penny (from $ 6 per module, $ 4.85 per share), a solution for managing power load. Ready, in the case, with an adequate switching scheme, with feedback, with control through a mobile application, both locally and through the cloud. Having wiped the drool from the desktop, I realized that the future was already here and finally there was a solution for automating my country house. Cheap and kind of not even angry at all.

Economy
I spent $ 32.71 on my first purchase. I took two modules just with Wi-Fi for $ 4.85 (for the stock, later the price tag will rise to $ 6) and two with an additional 433 MHz interface on board for $ 7.20 (later they promise to raise it to $ 9.50). Delivery China-Ekaterinburg cost $ 8.61, the total price tag for a parcel with delivery is $ 32.71.
In rubles, 2,605.01 RUB was written off the card, that is, the dollar was roughly 80 and the cost of the modules, including delivery in rubles, was 550 for a simple model and 750 for a filpersperse. With such pricing, if the manufacturer is not very temporary action, new modules - an absolute hit, which is unlikely to surpass anyone. More information about the functionality of the modules will be slightly lower.

Delivery
At first I tried to order delivery to the Chinese address of the warehouse, which I use. But the great and terrible PayPal said “nevermind,” they say only to Russia you can pay for the delivery from my card. If someone knows how to deal with this, please share in the comments or PM.
I paid the parcel on February 26th. She flew to me rather quickly, albeit with pickles, may Moscow readers forgive me. The fact is that a special terminal for such Chinese packages has already been built at the airport in Yekaterinburg quite a while ago. They say that they immediately flew to us, without wagging around our vast country. But, no, this joy so far only on paper, apparently, remains.
How the parcel flew02/29/2016 Received by Hong Kong Post
03/01/2016 Getting ready to ship from Hong Kong
03/02/2016 Departed from Hong Kong to the destination country
03/08/2016 10:24 Arrived on the territory of the Russian Federation Domodedovo AOFP
03/10/2016 11:26 Import MR LTs Vnukovo shop-1
03/10/2016 11:30 Transferred to customs MR LTS Vnukovo shop-1
03/10/2016 11:31 Released by customs MR LTS Vnukovo shop-1
03.11.2016 2:35 Left the place of international exchange MR LTs Vnukovo shop-1
03/14/2016 11:14 Dropped the sorting center Yekaterinburg MSC TSOPo
03/14/2016 2:31 PM Arrived at the place of delivery Yekaterinburg 109
03/15/2016 12:49 Presentation to the addressee of Yekaterinburg 109

What's inside?
A neat package contained four neat boxes with modules. I must say, the manufacturer is a little confused in the testimony. The senior module is called differently on the box (Sonoff Pro) and on the label of the device itself (Sonoff RF). It is also amusing to see on the site a photo of the module next to the remote control and a bright inscription here that “the remote control is not included in the kit”. Childhood disease positioning is not critical. The main thing is a high-quality device, but there is nothing to complain about.

Cardboard box. Fasteners included. High-quality plastic case. Neat PCB. More than a suitable form factor for home automation or country house. For an apartment, perhaps, the size is a bit too big. A bunch of photos will tell about the quality better than any words.









In this case, the manufacturer has where to strive. If you really look at and find fault with it, then you can note that the modules have differently produced control buttons and LEDs from the depth of the case. Of course, this is not critical.


How it works?
Very simple, convenient, affordable. On Android or Apple-smartphone, a proprietary application is installed. It is searched in the app store for the not very relevant name "eWeLink". I put only on android, and describe the behavior only on it, on iOS, the algorithm can be slightly different.
Run the application. We register in the system, indicating the phone number and the code that came by SMS. Click "Add a device". We include in the Sonoff network. Long press its single control button before it flashes quickly. The smartphone finds the module, offers to enter a name for it and specify the parameters of the wi-fi-network in which the module will work. All set up is over.
After that we have the ability to manage the device from the local wi-fi network. If we are not in it, and the local wi-fi-network is connected to the Internet, then the cloud will be used without any switching and additional settings. The application displays which switches are in contact, which are offline. Switches on the connection can be controlled by turning them on and off. The status of the switch on the screen changes only after the actual switching of the piece of iron. Feedback is and works.
The extended version of the module with the 433 MHz interface can be easily made friends with a cheap Chinese controller or PIR sensor. When the module state is switched from the 433 MHz interface, the module state in the application instantly changes. The same happens when the module is turned on and off locally by briefly pressing its control button.
All connected devices are displayed in the app. Devices can be shared between accounts. For example, you can reward your spouse with the opportunity to control some small piece of your smart home with her smartphone.
How to apply?
I purchased four modules for the implementation of the “minimum program” for the automation of my summer cottage. Modules with only wi-fi on board will control convectors in a waiting room and in a warm room at home. So I had the opportunity to include them in advance from the city, before leaving for the country. My dream is to come to the already warm heated rooms. Modules with an additional 433 MHz will be used to control the lighting on the site. I want to turn on the light from the car at the entrance to the site, I want to turn off the light near the bath from the house, so as not to walk in the dark. Additional radio interface will be needed for pairing with some cheap radio buttons. Convectors will be comfortable enough to control only through the application, the light on the street wants to be additionally able to turn on and off the real switches.
To properly connect these four modules, I bought a superbudget “smart home kit” consisting of: a) an old ASUS WL500Gp router with a burnt power supply (300 rubles), b) a new power supply for a router (100 rubles), c) 4G- a modem plugged into a USB router connector (400 rubles). Total 800 rubles, we add to them spent on modules 2600, it turns out 3400 rubles. For full control of four points via the Internet with feedback. I think it’s just not realistic to invent a budget solution. Even if you solder the modules yourself.
The system is assembled in test mode in my office, openwrt is set up, work with a real 1.5kW convector has been tested and will be installed in the country soon. Later, an arduinka with various useful sensors and a small web interface will be added to the router. In the series of posts about “Smart Cottage”, I will show that it has finally become possible to actually assemble a convenient, functional, inexpensive set of “smart home” from the available simple components.