Xiaomi’s smart home has long since ceased to be exotic — millions of users around the world control lighting, climate and security through the Mi Home ecosystem. But few people understand how the central element of this system, the Xiaomi hub, works. Without it, most sensors and actuators turn into useless “bricks” and with it into a coherent automated network.
In this article, we will explore the architecture of the hub, its role in the Xiaomi Smart Home ecosystem, supported communication protocols (from ZigBee to Bluetooth Mesh), and also reveal nuances that are not written in the official instructions, such as why some devices work without the Internet and others do not, how the hub interacts with the Mi Cloud, and whether it can be used without a smartphone. If you are planning to build a smart home based on Xiaomi or have problems in its work, here you will find answers to key questions.
What is Xiaomi Hub and Why You Need It in a Smart Home
Xiaomi’s hub (or gateway) is a central controller that connects and interoperates all smart home devices. Door/Window Sensor or Aqara Temperature Sensor will not be able to transmit data to the Mi Home application, and actuators (sockets, lamps, valves) will not be able to receive commands.
The main functions of the hub:
- 🔄 Signal Routing: Converts commands from an application to radio signals for devices (and vice versa).
- 📡 Protocol support: works with ZigBee, Bluetooth Mesh, Wi-Fi (depending on model).
- ☁️ Cloud Connection: Syncs Data with Mi Cloud for Remote Management.
- ⚡ Local automation: executes scripts even without the internet (if configured correctly).
It's important to understand that the hub is not just a bridge between devices and a smartphone, it processes the logic of automation at the firmware level, which allows, for example, to turn on the light when a motion sensor is triggered without delaying sending data to the cloud, but not all scenarios work offline, which we'll talk about later.
How Xiaomi Hub Connects with Devices: Protocols and Ranges
One of the key advantages of Xiaomi hubs is that they support multiple wireless protocols, each optimized for a specific task, and we'll go through them in detail:
| Protocol | Frequency | Communication range | Powering devices | Examples of devices |
|---|---|---|---|---|
| ZigBee (IEEE 802.15.4) | 2.4 GHz | Up to 100 m (under ideal conditions) | Low (battery years) | Mi Door Sensor, Aqara Motion Sensor, Mi Smart Plug |
| Bluetooth Mesh | 2.4 GHz | Up to 30 m (grid extends coverage) | Average. | Mi Smart LED Bulb, Mi Smart Button |
| Wi-Fi (Hub only) | 2.4/5 GHz | Up to 50m. | Permanent (from the socket) | The Hub, Some Cameras (Mi Home Camera 360)°) |
ZigBee is the main protocol for most Xiaomi sensors and actuators. It runs at 2.4 GHz, but uses a different channel than Wi-Fi, so interference is minimal. The main advantage is low power consumption: battery-powered sensors can last for years. However, ZigBee has a limit: the maximum number of connected devices to one hub is 32 pieces (in theory up to 128, but in practice only 30-35 are stable).
Bluetooth Mesh is used less frequently, mainly for lamps and buttons, and its key feature is a mesh topology: each device can relay a signal, increasing the range of coverage. For example, if the hub is in the hallway and the lamp is in the far corner of the house, the signal can jump through intermediate devices (for example, an outlet in the hallway).
⚠️ Note: If you have a lot of 2.4GHz devices in your home (Wi-Fi routers, microwaves, wireless headphones), the hub may experience interference. Solution: transfer the router to channel 1, 6 or 11 (they do not overlap), and leave the hub to automatically select the channel in the Mi Home settings.
Xiaomi Smart Home Architecture: How Data is Transmitted from Sensor to App
To understand how the hub works, we will analyze the path of data from the sensor to your smartphone using the example of the door opening sensor:
- Event: Mi sensor Door/Window Sensor detects the door opening and sends a signal via ZigBee to the hub.
- Hub processing: The hub receives a signal, checks if there are automations associated with the event (for example, turning on a light or sending a notification).
- Local execution: If the script is set to be “local” (no cloud), the hub immediately sends a command to the Mi lamp. LED Bulb by ZigBee.
- Cloud Sync: In parallel, the hub sends event data to Mi Cloud (if there is internet) and the cloud already transmits notification to the smartphone via the Mi Home app.
- Remote control: If you are outside the house at this time, the command to turn on the lamp will pass through the cloud: Smartphone → Mi Cloud → hub → lamp.
The critical nuance is that local automation works even without the Internet, but only if all the devices in the scenario are connected to the hub via ZigBee or Bluetooth Mesh. If the scenario involves a camera or a Wi-Fi outlet, the hub will not be able to manage them without the cloud.
What is “local automation”?
The system reaction rate depends on the type of connection:
- 🔥 Local scenarios (ZigBee/Bluetooth): 0.1–0.5 seconds (delay is minimal).
- ☁️ Cloud scenarios (via Mi Cloud): 1–3 seconds (depending on ping to Xiaomi servers).
- 📶 Management via mobile Internet: 2–5 seconds (delays due to delays) 3G/4G).
Device compatibility: what gadgets work with the Xiaomi hub
Not all Xiaomi devices can connect to the hub, but here are the key compatibility criteria:
Communications protocol:
- ✅ Work with the hub: devices on ZigBee (most sensors and actuators Mi Home and Aqara) and Bluetooth Mesh (some lamps and buttons).
- ❌ Not working with the hub: Wi-Fi-only devices (e.g. Mi Robot Vacuum, Mi Air Purifier) or ZigBee 3.0 (if the hub is older version).
Firmware region:
Xiaomi hubs have regional limitations, such as Mi Home Gateway 3 for China won’t work properly with European Mi Home servers, and some devices (such as Aqara) may require firmware of a specific region (CN — China, EU — Europe).
| Type of device | Examples of models | Wants a hub? | Protocol |
|---|---|---|---|
| Opening/closing sensors | Mi Door/Window Sensor, Aqara Door Sensor | Yes. | ZigBee |
| Motion sensors | Mi Motion Sensor, Aqara Motion Sensor P1 | Yes. | ZigBee |
| Smart lamps | Mi LED Bulb, Yeelight | Depends on the model. | Bluetooth Mesh or Wi-Fi |
| Smart sockets | Mi Smart Plug (ZigBee), Mi Smart Plug Wi-Fi | Only the ZigBee version | ZigBee or Wi-Fi |
⚠️ Note: Aqara brand devices (a subsidiary of Xiaomi) are compatible with Mi Home hubs, but they may require a change of region in the app to Mainland China. This is because Aqara originally developed devices for the Chinese market.
Make sure your device supports ZigBee or Bluetooth Mesh
Check the hub region and devices (must match or be compatible)
Update the Hub’s firmware to the latest version in Mi Home
If you have an Aqara device, switch the region to China temporarily for a connection.-->
How to set up a Xiaomi hub: step-by-step instructions
The process of setting up the hub varies by model, but the overall layout is the same for most devices. Consider the example of Mi Home Gateway 3:
Step 1: Connect to power and network
- 🔌 Connect the hub to the outlet (use the original power adapter).
- 📶 Wait until the indicator starts flashing orange (connection waiting mode).
- 📱 Open the Mi Home app, go to Devices → Add the device → Gateway.
Step 2: Connect to Wi-Fi
The hub only supports 2.4 GHz networks (not working with 5 GHz!) In the app, select your network and enter a password.
- 🔄 Reboot the router.
- 🛡️ Temporarily turn off customer isolation in router settings.
- 📡 Check that the router does not use 12-14 channels (they are not supported in some regions).
Step 3: Update the firmware
Once connected, the hub may suggest updating the firmware. Always agree that new versions fix compatibility errors and add support for devices. Update takes 2-5 minutes, the hub will restart automatically.
Step 4: Connecting devices
Now you can add sensors and actuators:
- In the Mi Home app, click «+» → Select the category of the device (for example, "Sensors»).
- Activate the pairing mode on the device (usually you need to press the button for 3-5 seconds until the indicator blinks).
- Wait for the hub to find the device and confirm the connection.
💡
If the hub doesn’t find the device, try resetting it (press the button 10 seconds before the beep) and bringing it closer to the hub (less than 1 meter away).
Common problems with the Xiaomi hub and how to solve them
Even with the right setup, users face typical problems.
1.The hub doesn't connect to Wi-Fi
- 🔌 Problem: Hub flashes orange, but does not go into connection mode.
- 🔧 Solution: Check that the router is working on 2.4 GHz (Hub does not support) 5 Turn off Fast Roaming on your router (802.11r/k/v). If guest Wi-Fi is used, turn off device isolation.
2.The devices are disconnected from the hub
- 🔌 Problem: Sensors periodically disappear from the list of devices.
- 🔧 Solution: Check the distance between the hub and the device (maximum 10-15 meters without obstacles). Make sure there are no sources of interference (microwaves, cordless phones). Update the hub's firmware and devices.
3 Automation doesn’t work without the internet
- 🔌 Problem: Scenarios stop running when Wi-Fi is turned off.
- 🔧 Solution: Check that all devices in the script are connected to the hub ZigBee/Bluetooth (Make sure the script is set to “local” (in Mi Home, when creating automation, select “Do without internet»).
⚠️ Warning: If the hub stops responding to commands, try a hard reset: press the button for 10-15 seconds until the indicator flashes red quickly.
💡
Most of the problems with the Xiaomi hub are related to unstable Wi-Fi or interference at 2.4 GHz. If devices are periodically disconnected, first check the router channel and move the hub closer to the center of the house.
Xiaomi Hub Alternatives: When You Don’t Need It
Xiaomi’s hub isn’t the only way to build a smart home, but in some cases, you can do without it:
1. Direct Wi-Fi connected devices
Some Xiaomi gadgets (e.g. Mi Robot Vacuum, Mi Air Purifier, Yeelight) connect directly to the router and are managed via the cloud.
Systems based on other protocols
- 🏠 Home Assistant + ZigBee Coordinator: Allows Xiaomi devices to be integrated into an open ecosystem without being tied to the Mi Cloud.
- 🔄 Apple HomeKit: Some Aqara devices support HomeKit directly (e.g. Aqara Hub) M2).
- 🤖 Google Home/Alexa: You can connect the Xiaomi hub to voice assistants via Mi Home, but the functionality will be limited.
3. Local gateways of other brands
If you lack the capabilities of the Xiaomi hub, consider the alternatives:
- 🔹 Aqara Hub M2: Supports ZigBee 3.0, HomeKit and has built-in IR-blaster.
- 🔹 Sonoff ZigBee Bridge: Open firmware, Home Assistant compatibility.
- 🔹 Tuya ZigBee Hub: Works with Xiaomi devices through third-party integrations.
However, there are disadvantages to alternatives: for example, Aqara Hub. M2 Xiaomi is more expensive than the standard Xiaomi hub, and Home Assistant requires a separate server (for example, Raspberry Pi). Xiaomi Hub remains the optimal solution for most users due to the balance of price, compatibility and ease of customization.