How to Transfer Xiaomi Gateway to Another Wi-Fi Network: 3 Ways to Work + Solving Problems

Why migrate Xiaomi’s gateway to a new network and what are the risks?

The Xiaomi Mi Gateway (or Aqara Hub in the newer versions) is the centerpiece of Xiaomi’s smart home ecosystem. It connects sensors, lamps and other devices through the Zigbee protocol, but to operate through the Mi Home (or Aqara) app, the gateway itself must be connected to Wi-Fi. Changing the router, moving or even changing the network name leads users to look for ways to move the gateway to a new access point – and that’s where the problems begin.

The main difficulty is that the Xiaomi gateway does not automatically reconnect to another network without resetting, and resetting often leads to loss of connection with sensors that will have to be added to the system. In this article, we will discuss three proven methods of transferring a gateway to a new network, from the simplest (via the application) to radical (complete reset), and consider typical errors and ways to fix them, including working with AP Mode mode and manually binding devices.

If you have a gateway older than 2018 (e.g. Mi Gateway v1), some features may be missing. For newer models (Aqara Hub M2, Mi Gateway 3), the process is simplified, but there are some nuances.

Method 1: Transfer the gateway through the Mi Home application (without resetting)

This is the most effective method that works if:

  • πŸ”Ή The gateway is already linked to your Mi Home account.
  • πŸ”Ή The new network uses the same server region (China, Europe, Russia).
  • πŸ”Ή You have physical access to the gateway (you need to press the reset button).

Algorithm of action:

  1. Open the Mi Home app and go to the gateway section (Devices β†’ Gateway).
  2. Click on the three dots in the top right corner and select Wi-Fi settings.
  3. Enter the new network (name and password) and the gateway will reboot and try to connect.
  4. If the connection does not occur, press and hold the button on the gateway for 5-7 seconds until the yellow indicator flashes.

Important: If the gateway does not see the new network, check:

  • πŸ“Ά Wi-Fi frequency: The gateway only operates at 2.4 GHz (not 5 GHz supported).
  • πŸ”’ Type of encryption: Must be WPA2-PSK (not WPA3 or an open network).
  • 🌍 Region in Mi Home settings: If the gateway is purchased for China and you are in Europe, change the region in your profile.
πŸ“Š What is Xiaomi's gateway?
Mi Gateway v1/v2
Mi Gateway 3
Aqara Hub M1/M2
Other

Method 2: Use of AP Mode (for power users)

If the gateway does not want to connect to the new network through an application, you can try AP Mode, which requires the phone to connect to the gateway temporarily directly.

Step-by-step:

  1. Turn off the gateway for 10 seconds, then turn it back on.
  2. Press and hold the button on the gateway for 10-15 seconds until the indicator flashes blue quickly (AP mode).
  3. On your phone, connect to a Wi-Fi network called lumi-gateway-XXXXX (password is not required).
  4. Return to Mi Home, select Add Device β†’ Gateway and follow the instructions.

In this mode, the gateway creates its own network through which it transmits data about the new access point, if the process is suspended during the connection stage:

  • πŸ”„ Reboot router and gateway.
  • πŸ“± Make sure the phone is off VPN and save traffic.
  • 🚫 Check if the antivirus is blocking the connection to the lumi-gateway network.

Make sure the new network is running at 2.4 GHz |

Check the compatibility of the region in Mi Home|

Write down MAC- gateway address (on a box or sticker)|

Turn off mobile internet during settings

-->

Method 3: Complete lock reset and device re-binding

If the first two methods fail, the radical option is a complete reset, which will remove all the connected devices (sensors, lamps, buttons) and have to be added again.

How to drop the lock:

  1. Press and hold the button on the gateway for 20 to 25 seconds until the indicator flashes red.
  2. Release the button - the gateway will reset to the factory settings.
  3. Add it to Mi Home as a new device (Add β†’ Gateway).

After discharge:

  • πŸ”Œ All Zigbee devices (motion sensors, door sensors) will unplug and require re-addition.
  • πŸ’‘ Yeelight or Mi LED smart bulbs can stay on the grid, but they can’t be controlled through the gateway.
  • πŸ“± Automation in Mi Home or Google Home associated with the gateway will have to be reconfigured.
What if the gateway is not added after resetting?
If the gateway is not detected in Mi Home after reset: 1. Check that the correct region is selected (for example, for Russia - "Russia"). 2. Try adding the gateway through the Aqara app (if the model is supported). 3. Make sure that the phone is enabled Bluetooth and geolocation (required for some models). 4. If the indicator is red for more than 5 minutes, the gateway is defective (required replacement).

Compatibility table of Xiaomi gateways with different networks

Not all gateway models work equally well with different types of Wi-Fi. Below is a comparison table:

A model of a lockSupport for 5 GHzAP modeMax Zigbee devicesNotes
Mi Gateway v1/v2❌ No.βœ… Yes.32Requires manual reset when changing the network
Mi Gateway 3❌ No.βœ… Yes.128Supports Matter (with firmware 2023+)
Aqara Hub M1S❌ No.βœ… Yes.128Works with HomeKit without additional bridges
Aqara Hub M2βœ… Yes (for control only)βœ… Yes.128Supports Ethernet connection

Note that even if the gateway supports 5 GHz (like the Aqara Hub M2), the initial setup still requires a 2.4 GHz network. Once connected, control can be carried out over any frequency.

Typical errors and their solutions

When you move a gateway to a new network, you're facing the same problems, and here are the most common ways to fix them:

⚠️ Warning: If the gateway flashes red after reset and doesn't turn on, it's a sign of hardware malfunction. Try connecting it to another power supply (original, 5V/1A) If the problem persists, repair or replacement is required.

Problem 1: The gateway connects to Wi-Fi but doesn’t see the Zigbee device.

  • πŸ”„ Reset the gateway and sensors (remove the batteries for 10 seconds).
  • πŸ“‘ Check distance: maximum distance between the gateway and the sensor is 10-15 meters (no obstacles).
  • πŸ› οΈ Update the gateway firmware in Mi Home (Settings β†’ Software Update).

Problem 2: The Mi Home app doesn't see the gateway in AP mode.

  • πŸ“± Make sure that the phone is connected to the lumi-gateway-XXXXX (not your home Wi-Fi) network.
  • πŸ”’ Disable ad blockers (e.g. AdGuard) and they can block the connection.
  • 🌐 Try changing DNS on your phone to 8.8.8.8 or 1.1.1.1.

Problem 3: After the transfer, the gateway is unstable (falls off the network).

  • πŸ“Ά Check the Wi-Fi signal strength at the gateway installation site (must be at least 70%).
  • πŸ”Œ Connect the gateway to the outlet through a network filter β€” power surges can knock down the settings.
  • πŸ”„ In the router settings, set the IP- address for the gateway over MAC (so that it doesn't change when you reconnect).

πŸ’‘

If the gateway is slower to respond to commands after the transfer, try disabling the router's "Band Steering" function (automatic switching between 2.4 and 5 GHz), which can interfere with the stable connection.

How to maintain automation after the lock transfer?

One of the main headaches when changing the network is the loss of configured automations (for example, "if the motion sensor is triggered, turn on the light"). Unfortunately, Mi Home does not save them when the gateway is reset, but there are workarounds:

Method 1: Export and import via Mi Home (for firmware 2022+)

  1. Before resetting the gateway, go to Profile β†’ Settings β†’ Backup.
  2. Create a backup (the file will be saved in the cloud).
  3. After moving the gateway, restore the data from the backup.

Limitation: This method does not work for all regions (for example, in the Chinese version of Mi Home, backup may not be available).

Method 2: Manual reproduction of automations

  • πŸ“ Write down all automations on paper or take screenshots of the settings.
  • πŸ”„ After moving the gateway, add the devices again and restore the automation manually.
  • πŸ€– For complex scenarios (such as those with delays or conditions), use Yandex Alice or Google Assistant – they save settings regardless of the gateway.

Method 3: Use of Home Assistant

If you have a Home Assistant installed, the automation is stored on the server and is not dependent on the gateway.

  1. Remove the old gateway from Xiaomi Miio integration.
  2. Add a new gateway (it will receive a new Device ID).
  3. Update entities in automation (if device names have changed).

πŸ’‘

If you use voice assistants (Alice, Google, Siri), link them directly to your devices via Xiaomi’s cloud, rather than to the gateway, and save commands even after the gateway is reset.

FAQ: Frequent questions about moving Xiaomi gateway

Can I transfer the gateway to another network without resetting?
Yes, but only if the new network uses the same server region in Mi Home. Try method 1 of this article. If the gateway doesn't see the new network, you'll have to use AP Mode or a full reset.
Why is the gateway not connected to the WPA3 network?
Most Xiaomi gateways (with the exception of the Aqara Hub M2) only support WPA2-PSK. Solution: temporarily switch your router to WPA2 or create a separate network for the smart home.
How to move the gateway from Mi Home to Aqara?
This is only possible for Aqara gateways (like the Hub M1S/M2). Remove the gateway from Mi Home, then add it to the Aqara app via Add Device β†’ Add manually. Zigbee devices will have to be added again.
What if the sensors don’t work after the transfer?
First, check if the sensors are on fire. If not, replace the batteries. If the sensors are on fire but not in the app: Remove them from the Mi Home (if any are on the list). Press the button on the sensor 3 times in a row (for reset). Add again through Add the device β†’ Sensor.
Can Xiaomi’s Gateway Connect to Mobile Internet (4G/5G)?
No, the Xiaomi gateway does not support direct connection to mobile networks. However, you can: Use a router with a SIM- card (for example, Huawei 4G Router). Connect the gateway to the phone in access point mode (but this is unstable). For Aqara Hub M2 there is an option to connect via Ethernet (if there is wired Internet).