Smart home, building experience, rake run (MajorDomo, Tasmota and Alice)

I decided to generalize and systematize the accumulated experience in creating a smart home. It all started with controlling the sockets (light) at the dacha - if you left and forgot to turn off the light, you can turn it off via the Internet and sleep peacefully. Then there was a power limitation and a desire to automatically respond to excess power by disconnecting unimportant consumers such as a kettle. Well, then it's already difficult to stop. Climate, autonomous supply, comfortable light and all this without investing a lot of money, although if you count everything ..





If you know the theory, you can go to my story of finding the perfect solution.





NB! Also for convenience, I highlighted the names of technologies and platforms in bold italics. And simply in bold - important observations or identified global ambushes.





Well, now in order, a little theory

It is customary to call a smart home anything, from 2 timer-controlled bulbs to a complex system that responds to many factors and makes the owner's life comfortable.





  • In any case, we are talking about managing devices, briefly they can be collected into groups:





  • Household appliances (vacuum cleaners, TVs, kettles, air conditioners)





  • Relays / switches (on / off)





  • Bulbs / strips (change color and brightness)





  • Sensors (power, voltage, temperature, humidity, gas concentration)





  • Dimmers (proportional output signal)





  • Actuators (temperature controllers, curtain drives)





  • (, )





. , , . :





  •   - , ,





  •  Xiaomi (Aqara) โ€“





  • Google Home โ€“ ,





  • Domoticz โ€“ ,





  • IFTTT - ,





  • HomeAssistant - , ,





  • Majordomo (php) - , , , .





, . , . , 2 : .





( ), (Bluetooth, ZigBee) ( ).





ยซยป , , () mqtt ( ) web-hook ( - ) Xioami/Redmond , .





โ€“ , ? / . , Aqara , ZigBee , โ€“ .





, . ยซ ยป . โ€“ !





, . โ€“ , , .





, ARM , OrangePi, Nano Pi , -. Raspberry โ€“ , .





: Blynk ( ), IFTTT ( , ), Home Assistant, Domotics, Majordomo.





, 6 SonOff ( โ€“ eWeLink), . Xiaomi Dafang ( , PTZ, FullHD, 2 ). (), . Xiaomi. , 2 โ€“ Xiaomi + eWeLink. . HomeAssistant, ( ). , , . SonOff . , - , MajorDomo, , - (, , php+html, - ).





โ€“ () , Xiaomi. , 100 ..





โ€“ Dafang Hack ( RTSP ) Raspberry c MotionEyeOS ( ), IP VPN ( Mikrotik). 500 ( ), ( 3 ).





  , , SonOff POW R2 โ€“ , 16 ( 750 ). , ( 4 ) . DemandResponse. ( , , , !) - . ( , , , ) SonOff G4 โ€“ ( 1100 ).





ยซยป eWeLink โ€“ SonOff POW R2 , , (, , , , , 5 ) , . (113 ), , .





โ€“ MojorDomo SonOff MajorDomo Orange Pi ( 1000 , Linux, โ€“ Armbian MajorDomo). โ€ฆ SonOff - , , ..





, ยซยป , .





โ€“ Tasmota, eWeLink MQTT. , , โ€“ , Wemos 120 , 12 , , WiFi. 3 โ€“ , , (, , AM2301 โ€“ AM2320! AM2301, DHT21, , ).





, 2 ( PWM, - MPPT), ( ). , , 3 , 2 , 2 , 40 .





, โ€“ . โ€“ , . , โ€“ MicroSD A2 โ€“ , SSD - / . , , . โ€“ , . ( Linux) , - . , 2 . , . โ€“ Orange Pi One Plus (700 ), . Raspberry Pi4 c 2 , MajorDomo โ€“ , โ€“ , , , .





, , ( โ€“ 2 , , ).





โ€“ . , โ€“ .





, . Google Assistant/Home, , , ( ), , Xiaomi eWeLink. , . , , ( ) MajorDomo! , , โ€“ MajorDomo , โ€“ , -. ยซ, !ยป. โ€“ Connect (2 , ) . โ€“ SSL , IP, MajorDomo, . , 2 โ€“ , SSL .





, โ€“ , .





, :













,













3





6000





, 2000





SonOff POW R2





4





3100





 





SonOff Basic





6





3400





 





SonOff G4





1





1100





 





SonOff TH10





1





800





 





Wemos + DC\DC +





5





1000





 





Raspberry Pi3





1





2500





 





Raspberry Pi4





1





4200





 





OrangePi Lite





2





1400





 





OrangePi One Plus





1





1000





 





32G A2





2





1800





 





.





3





12500





2 , 1





.





2





2400





(, )





Dexp





1





2000





, .









14





43200





17 โ€“





โ€“ 8 โ€“ 8 ! โ€“ 68 ( . , , !).





, !

By the way, about Yandex.Station. I strongly advise against buying from hands - it turned out that there are stations by subscription - sold to a specific person and for 3 years he must pay 400 rubles a month. You cannot transfer this to anyone - it is locked into the account of the person to whom Yandex gave it. That is, they are not for sale. Neither on the box, nor at the station, nor when turned on, it differs in nothing from the usual one (only, it seems, deaf, by the way). But after 10 minutes of work, it says "pay for a subscription" and does not work at all. Yandex support can check by number, but they answer every other day - obviously a long time to check upon purchase.








All Articles