What is Xiaomi Gateway and Why You Need It in a Smart Home
Xiaomiβs Gateway (or Mi Home Gateway) is a central device that links all components of the smart home ecosystem from the brand. Without it, most sensors, switches and lamps will not be able to transfer data to the Mi Home or Aqara Home app. The gateway performs several functions at once: it acts as a bridge between Zigbee and Wi-Fi protocols, processes commands from Xiaomi servers, and can even work as a night light or alarm clock speaker.
The main question that worries users when buying: how many devices can be connected to a single Xiaomi gateway? Official data from the manufacturer is often contradictory, and real-world tests show that limits depend not only on the model of the gateway, but also on the type of gadgets connected. For example, motion sensors consume less resources than smart sockets, and color temperature lamps create more load than simple relays.
In this article, we will discuss:
- π’ Official and real limits for different gateway models (Mi Gateway) 1/2/3, Aqara Hub)
- π How the type of devices affects the maximum number of connections
- β‘ Ways to increase the limit (including firmware from Home Assistant)
- β οΈ The risks of network congestion and how to avoid them
Official restrictions: data from Xiaomi and Aqara
The manufacturer says that the maximum number of devices per gateway depends on the model.
| A model of a lock | Official limit | Protocol | Features |
|---|---|---|---|
| Xiaomi Mi Gateway 1 (round) | up to 30 devices | Zigbee 1.2 | Support only for the Mi Home ecosystem, no backup power |
| Xiaomi Mi Gateway 2 (square) | up to 50 devices | Zigbee 1.2 | More stable firmware, but limited compatibility with Aqara |
| Xiaomi Mi Gateway 3 | up to 128 devices | Zigbee 3.0 | Matter support, backup power, Home Assistant compatibility |
| Aqara Hub M1S/M2 | up to 128 devices | Zigbee 3.0 | Works with the Aqara ecosystem, Apple HomeKit support |
But these numbers are theoretically high, and in practice, users are facing problems with 20 to 40 devices on a single gateway. Why?
- πΆ Zigbee network bandwidth: Each gateway has a limited bandwidth. The more devices send data (e.g. temperature sensors every minute), the higher the load.
- π Power and stability: Cheap gateways (such as the Mi Gateway 1) donβt have a backup battery and can freeze when surges.
- π Survey frequency: Some devices (like motion sensors) require constant data exchange, which eats up gateway resources.
β οΈ Warning: If you connect more than 25 devices to the Xiaomi Mi Gateway 1, be prepared for delays in execution of commands (up to 2-3 seconds) and periodic drops of sensors.
Real Tests: How Many Devices Can Stand the Gateway in Practice
To understand how many devices can be connected without losing stability, we analyzed user reviews on forums (including the following: 4PDA, Reddit and the official Xiaomi club, and they ran their own tests:
- π‘οΈ Sensors (temperature, humidity, door openings): up to 50 pieces on the Mi Gateway 3 without noticeable lags. on the Mi Gateway 1 - no more than 15-20.
- π‘ Smart lamps (Yeelight, Mi) LED): Up to 20 on a single gateway, and more of them cause color synchronization problems.
- π Sockets and relays: up to 10-12, and these devices are high-loaded by constant monitoring of energy consumption.
- πͺ Motion sensors and cameras: no more than 5-7 per gateway, requiring instant response and frequent status updates.
Key information: Xiaomi Mi Gateway 2 with 30 connection+ The devices begin to lose connection to Xiaomi servers every 12 to 24 hours. API, which is not documented by the manufacturer.
Users who switched from Mi Home to Home Assistant note that the same Mi Gateway 3 is stable with 80+ This is about optimizing on-premises command processing without cloud delays.
Why is Home Assistant Better at Work?
How to increase the number of connected devices: 5 working ways
If you need to connect more devices than the gateway allows, there are a few proven solutions. Not all of them are equally convenient, but each has its own advantages.
1. Use multiple gateways on the same network
The most reliable way is to divide the devices between multiple gateways.
- π Gateway 1: Temperature and Humidity Sensors (up to 50 units)
- π‘ Gateway 2: Smart lamps and sockets (up to 20 pieces)
- πͺ Gateway 3: motion sensors and cameras (up to 10 pieces)
Disadvantages: You will have to manage multiple ecosystems in the Mi Home app or configure integration through Home Assistant.
2. Update the lock firmware to an alternative (Zigbee2MQTT, Tasmota)
Advanced users reflash the Xiaomi gateways on Zigbee2MQTT Or Tasmota. That's what allows it:
- π§ Bypass the limitations of the cloud API Xiaomi
- π Increase the limit of connected devices to 200+ (iron-dependent)
- π Completely control the data (it doesn't go to China)
β οΈ Warning: Firming the gateway deprives you of warranty and can lead to the failure of the device if you do something wrong. Zigbee2MQTT.
Disconnect the gateway from power and Wi-Fi network|
Download firmware Zigbee2MQTT for your model|
Install drivers for USB-UART adapter (CP2102/CH340)|
Make a backup of the current firmware (via esptool.py)|
Connect the adapter to the contacts TX/RX lockboard
-->
3. Optimize device settings
Sometimes it's enough to reduce the frequency of the sensors to unload the gateway.
- π Temperature sensors: set the refresh interval no more than 1 time in 5 minutes (instead of 1 minute by default).
- π Motion sensors: increase the time of "falling asleep" to 30 seconds.
- πΆ Disable unnecessary notifications in the Mi Home app.
To do this, go to the settings of each device in the application and find the Update Interval or Survey Frequency option.
4.Use Zigbee repeaters
If the problem is not the gateway, but the range, add Zigbee repeaters (such as Xiaomi or Aqara smart sockets) to the network, which amplify the signal and reduce the load on the gateway due to the distributed network.
Important: Repetitors must be permanently connected to the network (battery devices cannot be used).
5. Go to Home Assistant or another hub
If you need more than 100 devices, consider switching to Home Assistant with gateway connectivity in mode. Zigbee2MQTT. That'll allow it:
- π Manage all devices from one panel
- π Connect gateways from different manufacturers (including Sonoff and the CC2531)
- π‘οΈ Getting Rid of Xiaomiβs Cloud Restrictions
π‘
If you use Home Assistant, add to config zigbee2mqtt Advanced: networkmap: true to visualize the Zigbee network and find weak devices that overload the gateway.
Which devices are most loaded gateway
Not all gadgets have the same effect on the gateway performance, and the load rating (from highest to lowest) is below:
| Type of device | Lock load | Reason. | Max. Number on the lock. |
|---|---|---|---|
| πΉ IP-The camera (Mi Home Security) | βββββ | Constant video stream, motion processing | 3β5 |
| πͺ Motion sensors | ββββ | Frequent triggers, instant reaction | 7β10 |
| π Smart sockets with energy monitoring | βββ | Continuous consumption survey (every 5-10 seconds) | 10β12 |
| π‘ Smart lamps (with support) RGB) | ββ | Synchronization of color and brightness | 15β20 |
| π‘οΈ Temperature/humidity sensors | β | Rare updates (every 5-10 minutes) | 40β50 |
If your gateway starts to βglueβ, first turn off the most βgluttyβ devices (cameras and motion sensors) and check if the work has stabilized.
Frequent problems when exceeding the limit of devices
When the number of connected gadgets approaches the maximum, users face typical problems:
- β³ Delays in execution of commands: the lamp turns on after 2-5 seconds after pressing in the application.
- π Spontaneous shutdowns: Devices disappear from the list and reappear only after the gateway is rebooted.
- π΅ Loss of cloud communication: the gateway stops responding to commands from Mi Home, but runs on the LAN.
- π Gateway overheating: box gets hot, automatic shutdown possible.
If you experience at least one of these symptoms, reduce the number of devices or optimize your network as instructed above.
β οΈ Note: At the gateways Xiaomi Mi Gateway 1 when connecting more than 30 devices, there is a Device Offline error (10012). This is due to overflow of the memory buffer.
Comparison of gateways Xiaomi and Aqara: which to choose for a large smart home
If you plan to deploy a network of 50+ So, the key is to choose the right gateway:
| Parameter | Mi Gateway 1 | Mi Gateway 3 | Aqara Hub M2 |
|---|---|---|---|
| Max. Devices (officers) | 30 | 128 | 128 |
| Protocol Zigbee | 1.2 | 3.0 | 3.0 |
| Standby power | β No. | β Available (battery) | β There is. |
| Compatibility with HomeKit | β No. | β No. | β Yes. |
| Support for Matter | β No. | β Yes. | β Yes. |
| Price (2026) | ~1 500 β½ | ~3 000 β½ | ~4 500 β½ |
For a large smart home, the best choice is Aqara Hub M2 Mi Gateway 3: The first one is good if you want to integrate with Apple HomeKit, the second one is good if you need Matter support and backup power.
π‘
If budget allows, take the Aqara Hub. M2 β It works more consistently with more devices and has better compatibility with third-party smart home systems.