Why Xiaomi Gateway in a Smart Home is needed: 5 key features + connection scheme

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.

πŸ“Š What kind of Xiaomi gateway you have installed?
Mi Home Gateway (round)
Mi Home Gateway 2 (square)
Aqara Hub M1S
Aqara Hub M2
Other/No gateway

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).

  1. 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.
  2. Local automation: If the motion sensor is working, turn on the lights, scenarios are performed even without the Internet (if the devices support Zigbee).
  3. Remote management: With Mi Home or Aqara, you can control devices from anywhere in the world.
  4. Voice control: The gateway integrates with Alice, Google Assistant and Siri (via HomeKit for Aqara models).
  5. 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:

ModelSupport for ZigbeeAdditional protocolsMax. Devices.FeaturesPrice (β‰ˆ)
Mi Home Gateway 1 (round)Zigbee 3.0β€”32RGB-lighting, built-in speaker (syrene)2 500 β‚½
Mi Home Gateway 2 (square)Zigbee 3.0Bluetooth LE64HomeKit support, improved antenna3 200 β‚½
Aqara Hub M1SZigbee 3.0Wi-Fi, Ethernet128HomeKit support, Ethernet port, backup power4 500 β‚½
Aqara Hub M2Zigbee 3.0Wi-Fi, Ethernet, IR-128Built-in IR- transmitter for control of equipment5 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:

  1. Connect the gateway to the outlet. Wait for the orange light to blink.
  2. Open the Mi Home app, click + β†’ Add Device β†’ select Gateway.
  3. Follow the instructions in the app: confirm the flashing indicator, select a 2.4 GHz Wi-Fi network and enter a password.
  4. Wait for the setup to be completed (the hub will issue a voice greeting in Chinese – that’s fine).
  5. 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:

  1. Open Profile β†’ Automation β†’ Create.
  2. Select a trigger (condition): for example, β€œMotion sensor is working.”
  3. Add the action: "Switch on the lamp."
  4. 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
IF (Door Opening Sensor is Activated) THIS: 1. Turn on the hallway light (Brightness 100%) 2. After 5 minutes turn off the lights, IF the motion sensor does not detect activity 3. Send a notification if the door remains open for more than 10 minutes

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 causeDecision
Gateway does not connect to Wi-FiWrong Password or 5 GHz NetworkReconnect to 2.4GHz Wi-Fi, check the region in the router settings (should be Russia/Europe)
Sensors are offline.Zigbee weak signal or interferenceMove the gateway to the center of the house, avoid proximity to microwaves or cordless phones
Scripts don't work.Devices do not support local automationCheck 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 cloudReset the settings with a button on the case (hold 10 seconds), then reconnect.

If the device stops responding to commands, try:

  1. Reboot the gateway (switch off power for 1 minute).
  2. Update the firmware of the hub and connected devices.
  3. 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:

  1. Enable LAN Control in the gateway settings (in Mi Home, go to Device Profile β†’ Settings β†’ Local Network).
  2. Add the gateway as a device to Home Assistant through the Xiaomi Miio component.
  3. 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.

FAQ: Frequent questions about Xiaomi gateway

Can you use the Xiaomi gateway without the internet?
Yes, but with limitations. Locally, it will work: Scenarios between Zigbee devices (like motion sensor β†’ lamp); Device management via Mi Home on the local network; not available: Remote control from the outside of the house; weather or sunrise/dusk time scenarios; Voice control via cloud services (Alice, Google Assistant).
How many devices can be connected to a single gateway?
Depending on the model: Mi Home Gateway 1/2: up to 32 devices (recommended no more than 20 for stable operation); Aqara Hub M1S/M2: up to 128 devices. If you need to connect more devices, install a second gateway (but note that networks will not merge).
Can I use the Aqara gateway with Xiaomi devices?
No, ecosystems are incompatible at the protocol level. Aqara devices only work with Aqara hubs, and Xiaomi devices work with Mi Home Gateway. Except that some devices (like Yeelight bulbs) support both standards.
How to reset the gateway to factory settings?
Press and hold the button on the gateway body for 10-15 seconds until the indicator flashes orange quickly. Once reset, the hub will be ready for a new setup. ⚠️ All connected devices and scripts will be deleted!
Why does the lock beep at night?
This is triggered by the built-in siren when running a script (e.g., when a motion sensor is triggered or a door is opened).To turn off the sound: Open the Mi Home app β†’ select the gateway. Go to Settings β†’ Sounds and Alerts. Turn off the Voice Alerts option or set a quiet schedule.