Xiaomiβs gateway is a central element of the smart home ecosystem from the Chinese brand, which connects sensors, lamps, sockets and other devices through the Zigbee protocol. Without it, most Mi Home gadgets simply will not work: the gateway acts as a bridge between them and your smartphone, processing commands and providing a stable connection. But many users face difficulties already at the stage of the first connection β the indicator flashes wrong, the application does not see the device, the Wi-Fi network refuses to synchronize.
In this article, weβll look at all the ways Xiaomi connects to its gateway, from basic configuration via Mi Home to integration with third-party systems like Home Assistant or Google Home. Weβll focus on common bugs (such as when the gateway is not defined on the network) and the nuances of working with different versions of the firmware. If youβre just starting out building a smart home or want to reconfigure an existing gateway, here youβll find the answers to all the questions.
What are Xiaomi gateway models and how they differ
There are several generations of Xiaomi gateways on the market, and their capabilities vary significantly.
- πΉ Xiaomi Mi Smart Home Gateway 1 (first generation) - basic version with support for Zigbee 1.2, no Ethernet connection. It has a built-in speaker and LED indicator, but limited in the number of connected devices (up to 30).
- πΉ Xiaomi Mi Smart Home Gateway 2 - An improved version with Ethernet port (an alternative to Wi-Fi), support for Zigbee 3.0 and an increased device limit (up to 128). Supports backup power via USB-C.
- πΉ Xiaomi Mi Smart Home Gateway 3 (or Aqara Hub) M2) β The flagship model with advanced automation capabilities, Matter support and integration with Apple HomeKit. IR-blaster.
- πΉ Aqara Hub E1 β A budget version from the subsidiary brand Aqara, compatible with the Xiaomi ecosystem. Supports up to 128 devices, but lacks dynamics and performance. IR-port.
If you want maximum compatibility with Xiaomi and Aqara devices, take the Gateway. 2 gateway 3. For a minimalist smart home (sensors) doors/windows + The first version will be enough. Please note that the first generation of gateways does not support the Zigbee protocol. 3.0, This could cause problems with new devices (e.g. Aqara sensors) FP2).
Important: All Xiaomi gateways only work with 2.4GHz Wi-Fi networks. Connecting to 5GHz or Ethernet (if there is a port) is possible, but requires additional settings.
Preparing for the connection: what to do before setting up
Before you start setting up, make sure you have everything you need:
Install the Mi Home app (version no lower than 6.0.100)
Prepare a Xiaomi account (register if not already)
Check that the router supports 2.4 GHz (turn off 5 GHz to avoid conflict)
Unpack the gateway and connect it to power (use the original adapter)
Make sure your smartphone is connected to the same Wi-Fi network as the gateway.-->
If you use an Ethernet gateway (like Gateway 2), connect it to your router via a cable. LAN. This will increase connection stability, especially if there are many Wi-Fi devices in the house. For models without Ethernet (for example, Gateway 1), be sure to check the strength of the Wi-Fi signal at the gateway installation site - a weak signal can lead to communication breaks with sensors.
Also consider:
- π± The Mi Home app should be installed on a smartphone with Android 5.0+ or iOS 10.0+. On older versions of the OS, synchronization errors are possible.
- π Xiaomiβs account region is better to choose China (if you bought a gateway in an official store) or Russia (for devices with local firmware.
- π Don't connect the gateway through USB-Hub or extension cord, which can cause unstable operation. Use only the original power supply.
Step-by-step: how to connect the Xiaomi gateway through Mi Home
Consider the standard way to connect via the Mi Home app (relevant for all gateway models).
- Open the Mi Home app and log in. Go to Devices section β Add the device (+).
- Select the Gateway category (or enter the model name manually in the search bar).
- Click on your gateway model (e.g. Xiaomi Mi Smart Home Gateway 2).
- Follow the instructions on the screen: confirm the flashing of the indicator on the gateway (should burn orange or yellow).
- Select a 2.4GHz Wi-Fi network and enter a password. If the gateway supports Ethernet, the application will offer an alternative way to connect.
- Wait until the process is completed (usually takes 1-3 minutes) and after a successful connection, the gateway will issue a voice message in Chinese (e.g., "Shebei lianjie chenggong" - "Device is connected successfully").
If the gateway is not connected:
- π Restart router and gateway (turn off power for 30 seconds).
- πΆ Check that the smartphone and gateway are on the same Wi-Fi network.
- π οΈ Update the gateway firmware through Settings β Update in the application Mi Home.
π‘
If the gateway issues audible alerts in Chinese, you can turn them off in the device settings in Mi Home: go to Gateway Settings β Night lighting mode β Disable voice notifications
Setup of the gateway via Ethernet (for models with LAN-port)
Xiaomi Mi Smart Home Gateway 2 and Aqara Hub M2 Supports Ethernet connection, which is useful in the following cases:
- π‘ Weak Wi-Fi signal at the gateway installation site.
- π The need for increased connection stability (e.g. for security systems).
- π« Restrictions of router on the number of connected devices over Wi-Fi.
To connect the gateway through LAN:
- Connect the gateway to the router via an Ethernet cable (use the port) LAN, not WAN!).
- Connect the gateway to power. The indicator should light up blue (unlike orange when connected to Wi-Fi).
- In the Mi Home app, select Add Device β Gateways, follow the instructions. The app will automatically determine the type of connection.
If the gateway is not defined by Ethernet:
- π Check the cable - try another one LAN-cable (for example, from a router).
- π Reboot router and gateway.
- π οΈ In the router settings, turn on the option IGMP Snooping (sometimes required to run Zigbee devices correctly).
π‘
Ethernet connectivity reduces the latency (ping) between the gateway and sensors, which is critical for security systems (e.g. motion sensors or gas leaks).
Integration of Xiaomi Gateway with Other Smart Home Systems
The Xiaomi gateway can be connected not only to Mi Home, but also to third-party platforms:
| Platform | Connection method | Limitations |
|---|---|---|
| Google Home | Through Mi Home. β Settings β Smart home. β Google Assistant | Not all devices are supported (for example, Aqara sensors may not be displayed) |
| Apple HomeKit | Only for the Aqara Hub M2 (scanning required QR-code in the Aqara Home app) | Limited functionality (no support for some automation) |
| Home Assistant | Through Xiaomi Miio integration (device token required) | You need skills to work with YAML-configuration |
| Alice (Yandex) | Through Mi Home. β Settings β Smart home. β Yandex | It is unstable and often requires reconnection. |
To connect to Home Assistant, you will need:
- Get your gateway Mi Home Token (e.g., through the Mi Home Token Extractor app for Android).
- Add Xiaomi Miio integration to configuration.yaml: miio: devices: - host: 192.168.1.100 # IP-gateway: YOUR_TOKEN_HERE model: lumi.gateway.v3 # lock-model
- Reboot Home Assistant.
How to get a gateway token without root rights?
Typical Connection Errors and How to Fix Them
Even when following the instructions, users often face problems.
β οΈ Warning: If the indicator on the gateway flashes red, this means a critical firmware error, in which case you need to reset to factory settings (hold the reset button for 10 seconds) and reconnect.
| Problem. | Possible cause | Decision |
|---|---|---|
| Gateway not found at Mi Home | Disparity between the account region and the gateway firmware | Change the region in Mi Home to China or update the firmware |
| Constant blinking in orange | Incorrect Wi-Fi password entry or weak signal | Check the password, move the gateway closer to the router, or use Ethernet |
| Gateway's connected, but can't see sensors | Devices are not coupled or too far from the gateway | Reset the gateway and repeat pairing of sensors (hold the button on the sensor for 5 seconds) |
| Voice notifications in Chinese | Gateway region set as China | Change the region in Mi Home to Russia or turn off voice in the settings |
If the gateway is connected but periodically disconnected:
- π Check the power supply β only use the original adapter (some unoriginal units give insufficient voltage).
- πΆ Change the Wi-Fi channel on the router (Telephones 1, 6, or 11 are recommended to minimize interference).
- π οΈ Update the routerβs firmware β outdated versions may conflict with Zigbee devices.
π‘
If the gateway often loses communication with sensors, try adding a Zigbee repeater (such as the Xiaomi Smart Plug or Aqara Wall Switch) to the network, which will strengthen the signal and increase the coverage radius.
Additional settings: automation, scenarios and security
Once the gateway is connected, you can set up automation, for example, turning on the light when the motion sensor is triggered or alerting you when water leaks.
- In Mi Home, go to Automation β Create a script.
- Select a condition (e.g. Motion Sensor β Motion Detected).
- Add an action (such as a smart lamp) β Turn on).
- Save the script and test it out.
To improve safety:
- π Change the password from the Zigbee network (it is the default Wi-Fi password). This can be done in the gateway settings in Mi Home.
- π΅ Turn off unnecessary notifications (such as low battery charge sensors) to avoid spam.
- π Regularly update the gateway firmware β new versions fix vulnerabilities.
If you use a gateway for security (such as with door opening or smoke sensors), set up alerts on your smartphone:
- Go to the sensor settings in Mi Home.
- Enable the Notification option and select events (such as Opening a Door).
- Please provide contact information for emergency alerts (you can add several numbers).
π‘
For critical sensors (such as gas leaks), set up duplicate alerts via a Telegram bot or IFTTT β This will increase the reliability of the system.