Building your own home automation system has moved from being a choice of engineers to being accessible to every smartphone owner. Xiaomiβs ecosystem offers perhaps the widest range of devices that can be networked, from simple light bulbs to complex climate systems. But for a newcomer to the catalogue, the diversity can be daunting: hundreds of models, different communication protocols, and many gateways create information noise.
In 2021, the smart device market has undergone significant changes, with the transition to new security standards and upgrades to server capacity. If you plan to start assembly now, it is important to understand that old connectivity schemes may not work correctly, and some devices from 2018-2019 are already out of production or are not supported by new versions of applications.
In this article, we will discuss a step-by-step algorithm that avoids typical errors and builds a working system without unnecessary costs. You will learn why the ZigBee protocol is more important than Wi-Fi for sensors, how to choose the right region in the application, and which devices are really necessary at the start and which can be postponed for later. Proper planning during the purchase phase will save you time and nerves during the setup process.
Selection of central hub and communication protocols
The foundation of any system is a gateway, or hub. In 2021, the most current choice is the Mijia Smart Home Hub or its more advanced versions with support for ZigBee 3.0. It is this protocol that allows you to create a mesh network where devices do not drain the battery of the phone and do not overload your router, unlike dozens of Wi-Fi light bulbs connected directly.
Many beginners make the mistake of buying devices with only a Wi-Fi module, which leads to the fact that when the Internet is turned off or the router is restarted, the entire system stops responding to commands. ZigBee devices retain the local logic of operation: even if the Internet goes down, the βopen the door β lights onβ scenario will continue to run, since the communication goes directly between the sensor and the gateway.
β οΈ Note: When buying a gateway, be sure to check for ZigBee protocol support 3.0. Old versions (ZigBee) 1.2) You may not see new sensors released in the 2020-2021 This will create problems in the expansion of the system.
Also worth noting is the presence of a built-in speaker in the hub, which will allow you to use it as an alarm clock or to play back audible notifications when alarms are triggered. Some models, such as the Xiaomi Multimode Gateway, support simultaneous operation with Wi-Fi, ZigBee and Bluetooth Mesh, making them a versatile solution for a mixed ecosystem.
- πΉ Mijia Smart Home Hub β basic model to start, supports up to 32 sub-devices.
- πΉ Xiaomi Multimode Gateway β Professional choice, supports three communication protocols simultaneously.
- πΉ Aqara Hub M2 β A great alternative with support for Apple HomeKit and IR remote for managing old equipment.
Choosing the right gateway determines the scalability of your system. If you plan to limit yourself to a couple of light bulbs, a simple Wi-Fi option will do, but for a full-fledged smart home, you can not do without a gateway with ZigBee support.
Setting up the Mi Home app and selecting a region
The first step after unpacking the equipment will be to install the Mi Home app, which is the first important nuance: the choice of server region. Devices purchased in China (most of them on marketplaces) often require a China region, whereas European versions run on Russia or Europe servers.
In 2021, the region was more flexible, but the confusion remained: If you pick the wrong region, the app simply won't see some devices or add them to the scenarios, and regional anchoring affects the response rate and availability of voice control through assistants.
Path to the menu: Profile β Settings β RegionExperienced users recommend creating a separate Xiaomi account specifically for the smart home and choosing the region that matches most of your devices. If you bought a Chinese gateway and European light bulbs, you will either have to put up with restrictions or re-fish the devices, which is not always possible.
What to do if devices from different regions?
It is important to set up two-factor authentication for your account right away, as a smart home hack is not only a loss of data, but also a risk of physical access to your apartment. Security in IoT devices has reached a new level in 2021, and it cannot be neglected.
Basic set: where to start buying
It's not a good idea to buy everything, but to start with a minimum set that will give you a tangible result and an understanding of how things work, and the basic set usually includes lighting control, door opening monitoring, and climate control.
First, look at smart outlets, which is the cheapest way to make stupid tech smart, and if you plug in a fan or humidifier, you can control them from your smartphone and turn them on on as scheduled.
| The device | Function | Estimated Price (2021) | Necessity |
|---|---|---|---|
| Smart Plug (Wi-Fi/ZigBee) | Nutrition management | ~800 rubles. | Tall. |
| Opening sensor | Door/window response | ~600 rubles. | Medium |
| Smart lamp. | Colour/brightness change | ~900 rubles. | Medium |
| Temperature sensor | Climate monitoring | ~500 rubles. | Low. |
The second important element is motion sensors and door opening sensors, which allow you to automatically turn on the lights in the hallway or send a notification when someone enters the apartment, and when combined with a smart socket, this provides a powerful tool for safety and energy savings.
βοΈ Smart home starter kit
And don't forget the wireless buttons, and a little round button can trigger complex scenarios, like one click to turn off all the lights, double click to turn on No One mode, and that adds physical control to the digital system.
Automation and scripting
The ability to turn on the lights from your phone is just a remote control, not a smart home, and magic begins where devices start to communicate with each other without you, which is called automation or scripting.
In the Mi Home app, the "Automation" section allows you to create chains of actions using the "If β That" principle, for example: "If the opening sensor showed "open" And the time between 18:00 and 23:00 β Turn on the light in the hallway." Logic can be of any complexity.
β οΈ Note: When creating Wi-Fi scenarios, consider latency. If the Internet blinks, the command may be executed late. For critical scenarios (security), use only ZigBee devices.
Pay special attention to the "Geo-fence entry/exit" condition. The phone tracks your location, and when you approach your home, the system can turn on the air conditioner or boiler itself. However, in 2021, many users note that the operation of the geo-fence in the background depends on the aggressive energy saving in Android and iOS.
π‘
Use virtual buttons in scripts. Create a "I'm gone" script that turns off all devices, and tie it to a widget on your phone's desktop, which is more convenient than turning off each lamp separately.
Complex scenarios are better tested in stages, so you can adjust the sensor response first, then add an action, and then you can put in time constraints, and that will help you quickly find an error if the system behaves unexpectedly.
Voice control and integration
In 2021, voice assistants have become an integral part of the smart home. Xiaomi's ecosystem is great friends with Yandex Alice, Google Assistant and Siri (via HomeKit for some devices). Voice control adds a layer of convenience when hands are busy.
To integrate with Alice, you need to link accounts in the Home with Alice app, after which all devices from the Mi Home will appear in the Yandex interface, and it is important to rename the devices correctly so that the commands are natural: not βMi Smart LED Bulbβ, but simply βLight in the living roomβ.
The situation is more complicated with Apple HomeKit, which is supported only by Aqara gateways and some new Xiaomi devices with the logo βWorks with Apple HomeKitβ. Normal Chinese versions via Mi Home directly to the Home are not added without using third-party gateways such as HomeBridge.
- πΉ Yandex β the best support for the Russian language and local scenarios.
- πΉ Google is good for English-speaking teams and Android integration TV.
- πΉ Siri β requires a HomeKit-compatible gateway, but provides a high response rate.
π‘
Voice control is not a toy, it's a control tool for people with disabilities and just for lazy evenings. Set up at least the basic commands "Switch on the lights" and "Switch off everything."
Don't just rely on your voice. The Internet can go missing, servers can go to service. Always have physical switches or buttons on the wall so you don't run around with your phone looking for a network.
Frequent problems and their solution
You may find that devices become "Out of the network" in the process of operation, most often it is not the gadgets themselves that are the router's problem, cheap routers do not hold more than 10-15 connected customers, if you have 20 sensors, 5 phones and 2 TVs, the router can "choke."
The solution is to buy a high-quality router with support for a large number of connections or install a separate access point only for a smart home, and separation of 2.4 GHz and 5 GHz networks helps, since most smart devices only operate at 2.4 GHz.
β οΈ Warning: If the device is constantly falling off, try changing the Wi-Fi channel in the router settings. In apartment buildings, the channels are often clogged with neighbor networks, which interferes with ZigBee and Wi-Fi devices.
Another problem is firmware updates. In 2021, Xiaomi increased security requirements, and sometimes devices require updates to keep running. Watch out for in-app notifications, but don't update all devices at once if you have a lot of them - this can cause strain on the network.