Introduction: Why Xiaomi 2021 is relevant in 2026?
The Xiaomi Smart Home ecosystem of 2021 remains one of the most affordable and functional platforms for home automation even after three years. Despite the release of new devices, the main hubs and sensors of 2021 (for example, Mi Home Gateway 3 or Aqara Hub M2) continue to be supported by the manufacturer, receive firmware updates and are compatible with modern scenarios. Moreover, they can be found in the secondary market at a price 2-3 times lower than the original one β ideal for those who want to build a smart home without overpaying.
In this article, we will discuss how to start building a smart home based on Xiaomi 2021 in 2026: from choosing a central hub to configuring automation through the Mi Home or Home Assistant. Particular attention will be paid to the compatibility of older devices with new protocols (Zigbee 3.0, Matter) and workarounds for integration with Google Home or Apple HomeKit. If you are just planning a purchase, here you will find a checklist of necessary hardware and step-by-step instructions without water.
1. Central hub: which one to choose in 2026?
Without a hub, Xiaomiβs smart home wonβt work as a single system, and in 2021, the company released several key models that still remain relevant:
- πΉ Xiaomi Mi Home Gateway 3 is a basic version with support for Zigbee and backlight (16 million colors), Suitable for small apartments, but has a limit on the number of connected devices (up to 32).
- πΉ Aqara Hub M2 β more advanced version with support for Zigbee 3.0, Ethernet port and backup power. Compatible with HomeKit (via firmware).
- πΉ Xiaomi Mi Smart Home Hub (white round model) β budget option without RGB-backlight, but with Mi Mesh support for stable communication.
In 2026, the best choice for beginners is the Aqara Hub M2 β it supports more devices (up to 128), has a built-in speaker for the siren and can work autonomously when the lights are turned off (thanks to the battery compartment). If the budget is limited, take the Mi Home Gateway 3, but keep in mind that the expansion of the system will require additional hubs.
β οΈ Note: Xiaomiβs 2021 hubs donβt support Matter out of the box.To integrate with Google Home or Apple HomeKit, youβll need to use Home Assistant or alternative firmware (e.g., Aqara Hub). M2).
2. Device compatibility: What works with hubs 2021?
Not all Xiaomi 2021 devices are compatible, but the basic rule is that Mi-logo devices (such as Mi Door/Window Sensor) only work with Mi hubs, and Aqara devices only work with Aqara hubs.
| Type of device | Compatible hubs | Notes |
|---|---|---|
| Opening Sensors (Mi Door/Window Sensor) | Mi Home Gateway 3, Aqara Hub M2 | Requires firmware for Aqara |
| Smart sockets (Mi Smart Plug) | Any hub + Wi-Fi | It works without a hub, but scripts need a gateway |
| Aqara Temperature and Humidity Sensor | Just the Aqara Hub. | Not compatible with Mi Home Gateway |
| Smart lamps (Yeelight) | No hub (Wi-Fi) | It is integrated via Mi Home but does not support Zigbee. |
Before buying, check compatibility on the official Mi Home website or in the Zigbee2MQTT database. For example, Mi Motion Sensor (2021) will not work with the Aqara Hub E1 (2023), although both use Zigbee.
π‘
If you plan to use devices from different brands (such as Xiaomi + Philips Hue), consider Home Assistant with Sonoff Zigbee 3.0 adapter β this will solve compatibility issues.
3. Minimum set of start devices
To build a working smart home from scratch, you need 4-5 devices, and here is the optimal starting kit based on Xiaomi 2021:
βοΈ The basic set of smart home Xiaomi 2021
- πͺ Mi Door/Window Sensor is for door and window control. 2 battery-year CR1632.
- π€ Mi Motion Sensor β motion sensor with a viewing angle of 170Β°. Can be used to automate lighting.
- π‘ Yeelight LED Bulb is a smart lamp with color adjustment (16 million shades) and brightness.
- β‘ Mi Smart Plug is a power-monitoring outlet, useful for controlling a kettle or heater.
The cost of such a set in the secondary market (2026) is about 5-7 thousand rubles. If the budget allows, add Aqara Temperature & Humidity Sensor for microclimate control and Mi Smart Button for manual scenario management.
System configuration: step-by-step instruction
After buying the devices, we start setting up. The whole process will take 30-60 minutes:
- Install the Mi Home app (available for Android and iOS). Select China Mainland region, which will give you access to all features (including automation).
- Connect the hub to the network. For Mi Home Gateway 3, use an Ethernet cable (Wi-Fi is not supported!). In the Aqara Hub M2, you can choose any option.
If the hub is not connected, check:
- π Does the device power (the indicator should burn blue).
- π Is Ethernet cable connected (for models without Wi-Fi).
- π± Application version (update to the last version).
What if the hub is not defined in Mi Home?
5. Creating automation: examples for beginners
The main benefit of a smart home is that it automates routine tasks. In Mi Home, it's called "Scenarios." Here are 3 simple examples that you can customize in 5 minutes:
- π‘ "Moving lighting: Trigger: Mi Motion Sensor (movement detected) Action: turn Yeelight Bulb on at 70% brightness Condition: time from 18:00 to 23:00.
- πͺ "Open Door Alert: Trigger: Mi Door Sensor (Door open) > Action: Send a push notification to your phone + siren.
- β‘ "Electricity savings: Trigger: Mi Smart Plug (consumption) > 1000W Action: Turn off the socket in 10 minutes (useful for heaters).
To create a script in Mi Home, go to Automation β Create β If... β That... Note: Some devices (like Yeelight) require a separate application to fine-tune colors and effects.
π‘
The scripts in Mi Home only work with an active Internet connection. For local automation (without the cloud), use Home Assistant or alternative firmware.
6.Integration with Google Home and Apple HomeKit
Xiaomiβs 2021 hubs donβt officially support Google Home or HomeKit, but there are workarounds:
| Platform | Integration | Difficulty |
|---|---|---|
| Google Home | Through Mi Home (Cloud Sync) | β (simple) |
| Apple HomeKit | Aqara Hub M2 Firmware for HomeKit or Home Assistant | βββ (difficult) |
| Alice (Yandex) | Official integration through Mi Home | β (simple) |
To connect to Google Home:
- Open Mi Home and go to Profile β Settings β Smart Home β Third-party accounts.
- Select Google Assistant and log in.
- In Google Home, click + β Set up your device β Are there devices already? and select Xiaomi.
HomeKit requires you to flash the Aqara Hub M2 through this repository, which takes 15-20 minutes and requires a Python computer.
β οΈ Note: After firmware on HomeKit, you will lose access to devices via Mi Home.It is recommended to first migrate all automation to Home Assistant or Apple Home.
7. Mi Home: Home Assistant and Zigbee2MQTT
If you donβt like the limitations of Mi Home (such as cloud dependency or lack of Matter), consider alternative platforms:
- π Home Assistant β open system with local management. Supports all Xiaomi devices through plugins Xiaomi Miio or Zigbee2MQTT.
- π Zigbee2MQTT β A software to manage Zigbee devices without the cloud requires an adapter (e.g., a Zigbee device, CC2531 Or Sonoff Zigbee 3.0).
- π ioBroker is a German automation platform supported by Xiaomi via the mihome adapter.
To start with Home Assistant:
- Install the system on Raspberry Pi, Docker or Windows.
- Add Xiaomi Miio integration through Settings β Devices and Services β Add integration.
- Enter the device token (you can get it through MiOT Spec).
The advantages of Home Assistant:
- β Local management (not dependent on Xiaomi servers).
- β Support for Matter and Integration Google/HomeKit.
- β Flexible automation (e.g., time, weather, geolocation).
π‘
If you are using Zigbee2MQTT, disable the Permit Join feature after adding all devices, which will improve network security.