Connecting Xiaomi Gateway to Smart Home: Full Instruction with Expert Advice

Xiaomi Gateway (or Mi Smart Home Gateway) is a central device that connects all components of the smart home ecosystem from the brand. Without it, many sensors (movements, door openings, gas leaks) and actuators (sockets, lamps, sirens) simply won't be able to interact with your smartphone or voice assistants. However, the process of connecting the gateway often raises questions from choosing the right model to setting up integration with Google Home or Apple HomeKit.

In this article, we'll look at not only the basic connection procedure, but also the nuances that the manufacturer doesn't see, such as why the Mi Gateway 3 might not see the sensors from Aqara, how to bypass the region restrictions in the Mi Home app, and what to do if the indicator on the device flashes orange instead of the usual blue, and you'll find relevant connection schemes for different scenarios, from a studio apartment to a country house with several floors.

Choosing a gateway model: which is right for you

There are several versions of Xiaomi gateways on the market, and their compatibility with devices varies.

  • πŸ”Ή Mi Gateway 1 (round, with an Ethernet cable connector) is an outdated model, but still works with most of the sensors Xiaomi and Aqara.
  • πŸ”Ή Mi Gateway 2 (square, no Ethernet) - simplified version with only Wi-Fi and Bluetooth!
  • πŸ”Ή Mi Gateway 3 (with display and speaker) is a flagship model with support for ZigBee 3.0, voice control and the ability to use as an alarm clock or radio. Works with Aqara, but requires firmware for some devices.
  • πŸ”Ή Aqara Hub (from a subsidiary brand) – optimized for Aqara devices, but can also manage some Xiaomi gadgets. Supports HomeKit without additional manipulation.

Key point: if you plan to use Aqara sensors (e.g. Aqara) Door/Window Sensor or Aqara Motion Sensor, avoid Mi Gateway 2 β€” It only works with Xiaomi devices on Bluetooth protocol. For a full-fledged smart home, you better choose Mi Gateway. 3 or Aqara Hub.

πŸ“Š What kind of Xiaomi gateway do you use?
Mi Gateway 1
Mi Gateway 2
Mi Gateway 3
Aqara Hub
I haven't bought it yet.

Also note regional restrictions: Gateways purchased in China (with firmware) CN), They may not support the Russian-language interface in the application and have problems connecting to Mi Home servers in Europe. EU or RU.

Preparation for connection: what to do before installation

Before you start setting up, follow a few mandatory steps:

Make sure the router supports 2.4 GHz (the gateway does not work on 5 GHz)

Download the latest version of the Mi Home app (App Store or Google Play)

Prepare a Xiaomi account (if not, register)

Check the compatibility of sensors with the selected gateway model

Place the gateway in the center of the house (for better coverage of the ZigBee network)-->

Pay special attention to the placement of the gateway. The device should be at a distance of no more than 10-15 meters from the extreme sensors (ideally without obstacles like concrete walls). If the house is large or has a complex layout, you will need a Mesh network of several gateways or repeaters (for example, Xiaomi ZigBee Repeater).

⚠️ Note: If your router only works in the 5GHz band, the Xiaomi gateway will not be able to connect to the network. In the router settings, turn on 2.4GHz mode or buy a separate router for the smart home.

Also check the gateway firmware version.Outdated versions (e.g. below) 1.4.1_176 Mi Gateway 3) You can update the firmware through the Mi Home app in the Profile section. β†’ Settings β†’ Firmware update.

Step-by-step: connecting the gateway to Wi-Fi and Mi Home

The connection process takes 5-10 minutes, if you follow the algorithm:

  1. Connect the gateway to the outlet. Wait for the indicator to flash orange (waiting mode).
  2. Open the Mi Home app and click Add Device (+) in the upper right corner.
  3. Select the Gateway category and the model of your device. If it's not on the list, try the Other Gateway option.
  4. Hold your smartphone to the gateway (at a distance of 10-20 cm) and wait for the beep. Some models require you to press the reset button for 5 seconds.
  5. Select your Wi-Fi network (2.4GHz only!) and enter a password.The gateway does not support networks with hidden SSID.
  6. Wait until the setting is complete. The indicator should light up in blue (normal operation mode).

If you have a β€œCan’t Add Device” error during the connection step, try:

  • πŸ”„ Reset the gateway (remove the plug from the socket for 30 seconds).
  • πŸ“Ά Switch your smartphone to the mobile Internet (sometimes problems are caused by blocking the router).
  • 🌍 Change the region in the Mi Home profile to China (if you have a Chinese version of the gateway).

πŸ’‘

If the gateway does not connect to Wi-Fi, try temporarily disabling router protection (WPA3, filtering MAC-Addresses) or use a guest network without a password (for settings only).

Setting up ZigBee network and adding sensors

Once the gateway is connected to Wi-Fi, you need to configure the ZigBee network to interact with the sensors, which provides low power consumption and stable communication between devices.

To add a sensor:

  1. In the Mi Home app, go to the gateway section and click Add Device.
  2. Activate the pairing mode on the sensor (usually you need to press and hold the button for 3-5 seconds until the indicator flashes).
  3. Wait for the gateway to find the device. It can take up to 2 minutes.

If the sensor is not detected:

  • πŸ”‹ Check the battery charge (some sensors use an element) CR2032, discharged in 1-2 years).
  • πŸ“‘ Make sure the gateway is not more than 10 meters away (obstacles are critical for ZigBee).
  • πŸ”„ Reset the gateway and try again.
Sensor modelCompatible with Mi Gateway 3Compatible with Aqara HubNotes
Xiaomi Mi Door/Window Sensorβœ… Yes.βœ… Yes.Requires a battery replacement every 2 years
Aqara Motion Sensorβœ… Yes (with firmware 1.4.1).+)βœ… Yes.Supports sensitivity adjustment
Xiaomi Mi Smart Socket❌ No (only Wi-Fi)❌ No.Connects directly to the router
Aqara Water Leak Sensor⚠️ Partially (needs Aqara hub)βœ… Yes.False positives are possible.

⚠️ Note: Aqara sensors with ZigBee 3.0 protocol (such as Aqara Temperature & Humidity Sensor) may not work properly with Mi Gateway 1.

Integration with Google Home, Apple HomeKit and Yandex

Xiaomi’s gateway can be linked to other smart home ecosystems, but there are nuances:

  • 🏠 Google Home: Supported through the Mi Home app (profile section) β†’ Settings β†’ Smart home. β†’ Google Assistant Requires a Google account and enabled API Xiaomi.
  • 🍎 Apple HomeKit: Officially only works with Aqara Hub. Mi Gateway requires middleware like Home Assistant or HOOBS.
  • πŸ—£οΈ Yandex Alice: Integration is possible through the β€œSmart Home Xiaomi” skill in the Yandex app. Not all devices are supported (for example, gas leak sensors may not be displayed).

For HomeKit, the easiest solution is to buy an Aqara Hub β€” it's Apple certified and doesn't require any manipulation β€” but if you have a Mi Gateway 3, you'll have to use a Homebridge on a Raspberry Pi or similar device.

How to set up Homebridge for Mi Gateway 3
1. Install Homebridge on Raspberry Pi or NAS. 2. Add the mi-home-plugin plugin (command: npm install homebridge-mi-home). 3. In the config.json file, specify the access token from Mi Home (you can get it through the Mi Home Token Extractor app). 4. Restart Homebridge and add devices to the Home app on your iPhone.

For Google Home, it is important that Mi Home is enabled in the settings. API Xiaomi (section Profile) β†’ Settings β†’ Smart home. β†’ If you do not have an option, change region to China or the United States in your profile.

Common mistakes and their solutions

Even with the right setup, users face problems, and here are the most common ones and ways to fix them:

Problem.Possible causeDecision
Gateway does not connect to Wi-FiThe router only works 5 GHzEnable 2.4 GHz mode or use a separate router
The indicator flashes orangeError of connecting to Xiaomi serversChange the region in Mi Home to China or reboot the gateway
Sensors fall off the grid.ZigBee weak signalMove the gateway closer to the sensors or add a repeater
Gateway not found in Mi HomeOutdated firmwareUpdate the gateway through the application or manually

If the gateway is no longer responsive to commands, try resetting it to factory settings.

  1. Press and hold the button on the gateway for 10 seconds until the indicator blinks quickly.
  2. Release the button and wait for the reboot (the indicator will go out and light up in blue).
  3. Re-add the gateway to the Mi Home app.

⚠️ Warning: Resetting the gateway removes all the sensors associated with it from the system, and after resetting, they will have to be reconnected.

Advanced settings: automation and scenarios

The main advantage of the Xiaomi gateway is the ability to create automated scripts, for example, you can configure:

  • πŸ’‘ Light activation when the motion sensor is activated.
  • 🚨 Launching a siren when gas leak is detected.
  • πŸ”“ Send notifications to the phone when opening the front door.

To create a script:

  1. In the Mi Home app, go to Automation.
  2. Click Add and select If... (condition) and To... (action).
  3. Configure triggers (e.g. Motion Sensor β†’ Motion Detected) and actions (Smart Lamp β†’ Enable).

For complex scenarios (such as those with a delay or multiple conditions), use Yandex Smart Home or Home Assistant, which allow you to create chains of actions that cannot be implemented in a standard Mi Home application.

πŸ’‘

For stable operation of automations, it is recommended to use the Mi Gateway 3 gateway - it supports up to 32 connected devices and has a backup communication channel in case of a Wi-Fi break.

FAQ: Answers to Frequent Questions

Can I connect the Xiaomi gateway without the Mi Home app?
No, officially, the gateway is only configured via Mi Home, but there are alternative protocols like Home Assistant that allow you to manage devices without the Xiaomi app, but this requires technical skills.
Why does the Mi Gateway 2 not see Aqara sensors?
The Mi Gateway 2 only works on Bluetooth protocol and does not support ZigBee, which is built on Aqara devices.
How to update the lock firmware manually?
If the automatic update doesn’t work, download the firmware from Xiaomi’s official website (support section). Next: Unpack the archive with the firmware. In the Mi Home app, go to the gateway settings and select Local Update. Download the firmware file and wait for the process to be completed (don’t turn off the power!).
Can I use one gateway for two apartments?
Technically, yes, but the distance between the sensors and the gateway should not exceed 10-15 meters, and for two apartments it is better to install separate gateways or use a Mesh network with repeaters.
How to transfer the gateway and sensors to another Mi Home account?
To do this: In your old account, remove the gateway from the application (Devices β†’ Settings β†’ Delete). Reset the gateway to factory settings (hold the 10 seconds button). Add the gateway to your new account and reconnect the sensors. The sensors don't automatically migrate - they need to be added manually.