How to make a Xiaomi smart home yourself: a complete guide from choosing devices to setting up automation

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.

πŸ“Š What kind of hub do you use (or plan to use)?
Xiaomi Mi Smart Home Hub 2
Aqara Hub M2
I'm not having a hub.
Another option

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 deviceModelPrice (2026)Why?
hubXiaomi Mi Smart Home Hub 2~3 500 β‚½Zigbee Device Control Center
Light bulbYeelight LED Color~1 200 β‚½Managing lights by schedule or voice
Motion sensorAqara Motion Sensor~1 500 β‚½Automatic lighting when driving
RosettaXiaomi Smart Plug~900 β‚½Remote control of household appliances
Opening sensorXiaomi 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.

  1. 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.
  2. 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.
  3. Firmware Update: Once you connect the hub, check for updates in Hub Settings β†’ Firmware Update. Outdated software can cause crashes.

To add new devices:

  1. Press + β†’ Add the device.
  2. Select a category (e.g., "Lighting" for light bulbs).
  3. 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

Done: 0 / 4

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:

  1. Go to Automation β†’ Create β†’ User Script.
  2. Select Trigger (Time, Sensor, Voice Command, etc.).
  3. Add Actions (what is to happen)
  4. 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?
Mi Home does not have a direct delay function, but it can be emulated: 1. Create two scenarios. 2. In the first scenario, the trigger will be an event (such as opening a door), and the action will be the activation of a virtual device (such as Xiaomi Virtual Switch). 3. In the second scenario, the trigger will be the virtual device turning on, and the action will be the desired command (such as turning on the lights) with a delay of 5 minutes (indicated in the action settings).

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

  1. In Mi Home, go to Profile β†’ Settings β†’ Google Assistant.
  2. 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).
πŸ“Š Do you use the Home Assistant?
Yeah, that's my main system.
I tried it, but I went back to Mi Home.
I'm planning on trying.
I don't know what it is.

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 hubWeak 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 commandsDevices are connected via the cloud, not locallyUse the hub for Zigbee devices and customize scripts through it
Motion sensors are activated on animalsLow sensitivity or incorrect locationReplace with the Aqara FP1 (with radar sensor) or set higher (at an altitude of 2-2.5 m)
Lights flash or don't turn onPoor power supply or network overloadConnect 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.

FAQ: Frequent questions about Xiaomi smart home

Can I use Xiaomi devices without the internet?
Yes, but with reservations: Devices connected via Zigbee (to the hub) will work locally. Smart light bulbs and sockets with Wi-Fi require the Internet to control through the application, but you can use physical switches. scripts created in Mi Home will not work without the Internet (you need Home Assistant for local automation).
How to transfer a smart home to a new phone?
To avoid reconfiguring: On your old phone in Mi Home, go to Profile β†’ Settings β†’ Backup. Create a backup (the file will be saved to the cloud). On your new phone, log in to the same account and restore data from the backup. Importantly, some devices (such as the hub) may require re-pairing.
Why are Xiaomi sensors running out quickly?
Battery life depends on: Survey frequency (in sensor settings you can reduce the time interval for sending data); Temperature (in cold, the battery dies faster); Battery quality (use alkaline, for example, Duracell); Average battery life in Xiaomi sensors: 1-2 years.
Can you connect Xiaomi cameras to your smart home?
Yes, but with limitations: Xiaomi Mi Home Security Cameras can be added to Mi Home and used in scenarios (e.g., enable recording when a motion sensor is triggered). Face recognition or avanzed analytics require a Mi Home Security subscription. Cameras do not integrate directly with Home Assistant (you need a Xiaomi Miio plugin).
How to reset the Xiaomi hub to factory settings?
If the hub is buggy or not: Turn off the hub power. Press the button on the hub and plug it into the outlet. Hold the button for 10-15 seconds until the indicator flashes yellow. Release the button, the hub will reset and be ready for a new setup.