Increase the radius of Zigbee in the Xiaomi ecosystem: from theory to practice

The Zigbee network is the backbone of Xiaomiโ€™s smart home, but its standard range (10-20 meters indoors) often becomes a bottleneck, with sensors losing communication, automations firing latency, and new devices refusing to connect due to weak signal, a problem exacerbated by concrete walls, furniture, and interference from other wireless networks.

In this article, 7 working methods to increase the radius of Zigbee in the Xiaomi ecosystem, from budget solutions (gateway flashing) to professional ones (use of dedicated coordinators), we will analyze the technical nuances, compare the effectiveness of each method and give step-by-step instructions taking into account the features of the Zigbee 3.0 protocol.

Why Xiaomiโ€™s Zigbee Network is Losing Signal: The Main Reasons

Before you expand, it's important to understand what the range limits are: Zigbee operates at 2.4 GHz and is theoretically capable of covering up to 100 meters in open space.

  • ๐Ÿข Obstacles: concrete walls reduce radius by 30-50%, metal structures by up to 70%, and even an aquarium or mirror can create dead zonesยป.
  • ๐Ÿ“ถ Interference: Wi-Fi routers, microwaves, Bluetooth devices and neighboring Zigbee networks (such as Philips Hue) compete for the same range.
  • ๐Ÿ”‹ Powering devices: battery-powered sensors (e.g. Xiaomi Mi) Door/Window Sensor) reduce transmission power to save charge.
  • ๐Ÿ”„ Network topology: If all devices are connected directly to the gateway (rather than via routers), the coverage suffers due to the lack of โ€œjumpsโ€ (mesh network).

Critical: Xiaomi gateways (such as Mi Smart Home Gateway 3) are default in Coordinator mode, but do not always optimally manage routing, which causes devices at the coverage boundary to periodically โ€œfall offโ€.

๐Ÿ“Š What Zigbee Gateway Are You Using?
Xiaomi Mi Smart Home Gateway 3
Xiaomi Mi Smart Home Gateway 2
Aqara Hub M2
Another gateway
No gateway, just Zigbee devices.

Method 1: Optimization of the location of the Zigbee gateway

The easiest and freest method is to place the main coordinator correctly.

  • ๐Ÿ“ Central position: the gateway should be located approximately in the geometric center of the house / apartment, and not in the corner or at the window.
  • ๐Ÿ“ Height: optimally 1.5-2 meters from the floor (for example, on a shelf or wall.
  • ๐Ÿšซ Avoid: Placement near metal objects, Wi-Fi routers, microwaves or refrigerators.
  • ๐Ÿ”Œ Power: Use the original power supply (5V/1A). Cheap analogues can cause voltage drawdowns, which reduces the transmission power.

You can check the current signal quality in the Mi Home application: Profile โ†’ Settings โ†’ Smart home. โ†’ Zigbee devices โ†’ Signal.

If a red or yellow indicator is burning next to the device, it should be moved closer to the gateway or a repeater should be added.

๐Ÿ’ก

If you have a two-storey house, place the gateway on the landing or on the second floor above the stairs โ€“ this will ensure uniform coverage of both levels.

Method 2: Using Zigbee routers (repeaters)

Routers are devices that not only connect to the network, but also relay the signal, increasing the coverage area.

The deviceTypeMax. number of connected devicesFeatures
Xiaomi Mi Smart PlugRosetta10Requires constant power supply, supports energy consumption measurement
Aqara Smart PlugRosetta15More stable firmware, compatible with HomeKit
Xiaomi Mi Smart Wall SwitchSwitch-off8Requires electrical connection (not suitable for rented housing)
Aqara Hub M2Gateway32It can work as a secondary coordinator, supports up to 128 devices on the network.

How it works: Gateway โ†’ Router 1 โ†’ Router 2 โ†’ End device.

Each jump increases the radius by 10-15 meters, but adds a delay of 20-50 ms.

Important: not all Xiaomi devices can be routers, such as motion sensors or buttons that only work as end devices. Zigbee2MQTT.

The device is powered by the network. 220V (battery-free)

Supports the Zigbee 3.0 protocol

It's on your gateway compatibility list.

Positive feedback on the stability of the connection-->

Method 3: Flashing the gateway to alternative software

Xiaomi gateways' stock firmware limits transmission power and does not always optimally manage routing.Alternative firmware (e.g., alternative firmware, Zigbee2MQTT Or Tasmota, let's:

  • โšก Increase transmission power to 20 dBm (versus standard 8-12 dBm).
  • ๐Ÿ”„ Set up a Zigbee channel manually (avoiding interference from Wi-Fi).
  • ๐Ÿ“Š Get detailed statistics on the signal of each device.
  • ๐Ÿ”ง Use the gateway as a full-fledged coordinator for devices of other brands (for example, IKEA Tradfri or Philips Hue).

The process of flashing the Xiaomi Mi Smart Home Gateway 3:

1. Download the firmware. Zigbee2MQTT official GitHub.

2. Connect the gateway to the computer by USB (need cable USB-A on a micro-USB).

3. Run the firmware command (example for Linux):

esptool.py --port /dev/ttyUSB0 write_flash 0x0 firmware.bin

4. Configure configuration.yaml by specifying network settings.

โš ๏ธ Note: Firmware re-flashing will void the warranty and may result in the gateway inoperability if an incompatible version of the software is selected. Before the procedure, make a backup of the original firmware by the command: esptool.py --port /dev/ttyUSB0 read_flash 0x0 0x100000 backup.bin

What if the gateway stopped working after the firmware?
If the gateway is not switched on or determined by the computer: 1. Check the connection USB-cable (try another port). 2. Hold the reset button on the gateway for 10 seconds. 3. Repeat the firmware indicating the correct one COM-Port (for Windows, use the port) COM3 4. If the problem persists, restore the original firmware through Mi Home (Update section").

Method 4: Configure the Zigbee channel to avoid interference

By default, Xiaomi gateways choose channel 11 or 20, which often overlap with Wi-Fi. The optimal channel can be determined using a spectrum analyzer (for example, the WiFi Analyzer application for Android).

How to change the channel:

1.In Mi Home, go to Profile โ†’ Settings โ†’ Smart home. โ†’ Additionally. โ†’ Zigbee Channel.

2. Select a channel from the list (15, 20 or 25 are usually the least loaded).

3. Confirm the change and wait for the gateway to restart (it will take up to 5 minutes).

If your gateway is overflowing Zigbee2MQTT, edit the configuration.yaml file by adding a line:

advanced:


channel: 20

After saving the changes, restart the service with the command:

sudo systemctl restart zigbee2mqtt

๐Ÿ’ก

Changing the Zigbee channel requires reconnecting all devices! before the procedure, make sure you have access to each sensor (such as reset buttons).

Method 5: Using a dedicated Zigbee Coordinator

If your network has more than 30 devices, the standard Xiaomi gateway may not be able to handle the load.

  • ๐Ÿ–ฅ๏ธ CC2530/CC2531 (budgetary option, before 50 device).
  • ๐Ÿ’ป CC2652P (Recommended for large networks, up to 200 devices).
  • ๐Ÿ”Œ Sonoff Zigbee 3.0 USB Dongle Plus (compatible with Home Assistant) Zigbee2MQTT).

Example of settings CC2652P s Zigbee2MQTT:

1. connect the coordinator to USB-port on a computer or Raspberry Pi.

2. Install. Zigbee2MQTT and edit configuration.yaml:

serial:


port: /dev/ttyACM0




adapter: zstack




advanced:




network_key: GENERATE_NEW_KEY_ON_FIRST_START

3. Move your devices from Xiaomi network to the new network using the Touchlink function (to do this, press the button on the device for 5 seconds).

Advantages of a dedicated coordinator:

- Stability of operation with 100+ device.

- Support for other brandsโ€™ devices (IKEA, Tuya, Philips).

Flexible transmission and routing power settings.

โš ๏ธ Note: When migrating to the new coordinator, all devices will have to be reconnected. Some Xiaomi sensors (such as Mi Temperature & Humidity Sensor) may require resetting through the battery compartment (press the button for 10 seconds).

Method 6: Signal amplification with antennas and repeaters

If software methods do not help, you can improve the hardware:

  • ๐Ÿ“ก External antenna: for gateways with connector IPEX (For example, Xiaomi Mi Smart Home Gateway 3) fit antenna with amplification of 2-5 dBi. Examples: Taoglas FXP79.07 or Linx ANT-2.4-CW-HWR.
  • ๐Ÿ”„ Zigbee Repeater: Specialized devices, such as Sonoff ZBBridge or Tuya Zigbee Repeater, relay the signal without a power connection 220V (work USB).
  • ๐Ÿ› ๏ธ Gateway modification: replacing the standard antenna with a more powerful one requires soldering and disassembling the device (suitable only for experienced users).

How to connect an external antenna:

1. gently open the lock body (use a plastic blade to avoid damaging the latches).

2. disconnect the regular antenna from the connector IPEX board-board.

3. Connect a new antenna and fix it on the body (for example, using thermal glue).

4. Collect the gateway and check the coverage in the Mi Home app.

Important: Installing an antenna with amplification greater than 7 dBi can lead to the opposite effect โ€“ the signal will become too narrow, and devices at close range will no longer see the network.

Method 7: Combined approach for maximum coverage

For 100-square houses+ m2 or with a complex layout (many rooms, floors) it is recommended to combine several methods:

  1. Establish a dedicated coordinator (for example, CC2652P) middle-house.
  2. Add 2-3 routers (Aqara Smart Plug) at key points (e.g., on each floor).
  3. Set up a Zigbee channel, avoiding intersections with Wi-Fi.
  4. For remote devices (such as sensors in a garage), use a repeater or an external antenna.

Topology example for a two-storey house: 1 floor: coordinator (CC2652P) + router (Xiaomi Mi Smart Plug) in the hallway. 2nd floor: router (Aqara Smart Plug) in the corridor + Sonoff ZBBridge for bedrooms Courtyard/garage: 5 dBi external antenna on the gateway.

This approach allows you to cover up to 500 m2 with minimal delays, the main rule is that each device must have at least two ways to connect to the coordinator (for fault tolerance).

๐Ÿ’ก

Before buying equipment, make a diagram of a house with marked โ€œdead zonesโ€ to help calculate the number of routers required and avoid unnecessary costs.

FAQ: Frequent questions about increasing the radius of Zigbee

Can I use a Wi-Fi router as a repeater for Zigbee?
No, Wi-Fi and Zigbee are different protocols, and the router cannot relay the Zigbee signal, ASUS RT-AX88U) Supports Zigbee Coordinator Connection USB And they can work as a gateway.
Why do Xiaomi sensors lose communication at night?
This is due to energy savings: many devices (e.g. Mi) Door/Window Sensor) reduce the frequency of the survey at night. Solution: turn off the power saving mode in the gateway settings or use routers for stable communication.
How many routers can you connect to a single Xiaomi gateway?
The theoretical limit is 32 devices (including routers and end nodes), but in practice, delays begin when 20 to 25 devices are exceeded, CC2652P).
Can I use other brandsโ€™ Zigbee devices to expand Xiaomiโ€™s network?
Yes, but with reservations: - Aqara devices (such as Aqara Smart Plug) are fully compatible and work as routers. IKEA Tradfri or Philips Hue will require the reflashing of the gateway to the Zigbee2MQTT. - Some sensors (such as Tuya) may not support routing.
How do I check if my router is working on my network?
In the Mi Home app, go to Zigbee Devices โ†’ The routers will be marked with a special icon (usually a router icon). Zigbee2MQTT with Networkmap plugin for detailed visualization.