Xiaomi Gateway: How many devices can be connected and how to get around the restrictions

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

πŸ“Š What kind of Xiaomi gateway do you use?
Mi Gateway 1 (round)
Mi Gateway 2 (square)
Mi Gateway 3 (with Zigbee 3.0)
Aqara Hub (M1S/M2)
The other/I don't know/

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 lockOfficial limitProtocolFeatures
Xiaomi Mi Gateway 1 (round)up to 30 devicesZigbee 1.2Support only for the Mi Home ecosystem, no backup power
Xiaomi Mi Gateway 2 (square)up to 50 devicesZigbee 1.2More stable firmware, but limited compatibility with Aqara
Xiaomi Mi Gateway 3up to 128 devicesZigbee 3.0Matter support, backup power, Home Assistant compatibility
Aqara Hub M1S/M2up to 128 devicesZigbee 3.0Works 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?
In Home Assistant, Xiaomi’s gateway works locally without constantly accessing China’s servers, reducing network load and eliminating cloud limitations. API, Artificially slow down the work in the official application Mi Home.

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 deviceLock loadReason.Max. Number on the lock.
πŸ“Ή IP-The camera (Mi Home Security)⭐⭐⭐⭐⭐Constant video stream, motion processing3–5
πŸšͺ Motion sensors⭐⭐⭐⭐Frequent triggers, instant reaction7–10
πŸ”Œ Smart sockets with energy monitoring⭐⭐⭐Continuous consumption survey (every 5-10 seconds)10–12
πŸ’‘ Smart lamps (with support) RGB)⭐⭐Synchronization of color and brightness15–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:

ParameterMi Gateway 1Mi Gateway 3Aqara Hub M2
Max. Devices (officers)30128128
Protocol Zigbee1.23.03.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.

FAQ: Answers to Frequent Questions

Can I connect devices from other brands (such as Tuya or Sonoff) to one Xiaomi gateway?
Officially, no. Xiaomi gateways only work with Zigbee-based devices certified for the Mi Home or Aqara ecosystem. However, there are workarounds: Use Home Assistant with integration Zigbee2MQTT β€” This will allow you to connect devices Tuya, Sonoff and other brands, reflash devices to alternative firmware (for example, Tasmota for Zigbee gadgets.
What happens if you exceed the official limit of devices on the gateway?
When the limit is exceeded, the following problems arise: the Gateway begins to ignore commands from some devices (for example, the lamp does not turn on the first time); the Mi Home application appears Network Error (10001) or Device Offline error; Devices disconnect themselves from the network and require re-pairing; the Gateway overheats and can shut down (especially important for Mi Gateway 1); The solution is to reduce the number of devices or divide them between several gateways.
How to check how many devices are connected to my Xiaomi gateway?
To find out the current number of connected devices: Open the Mi Home or Aqara Home app. Go to the Device List section. Find your gateway (e.g. Mi Gateway 3) and tap it. Connected Devices or Zigbee Network will show you the exact number. In the Home Assistant, this information can be accessed through integration. Zigbee2MQTT info section.
Can you use the Xiaomi gateway without the internet?
Yes, but with reservations: πŸ”Ή Local control: The gateway will work with devices on the LAN (e.g., Wi-Fi or Zigbee), but some features (voice assistant, notifications) will be disabled. πŸ”Ή Automation: Mi Home scripts will no longer work without the cloud. πŸ”Ή Updates: without the Internet, the gateway can't update the firmware. To completely eliminate the dependence on the cloud, reflash the gateway to the Internet. Zigbee2MQTT.
What is Xiaomi’s most reliable gateway for 50?+ device?
For a large smart home, we recommend: Aqara Hub M2 β€” Best choice thanks to stable work with Zigbee 3.0, support for HomeKit and backup power. Xiaomi Mi Gateway 3 is cheaper than Aqara, but has the same technical characteristics (128 devices, Zigbee 3.0). Avoid Mi Gateway 1 - it is outdated and will not pull even 30 devices without lags.