Where to start building a Xiaomi smart home?
Xiaomiβs Smart Home ecosystem is one of the most affordable and functional home automation platforms available. Unlike rivals like Appleβs HomeKit or Google Home, it offers a wide range of affordable devices without requiring a costly hub (although it speeds up the system), but how do you build a smart home with your own hands so that devices work smoothly and scenarios work without delay?
In this article, we'll take a step-by-step approach, from choosing the first device to adjusting complex automations to accommodate typical novice errors. You'll learn which Xiaomi gadgets are really necessary and can be dispensed with, how to integrate with Alice or Google Assistant, and why sometimes a cheap motion sensor works worse than a wired switch.
Step 1: Selecting a central hub β is it necessary?
Many people think that Xiaomi should buy Mi Home Hub (aka Xiaomi Gateway) for a smart home, but itβs not really the case: some devices (like Yeelight light bulbs or Aqara sockets) can work directly over Wi-Fi or Bluetooth, connecting to the Mi Home app.
- π Local control: without a hub, all teams go through the Xiaomi cloud, which adds a delay of 1-3 seconds.
- π‘οΈ Autonomous operation: if the internet goes off, the smart home will continue to function (for example, a motion sensor will turn on lights).
- π΅ Sound Alerts: Hub has a built-in speaker for alarms or voice notifications.
- π Support for Zigbee devices: door opening sensors, buttons, thermostats and other gadgets require a hub to connect.
If your budget is limited, start with a minimum set without a hub (such as smart light bulbs + sockets), but keep in mind that when you expand the system, buying it will become inevitable.The best option for most users is the Xiaomi Mi Smart Home Hub 2 (supports up to 128 devices) or the Aqara Hub M2 (with backup power and HomeKit support).
β οΈ Note: Xiaomi hubs are linked to the region in the Mi Home app. If you choose China (Mainland), some devices (such as Aqara) may not connect.
Step 2: Basic set of devices to start
To make a smart home that is really useful, rather than a collection of useless gadgets, start with specific tasks.
- π‘ Light control: smart light bulbs Xiaomi Yeelight LED (coloured) + Aqara Wall Switch switches (if you donβt want to depend on your smartphone).
- πͺ Security: Xiaomi door/window opening sensor Door/Window Sensor + Aqara Motion Sensor.
- π‘οΈ Climate control: Xiaomi Smart Thermostat (for radiators) or air conditioner with Mi Home support.
- β‘ Electrical appliances management: smart sockets Xiaomi Smart Plug (with energy consumption measurement).
Example of the minimum starter set for a one-room apartment:
| The device | Model | Price (2026) | Why? |
|---|---|---|---|
| hub | Xiaomi Mi Smart Home Hub 2 | ~3 500 β½ | Zigbee Device Control Center |
| Light bulb | Yeelight LED Color | ~1 200 β½ | Managing lights by schedule or voice |
| Motion sensor | Aqara Motion Sensor | ~1 500 β½ | Automatic lighting when driving |
| Rosetta | Xiaomi Smart Plug | ~900 β½ | Remote control of household appliances |
| Opening sensor | Xiaomi Door Sensor | ~600 β½ | Opening of doors/windows alerts |
Tip: Don't buy a backup device. Start with 2-3 gadgets, test them, and then expand the system. For example, if the motion sensor is falsely triggered by pets, it may be better to replace it with an Aqara FP1 (with radar detection support).
π‘
Before buying, check the compatibility of devices in the official Mi Home list.Some gadgets (such as Xiaomi Mi Air Purifier) only work in the Chinese region of the application.
Step 3: Install and configure the Mi Home app
All Xiaomi Smart Home devices are managed through the Mi Home app (available for Android and iOS), download it from the official store (donβt use third-party APKs!) and register an account.
- Selecting a region: the first time you run the app, you'll have to choose a country. Russia is the best place to go. If you choose China, some devices may not connect, but the interface will be in Chinese.
- Hub binding: connect the hub to the outlet, wait for the blue flashing of the indicator and add it to the application through Add the device β Hub.
- Firmware Update: Once you connect the hub, check for updates in Hub Settings β Firmware Update. Outdated software can cause crashes.
To add new devices:
- Press + β Add the device.
- Select a category (e.g., "Lighting" for light bulbs).
- Follow the instructions on the screen (usually hold the button on the device until the indicator flashes).
β οΈ Warning: If the device doesn't connect, try: Reset it to factory settings (usually held button 5-10 seconds); switch hub to pairing mode (click button on hub 3 times); Change region in Mi Home to Europe (if Russia was standing).
βοΈ Checklist before connecting the device
Step 4: Creating Automations (Scenarios)
The main advantage of a smart home is the automation of routine activities. In Mi Home, this is done through scripts (the Automation tab).
- π "Morning Rise: Trigger: Time β 07:00 Action: Turn on the light bulb at 50% brightness, turn on the kettle (through a smart socket), say "Good morning" (through the hub speaker).
- πͺ "Security: Simulation of Presence: Trigger: Motion Sensor β Traffic detected (if you are not at home) Action: turn on the lights for 2 minutes, send a notification to the phone.
- π‘οΈ "Electricity savings": Trigger: Temperature below 18Β°C (according to sensor data) Actions: turn on the heater (through the socket), close the curtains (if there are smart motors).
To create a script:
- Go to Automation β Create β User Script.
- Select Trigger (Time, Sensor, Voice Command, etc.).
- Add Actions (what is to happen)
- Save the script and test it out.
Complex scenarios can be created using logical operators (e.g., "If the motion and temperature is below 20Β°C"). To do this, select Add condition in the trigger.
How do you make a delayed script?
Step 5: Integration with voice assistants
You can control Xiaomiβs smart home by voice via Alice (Yandex), Google Assistant or Siri (if you use Aqara HomeKit).
- π€ Connect to Alice: Open the Yandex app β Devices β Add the device β Xiaomi. Sign in to your Mi Home account. Select the devices you want to control your voice.
Example: "Alice, turn on the light in the living room."
Connecting to Google Assistant
- In Mi Home, go to Profile β Settings β Google Assistant.
- Follow the instructions for linking accounts.
Importantly, not all Xiaomi devices support voice control, for example, sensors (movements, openings) can only be monitored, but not controlled by voice. For a full list of compatible gadgets, see the Mi Home documentation.
β οΈ Note: When connecting to Alice, some devices may duplicate (e.g., one light bulb will display twice). This is an integration bug. Solution: in Yandex, manually remove duplicate devices.
π‘
Voice assistants make it easier to control, but add a delay of 1-2 seconds. For critical scenarios (for example, turning on the lights when driving), it is better to use local automation through the hub.
Step 6: Advanced Features: Home Assistant and Local Scenarios
The Mi Home app is handy for basic customization, but if you want sophisticated automation, integration with other systems, or full control of devices, consider Home Assistant, an open platform for the smart home.
- π Bringing together devices from different brands (not just Xiaomi).
- π Create dashboards with data visualization (for example, graphs of temperature or power consumption).
- π οΈ Write custom scripts in the language YAML.
- π Work locally (no dependency on the Xiaomi cloud).
The advantage of Home Assistant is that you have complete control over your smart home, for example, you can configure:
- Notifications in Telegram when the smoke sensor is triggered.
- Automatic activation of the fan when exceeding the level COβ (according to the Aqara sensor TVOC).
- Synchronize your smart home with Googleβs calendar (e.g., turning off your heater when no one is home).
Step 7: Common Mistakes and How to Avoid Them
When building a Xiaomi smart home, users often face typical problems, and here are the most common ways to solve them:
| Problem. | Reason. | Decision |
|---|---|---|
| Devices are disconnected from the hub | Weak signal Zigbee (many walls, interference from Wi-Fi) | Set a hub closer to the center of the apartment or add a Zigbee repetitor (e.g. Aqara Range Extender) |
| Delays in execution of commands | Devices are connected via the cloud, not locally | Use the hub for Zigbee devices and customize scripts through it |
| Motion sensors are activated on animals | Low sensitivity or incorrect location | Replace with the Aqara FP1 (with radar sensor) or set higher (at an altitude of 2-2.5 m) |
| Lights flash or don't turn on | Poor power supply or network overload | Connect the light bulbs through the stabilizer or check the power supply unit |
Another common mistake is hub overload: One Xiaomi Gateway works consistently with 30-40 devices, if there are more, break the system into several hubs or use the Aqara Hub, which supports up to 128 devices.
Also, remember to update your firmware. Mi Home doesn't always automatically come. Check for updates once a month manually: Profile β Settings β Firmware update.