You bought a Xiaomi motion sensor or a Yeelight light bulb, but you don't understand why they don't work without an additional device, or you want to automate lighting, but you don't know how to connect all devices into a single system? The smart home gateway from Xiaomi is a central element of the ecosystem, without which many functions are simply not available.
In this article, weβll explore why the Mi Home Gateway (or its Aqara Hub counterpart) is necessary for a smart home to function, what tasks it solves, and how to set it up correctly. Youβll learn about the hubβs hidden capabilities, from managing Zigbee to creating complex scenarios with triggers for time, weather, or other devices, and weβll compare gateway models and explain which ones to choose for your tasks.
What is Xiaomi Gateway and How Does It Work in a Smart Home?
The Xiaomi Mi Home Gateway is a bridge between your smart devices and the Xiaomi cloud, and without it, most sensors (movements, door openings, water leaks) and actuators (sockets, lamps, valves) will not be able to transfer data to the Mi Home or Aqara app.
- π‘ Zigbee Network Coordinator β combines up to 32 devices into a single self-organized mesh network (if one device leaves coverage, the signal will go through neighboring ones).
- π Internet Gateway β transmits data from sensors to the Xiaomi cloud for remote control via a smartphone.
- β‘ Local processor β performs simple automation scenarios even without the internet (e.g., turning on the light when a motion sensor is triggered).
Technically, the gateway is a mini-computer based on the Realtek RTL8197D processor with 64 MB of RAM and a built-in Zigbee 3.0 module. It connects to the router via Wi-Fi 2.4 GHz (5 GHz is not supported!) and is powered by a 220V network. Important: the hub does not replace the router, but complements it, creating a separate network for smart devices.
Example of work: When the Xiaomi Door/Window Sensor door opener detects movement, it sends a signal to the gateway via the Zigbee protocol. the hub processes the event and either executes a local script (e.g., turns on a Yeelight lamp), or sends a notification to your smartphone via the cloud.
5 main tasks that solve the gateway Xiaomi
Without a gateway, many Xiaomi devices will only work manually (e.g., a light bulb can be switched on with a button, but not through an app).
- Connecting devices into a single network: Sensors, switches and lamps communicate through the gateway rather than directly with the router, which reduces the load on Wi-Fi and increases stability.
- Local automation: If the motion sensor is working, turn on the lights, scenarios are performed even without the Internet (if the devices support Zigbee).
- Remote management: With Mi Home or Aqara, you can control devices from anywhere in the world.
- Voice control: The gateway integrates with Alice, Google Assistant and Siri (via HomeKit for Aqara models).
- Security: The hub encrypts traffic between devices and the cloud, protecting against command interception (for example, an attacker will not be able to remotely open your smart lock).
Critical feature: Xiaomi gateway is not compatible with Wi-Fi or Bluetooth devices unless they support the Zigbee protocol. For example, the Xiaomi Mi Home Camera camera connects directly to the router, and the Xiaomi Temperature & Humidity Sensor temperature sensor only through the gateway.
π‘
If you already have a Yeelight smart bulb on Wi-Fi, you can connect it to an ecosystem without a gateway, but for sensors or switches, the Xiaomi/Aqara hub is a must.
Comparison of lock models: which to choose in 2026
Xiaomi has several gateway models that feature design, protocols and functionality, and the following is an up-to-date comparison table:
| Model | Support for Zigbee | Additional protocols | Max. Devices. | Features | Price (β) |
|---|---|---|---|---|---|
| Mi Home Gateway 1 (round) | Zigbee 3.0 | β | 32 | RGB-lighting, built-in speaker (syrene) | 2 500 β½ |
| Mi Home Gateway 2 (square) | Zigbee 3.0 | Bluetooth LE | 64 | HomeKit support, improved antenna | 3 200 β½ |
| Aqara Hub M1S | Zigbee 3.0 | Wi-Fi, Ethernet | 128 | HomeKit support, Ethernet port, backup power | 4 500 β½ |
| Aqara Hub M2 | Zigbee 3.0 | Wi-Fi, Ethernet, IR- | 128 | Built-in IR- transmitter for control of equipment | 5 800 β½ |
For most users, the basic Mi Home Gateway 1 model is enough if you do not need integration with Apple HomeKit. If you plan to connect more than 32 devices or want backup power, pay attention to the Aqara Hub M1S. The M2 model is suitable for controlling IR devices (air conditioners, TVs).
β οΈ Warning: Aqara and Mi Home gateways are not fully compatible. Aqara devices (such as the Aqara Water Leak Sensor) will not work with the Mi Home Gateway hub, and vice versa. Check compatibility on the official list of supported devices before buying.
How to connect the gateway Xiaomi: step-by-step instructions
The gateway configuration takes no more than 10 minutes.
- π± Smartphone with Mi Home (Android/iOS) or Aqara (for Aqara hubs).
- π Rouge 220V near the router (gateway cable length is 1.5 m).
- πΆ A router with 2.4GHz Wi-Fi support (5GHz is not suitable!)
Connection steps:
- Connect the gateway to the outlet. Wait for the orange light to blink.
- Open the Mi Home app, click + β Add Device β select Gateway.
- Follow the instructions in the app: confirm the flashing indicator, select a 2.4 GHz Wi-Fi network and enter a password.
- Wait for the setup to be completed (the hub will issue a voice greeting in Chinese β thatβs fine).
- Place the gateway in the center of the house for better coverage of the Zigbee network (avoid metal obstacles).
The indicator is lit green (connected to Wi-Fi)|
The gateway is displayed in the Mi Home| appendix
Voice Alert is working (check in settings)|
Sensors are connected without error-->
If the gateway is not connected:
- π Reboot the router and hub (turn off power for 30 seconds).
- πΆ Check that the smartphone is connected to the same 2.4GHz Wi-Fi network as the gateway.
- π§ Update the gateway firmware in the application settings (Device Profile β Software Update).
Automation Scenarios: How to Make Devices Work Together
The main advantage of the gateway is the ability to create complex automation scenarios that save time and make the house smarter.
- π Smart wake-up: At 7:00, the gateway turns on the Yeelight lamp at 30% brightness, and after 10 minutes it launches the coffee maker through a smart socket.
- πͺ Security: If the door opening sensor is triggered at night, the gateway turns on the siren and sends a notification to the phone.
- π§ Leak protection: When the Aqara water sensor is triggered, the hub covers the smart tap and turns off the water heater.
The scripts are customized in the Mi Home app under Automation, and here's how to create a simple script:
- Open Profile β Automation β Create.
- Select a trigger (condition): for example, βMotion sensor is working.β
- Add the action: "Switch on the lamp."
- Save the script. Now it will work even without the internet (if the devices support Zigbee).
For advanced users, multi-level scenarios with multiple conditions are available.
IF (Motion sensor is activated)
E (Time between 20:00 and 23:00)
E (Lighting < 50 lux)
Then turn on the lamp at 70% brightnessβ οΈ Warning: Scenarios using weather data (e.g., βif it rains, close the blindsβ) require an internet connection because weather information is taken from the Xiaomi cloud.
An example of a complex scenario with a delay
Common Problems and Their Solutions
Even when set up properly, the gateway can be unstable, and here are some common mistakes and ways to fix them:
| Problem. | Possible cause | Decision |
|---|---|---|
| Gateway does not connect to Wi-Fi | Wrong Password or 5 GHz Network | Reconnect to 2.4GHz Wi-Fi, check the region in the router settings (should be Russia/Europe) |
| Sensors are offline. | Zigbee weak signal or interference | Move the gateway to the center of the house, avoid proximity to microwaves or cordless phones |
| Scripts don't work. | Devices do not support local automation | Check compatibility in documentation or replace the device with the Zigbee version |
| The gateway is constantly flashing orange. | Failure of firmware or loss of communication with the cloud | Reset the settings with a button on the case (hold 10 seconds), then reconnect. |
If the device stops responding to commands, try:
- Reboot the gateway (switch off power for 1 minute).
- Update the firmware of the hub and connected devices.
- Remove and re-add the problem device in the application.
Important: if you have multiple gateways (for example, on different floors), they do not join into a single network; each hub creates its own Zigbee network. Use repeaters (for example, Xiaomi Zigbee Smart Plug smart outlets) to expand coverage.
Integration with other systems: HomeKit, Google Home, Alice
Xiaomiβs gateway can be linked to other smart home ecosystems, but there are nuances:
- π Apple HomeKit: Supported only by Aqara Hub gateways M1S/M2 and certain devices (check the Works with HomeKit sign on the package). To connect, scan the QR- code on the hub in the Apple Home app.
- π€ Google Assistant: All Xiaomi gateways are compatible through the Mi Home app. Commands are, "OK, Google, turn on the living room light."
- π£οΈ Alice (Yandex): Requires a skill Mi Home connection in Alice's settings. Voices are only supported for cloud-based devices (not all Zigbee devices work).
Integration with Home Assistant (advanced automation system) requires:
- Enable LAN Control in the gateway settings (in Mi Home, go to Device Profile β Settings β Local Network).
- Add the gateway as a device to Home Assistant through the Xiaomi Miio component.
- Configure automation through the YAML- configuration.
β οΈ Warning: When you connect to HomeKit, some of Xiaomiβs features may become unavailable (e.g., voice alerts for the gateway), and HomeKit does not support local scripts β all commands will pass through the Apple cloud.
π‘
For maximum reliability, use local scenarios (no cloud) and reserve critical devices (e.g. water leak sensors) on a separate gateway.