What you need for a smart home Xiaomi: equipment, hubs and setup

Building a smart home based on the Xiaomi ecosystem is not only convenient, but also the ability to automate household processes, saving time and energy. However, before buying a device, it is important to understand what components are really needed and what you can do without. Many users mistakenly believe that it is enough to buy a pair of sensors and a light bulb — but in practice without the right central hub and compatible software, the system will not work at full capacity.

In this article, we will discuss the minimum and advanced hardware sets for Xiaomi smart home, talk about the nuances of interoperability of devices of different generations, and give a step-by-step instruction on configuration. Special attention will be paid to the problems faced by newcomers, from firmware conflicts to geolocation limitations. If you plan to build a system from scratch or complement an existing one, here you will find answers to key questions.

Xiaomi’s ecosystem offers more than 200 smart home devices, but not all of them are compatible. For example, the Aqara series sensors (a Xiaomi sub-brand) require a separate hub, and some Yeelight bulbs only work through the cloud. To avoid errors, first decide on the goals: whether you need full automation (scenes over time, voice control) or enough basic control (lights on motion).

Xiaomi regularly updates firmware and API, So the 2020-2022 instructions may be outdated, for example, from 2023, some devices require a Mi Account with a phone number tied from supported regions (China, EU, Russia) to connect.

1. Central Hub: The Heart of a Smart Home

Without a hub, most Xiaomi devices will not be able to communicate with each other.

  1. Connects devices into a single network (by Zigbee 3.0 or Wi-Fi).
  2. Provides local control (no cloud) for speed.
  3. Supports the creation of automated scenes (Mi Home Automation).

For 2026, four models of hubs from Xiaomi and Aqara are relevant:

  • 🔹 Xiaomi Mi Smart Home Hub 2 is the base model with support for Zigbee 3.0 and Bluetooth Mesh. Suitable for small systems (up to 30 devices.
  • 🔹 Aqara Hub M2 — Extended version with Zigbee support and IR-Remote (air conditioning, TV) Requires firmware for Russia.
  • 🔹 Aqara Hub E1 — budget-free IR, But with Matter support (compatible with Google Home and Apple HomeKit).
  • 🔹 Xiaomi Mi Smart Home Gateway 3 is the flagship of 2023 with support for Thread and Zigbee Long Range.Recommended for large homes (up to 128 devices).

⚠️ Note: Aqara hubs (except for M2) Do not work directly with Xiaomi devices – you need to link through Mi Home using the Aqara Bridge plugin. This can cause delays in management (up to 2-3 seconds).

If you plan to use voice assistants (Alice, Google Assistant, Siri), choose a hub with Matter (Hub) support. E1 For simple scenarios (lights, sensors) will be enough and Mi Smart Home Hub 2.

📊 What kind of hub do you use (or plan to use)?
Xiaomi Mi Smart Home Hub 2
Aqara Hub M2
Aqara Hub E1
Xiaomi Gateway 3
Not yet.

2. Basic set of devices: where to start

Minimum start kit includes hub + 3-5 devices. The optimal choice depends on the tasks:

The challengeRecommended devicesApproximate cost (2026)
Lighting managementXiaomi Mi LED Smart Bulb (Wi-Fi) or Aqara Smart Light Bulb (Zigbee)800 ₽ lamp-light
Climate controlXiaomi Mi Temperature & Humidity Sensor 2 + Aqara Smart Radiator Valve1,500 ₽
SecurityXiaomi Mi Door/Window Sensor 2 + Aqara Motion Sensor1200 ₽ complete
Smart socketsXiaomi Mi Smart Plug (Wi-Fi) or Aqara Smart Wall Plug (Zigbee)900 ₽

💡 Tip: Start with motion sensors and door openings, which give you the most value at the lowest cost. For example, the scenario of "turn on the light in the hallway when you open the door" solves 80% of household tasks.

⚠️ Note: Xiaomi Wi-Fi devices (e.g. Yeelight bulbs) require a constant internet connection to work. If the router shuts down, management will be unavailable. Zigbee devices (via the hub) run locally.

Choose a Hub (Recommended Xiaomi Mi Smart Home Hub 2)

Buy 2-3 sensors (movement) + doorway)

Add 1-2 controlled devices (lamp or socket)

Check the compatibility of the firmware (see section 4)

Install the Mi Home app (version no lower than 6.5.4)

-->

3. Advanced automation: scenes and scripts

Basic scenarios (e.g., “turn on the lights while driving”) are customized in the Mi Home app, but more tools will be needed for complex automation:

  • 🛠️ Node-RED is a custom scripting platform that connects Xiaomi to other ecosystems (e.g. Home Assistant).
  • 📱 Home Assistant – an open system for managing a smart home. Supports integration with Mi Home through the Xiaomi Miio plugin.
  • ⚡ IFTTT — A service for creating chains of action (“if... then..”), such as: “If the rain sensor is triggered, close the smart tent».

An example of an advanced scenario:

    To implement such a scenario in Mi Home will require at least 5 devices and configuration through Automation. → Custom Automation. Home Assistant does it through YAML-configuration:

    automation:
    
    
    - alias: "Bathroom: After-Shower airing"
    
    
    
    
    trigger:
    
    
    
    
    platform: state
    
    
    
    
    entity_id: binary_sensor.aqara_motion_vannaya
    
    
    
    
    to: "off"
    
    
    
    
    for: "00:10:00"
    
    
    
    
    action:
    
    
    
    
    - service: switch.turn_off
    
    
    
    
    entity_id: switch.aqara_fan
    
    
    
    
    - service: cover.open_cover
    
    
    
    
    entity_id: cover.aqara_curtain

    ⚠️ Note: When using Home Assistant, Xiaomi devices may lose communication with the hub once every 1-2 months.Solution: reboot the hub through Developer Tools in Mi Home.

    How to get around the Geolocation Restriction in Mi Home
    If your region is not officially supported (e.g. Belarus or Kazakhstan), create a Mi Account with a Russian or Chinese phone number. 1. Use a virtual number (services like SMS-Activate). 2. In the Mi Home app settings, select "Russia" or "China" region. 3. Link the hub to your account via VPN (server).

    4 Device compatibility: how to avoid conflict

    One of the main problems of the Xiaomi ecosystem is the incompatibility of devices of different generations.

    • Aqara sensors from 2018-2020 do not work with the Xiaomi Gateway 3 hub.
    • Yeelight lamps with firmware until 2022 do not support Matter.
    • Xiaomi Mi Home Security Cameras require a separate Mi Home Security app.

    Before buying, check the firmware version of the device. Up-to-date data can be found:

    1. On the Mi Home website, in the Firmware Update section.
    2. In Telegram chat communities (for example, Xiaomi Smart Home) RU).
    3. Through the Mi Home app: Device profile → Update of the PO.

    Critical information: devices with firmware below 1.4.7_0039 (Zigbee does not support Zigbee encryption 3.0 You can get a security breach. Update the software before you connect to the hub.

    1. Remove the battery (if any) for 10 seconds.

    2 Hold the reset button (usually on the back) for 5-7 seconds until the indicator flashes yellow.

    3. Repeat the connection procedure in Mi Home.-->

    5. Setup of the Mi Home application: step-by-step instructions

    To manage the smart home Xiaomi uses the official application Mi Home (available for Android and iOS).

    1. Download the app from the App Store or Google Play.
    2. Create a Mi Account (require to link your phone number!).
    3. Add the hub: press + → Add the device → Select a hub from the list.
    4. Connect the hub to the router according to the instructions (usually you need to press the button on the hub and wait for the sound signal).
    5. Add the rest of the devices through + → Add the device by selecting the appropriate category.

    ⚠️ Note: Do not use the devices when adding 5G-Wi-Fi network – many Xiaomi devices don’t support this range.Switch router to 2.4 GHz or create a separate network for the smart home.

    Once you connect your devices, go to Automation to create scripts, for example:

    • 🌞 «If the light sensor shows < 50 lux, light up».
    • 🚪 «If the door sensor is working, send a notification to the phone».
    • 🔥 «If the smoke detector is working, turn on the siren and send it. SMS».

    💡

    The most common setup error is trying to connect the device to the hub without first resetting.Always reset before adding to Mi Home!

    6. Alternative management practices

    In addition to Mi Home, Xiaomi’s smart home can be managed through:

    • 🗣️ Voice assistants: Alice (Yandex) – supports most devices through the skill Xiaomi Smart Home. Google Assistant – requires binding Mi Home account in Google Home. Siri (Apple HomeKit) – works only with devices that support Matter (for example, Aqara Hub) E1).
    • 🖥️ PC or Mac: via the Mi Home web interface (limited functionality) or Home Assistant.
    • ⌚ Smartwatch: Mi Home app for wearOS or Apple Watch allows you to control the basic devices (turn on the light, see the temperature).

    🔹 Example of voice command for Alice:

    «Alice, turn on the light in the living room through Xiaomi» → Xiaomi Mi lamp LED Smart Bulb will turn on if it is tied to the living room in Mi Home.

    ⚠️ Attention: Voice control via Alice is 1-3 seconds late due to cloud processing. Use local commands via Home Assistant for instant response.

    Typical problems and their solutions

    Even in the right system, there can be failures. TOP-5 problems and ways of eliminating them:

    Problem.Reason.Decision
    The device does not respond to commandsLoss of communication with hub or routerReboot the hub and router. Check the distance (max. 10m for Zigbee)
    Automation doesn't work.Conditions conflict in the scenarioSimplify the script or break it down into a few simple ones.
    Lamp flashes after updateIncompatible firmwareReverse to the previous version via Mi Home → Device profile → Three points. → Select firmware
    Sensor shows incorrect dataBattery or interference is dead.Replace the battery (CR2032). Move the sensor away from metal objects
    Hub does not connect to Wi-FiRange not supported 5G slug-inSwitch to 2.4 GHz or use a repeater

    💡 Tip: If the problem is repeated, check the device logs in Mi Home:

    1. Open the profile of the device.
    2. Press … → Journal of events.
    3. Look for code errors ERR_XXX (The decryption can be found on the Xiaomi forum).

    8.Security of Xiaomi Smart Home

    Smart devices are a potential target for hackers.

    • 🔓 Data Leak: Unsecured hubs can transmit data about your location and habits.
    • 🕵️ Unauthorized Access: If the Mi Account password is weak, an attacker can control your devices.
    • 📡 Network interference: Zigbee devices are vulnerable to jamming attacks (signal suppression).

    How to protect the system:

    1. Use a complex password for Mi Account (at least 12 characters with numbers and special signs).
    2. Enable two-factor authentication in your account settings.
    3. Update your device firmware monthly (there is an automatic update option in Mi Home).
    4. Disable remote access to the hub if you do not use external control (in the hub settings: Network) → Remote access).
    5. Create a guest Wi-Fi network specifically for smart devices (in router settings).

    ⚠️ Attention: Xiaomi Hubs with firmware to 1.5.4_0050 vulnerable CVE-2021-31799, Update the firmware immediately if your hub is older. 2022 year-end!

    💡

    Never buy used Xiaomi hubs! the previous owner can keep access to the device even after a reset.

    FAQ: Frequent questions

    Can I use Xiaomi devices without a hub?
    Yes, but with limitations: Wi-Fi devices (like Yeelight lamps or Mi Smart Plug outlets) operate without a hub, but do not support local automation. If-then-then-then-then-then-hub is a must.
    How to connect Xiaomi to Apple HomeKit?
    Officially only devices with Matter support (for example, through the Aqara Hub) E1). The rest will require Home Assistant with the HomeKit Bridge plugin.
    Why are Xiaomi sensors running out quickly?
    A common reason is high Zigbee signal strength (if the hub is too close) or old batteries. Try: Replace the batteries with Energizer Ultimate Lithium (they last longer), increase the distance between the sensor and the hub to 3-5 meters, disable unnecessary notifications in the sensor settings.
    Can you run a Xiaomi smart home from another country?
    Yes, but there are nuances: If the hub is connected to the Russian server Mi Home, you will need to manage from abroad. VPN Russian IP. Wi-Fi devices (such as cameras) can be locked by geolocation, so the solution is to use a locally controlled Home Assistant.
    Which Xiaomi devices are better not to buy?
    Avoid: 🚫 Xiaomi Mi Smart Home Gateway 1 is outdated, no support for new devices. 🚫 Xiaomi Mi Bedside Lamp 1 – Overheats frequently, no firmware updates. 🚫 Aqara Cube – unstable with the latest versions of Mi Home. Before buying, check the reviews on the official forum or in Telegram chats.