Reconnecting the Xiaomi gateway to the new router: full instructions with solutions to problems

Moving, replacing a router, or simply wanting to optimize your home network can be different reasons to change your router. But if you have a Xiaomi Mi Home Gateway in your ecosystem, reconfiguring it to a new access point often becomes a headache. Unlike conventional IoT gadgets, Xiaomi's gateway requires not only a Wi-Fi connection, but also synchronization with Mi Home servers, which adds to the complexity.

In this article, we will look at all the steps of reconnection, from preparing and resetting settings to linking devices to a new router, focusing on common errors (such as when the gateway does not find the network or refuses to connect) and how to fix them, and if you are afraid of losing data from connected sensors, we will tell you how to avoid this.

Preparing for reconnection: what to do in advance

Before you disconnect the gateway from the old router, follow a few critical steps that will save time and prevent data loss from connected devices (motion sensors, lamps, buttons, etc.).

First, check the gateway firmware version. Outdated versions (below) 1.4.1_178) may not support modern Wi-Fi standards (e.g, WPA3) or have bugs when you change network. Update the firmware through the Mi Home app:

  1. Open Mi Home β†’ select the gateway β†’ Settings (βš™) β†’ Firmware update.
  2. If the update is available, connect the gateway to the power source and wait until it is completed (don’t interrupt the process!).

Second, keep the current configuration: Xiaomi's gateway stores data about connected devices locally, but when reset, it may disappear.

  • πŸ“± Take a picture of the list of devices in Mi Home (Smart Home section) β†’ Devices).
  • πŸ“ Write down the names and location of each sensor (e.g., "Door Sensor - Kitchen, Battery 80%").
  • πŸ”„ If you have Xiaomi Gateway 3, export your settings through Settings β†’ Backup (not available in all regions).

πŸ’‘

If you have an Aqara Hub gateway (white square), use the Aqara Home app instead of Mi Home – the reconnection algorithm is different!

Finally, check the compatibility of the new router. Xiaomi gateways only work with 2.4 GHz networks (not 5 GHz!) and do not support:

  • 🚫 Hidden. SSID (The name of the network should be visible).
  • 🚫 Regimes 802.11r (fast roaming or 802.11k/v.
  • 🚫 Channels above 11 (Russia allows 1-13, but the gateway may not see 12-13).
πŸ“Š What is Xiaomi's gateway?
Mi Home Gateway (round)
Mi Home Gateway 2 (square)
Aqara Hub (white)
Other
I don't know.

Resetting the Xiaomi gateway to factory settings

If you just change your Wi-Fi name or password, you don't have to reset -- you just need to reconnect the gateway through Mi Home, but if the router is completely replaced (new). MAC-address, different range IP), It's the only way to get the gateway to forget the old network and look for a new one.

The discharge procedure depends on the model:

A model of a lockResetting methodSign of successful discharge
Mi Home Gateway (round version 1)Hold the button on the body for 5-10 seconds until the yellow LED blinks.Voice message in Chinese:" (factory settings restored).
Mi Home Gateway 2 (square)Hold the button for 15 seconds until orange flashes and the beep sounds.The LED flashes white, the gateway makes a melody.
Aqara Hub (white)Press and hold the 10 seconds button until the red light light lights up.The message in English is β€œReset successful.”

⚠️ Warning: If the gateway doesn't make any noises or blink after reset, check the power. Connect it to another source (like charging from your phone) - sometimes the power supply is a problem.

After resetting, the gateway automatically creates a temporary access point called lumi-gateway-XXXXXX (where the gateway is located). XXXXXX β€” last 6 characters MAC-Connect to it from your phone to continue setting up.

Make sure the gateway is connected to the power supply|Remember/photograph MAC-address (on sticker)|Prepare a new Wi-Fi password (Latin and numbers only)|Shut down. VPN on the phone (can block the connection)-->

Connecting the gateway to a new router via Mi Home

Now, to the most critical phase, which is connecting the gateway to the new network, many users are faced with errors like "Disconnected" or "Offline Gateway." To avoid this, follow the algorithm:

1. Connect the phone to the time gateway network (lumi-gateway-XXXXXX). Password is not required.

2. Open Mi Home and press. + β†’ Add the device β†’ Gateway (or select the model manually).

3. the application will suggest selecting a Wi-Fi network. Specify:

  • πŸ“Ά Name of the network (SSID) new router (2.4 GHz only!).
  • πŸ”‘ Password (if there are special characters of type # or $, Replace them with letters/numbers).
  • 🌐 Region – China mainland (even if you are in Russia; voice alerts may not work for other regions).

4. Wait for the process to be completed. The gateway must:

  • πŸ”„ Reboot (LED will go out for 10-15 seconds).
  • 🎡 The message will be in Chinese (for Gateway). 1/2) or English (for Aqara Hub).
  • 🟒 Light up green (normal operating mode).

⚠️ Warning: If you have an "Invalid password" error at the Wi-Fi connection stage, but the password is entered correctly, the problem is the router settings:

  • πŸ›‘οΈ WPA3 (Use only WPA2-PSK).
  • πŸ”„ Band Steering (Automatic Switching Between 2.4 and 5 GHz).
  • πŸ“‘ 160 MHz channel width (set 20 MHz or 40 MHz).

πŸ’‘

If the gateway does not connect to routers with firmware Keenetic or ASUS Merlin, try to turn it off. AI Protection or Intrusion Prevention – This is a way to block Xiaomi traffic.

Recovery of connected devices after changing the router

Once the gateway is successfully connected to the new network, you may find that some of the sensors or actuators (lamps, sockets) are displayed as offline. This is normal β€” they have lost communication with the gateway and need to be re-synchronized.

Here's how to get them back to work:

  1. For sensors (movements, openings, temperatures): πŸ”‹ Remove and insert the battery back. πŸ“Ά Bring the sensor to the gateway at a distance of 10-20 cm. πŸ”„ Press the button on the sensor (if any) or wait for automatic synchronization (up to 5 minutes).

Yeelight

Aqara

  • ⚑ Turn off and turn on the power 3 times at intervals of 2 seconds (for resetting).
  • πŸ’‘ The lamp should flash 3 times - this is a signal of readiness to mate.
  • πŸ“± At Mi Home, press + β†’ Add the device β†’ [lamp-model].

If the device does not appear on the list, check:

  • πŸ”‹ Battery Charging (in Mi Home) β†’ device β†’ Status).
  • πŸ“‘ Signal level Zigbee (in the gateway settings should be > -70 dBm).
  • πŸ›‘οΈ No interference from other devices (microwaves, wireless headphones).
What to do if the sensor is not synchronized?
If the sensor does not respond to battery extraction, try hard reset: 1. Remove the battery for 10 minutes. 2. Insert it back and immediately press the reset button (if any) 10 times in a row. 3. Bring the sensor to the gateway for 5 cm and hold for 30 seconds. If it does not help, the sensor is faulty or requires a replacement of the battery (even if the indicator shows 50% charge).

Common mistakes and their solutions

Even with the exact instructions, there can be problems.-5 Mistakes in reconnecting the Xiaomi gateway and how to eliminate them:

Mistake.Reason.Decision
"The gateway is not online" after connectingThe router blocks outbound Xiaomi connections (port 80 or 443).In the router settings add the gateway to DMZ or open the ports for IP-lock-address.
Gateway is connected, but the devices are not workingWi-Fi channel changed (for example, from 6 to 11), and Zigbee network collapsed.Manually set channel 1, 6 or 11 in the router settings (turn off the auto selection).
"Invalid password" with the correct passwordRouter uses incompatible encryption (TKIP instead AES).In the Wi-Fi settings, select WPA2-PSK [AES].
Gateway is constantly rebooting.Insufficient power supply (supply unit) 5V 1A substitute 5V 2A).Use the original adapter or proven analogue with current β‰₯2A.
Voice Alerts in ChineseThe region in Mi Home is not set in China mainland.Remove the gateway from the application and add again with the correct region.

If none of these methods worked, try an alternative method of connecting via Mi Home on Android with Developer Mode enabled:

  1. At Mi Home, go to Profile β†’ Settings β†’ Developer mode β†’ Turn on.
  2. Remove the gateway from the application.
  3. Add it again by manually selecting China as the region.

πŸ’‘

If you have an iPhone and the gateway is not connecting, try using an Android smartphone or emulator (like BlueStacks).The Mi Home app on iOS sometimes blocks access to LANs.

Optimizing the network for stable operation of the gateway

To avoid problems in the future, set up your router to take into account the features of the Xiaomi gateway:

1. Fixed IP-lock-house

This will prevent communication loss during the change. DHCP-In the router settings:

  • Find it. DHCP β†’ Address reservation (or Static Lease).
  • Add a rule to MAC-gateway address (indicated on the sticker).
  • Ask. IP outside the main pool (e.g. 192.168.1.100).

2. Separate network for IoT devices

Create a 2.4 GHz guest network specifically for gateways and sensors.

  • πŸ›‘οΈ Isolates the smart home from the main devices (security).
  • πŸ“Ά Reduces interference from other gadgets.
  • πŸ”„ Simplifies network reboot in case of problems.

3. QoS (Quality of Service) setting

Prioritize gateway traffic so that voice alerts and commands are executed without delay:

  • On the router, find QoS. β†’ Rules.
  • Add a rule to IP-High-priority gateway addresses.
  • Limit bandwidth for other devices (e.g., 50% of the total channel).

What do you do if nothing helps?

If the gateway stubbornly fails to connect to the new router despite all the manipulations, try extreme measures:

1. Firmware through UART (for advanced users)

If the gateway is β€œburied” after an unsuccessful update, it can be restored through UART-It's gonna take a port:

  • πŸ”§ DuPont soldering iron and wires.
  • πŸ’» USB-to-TTL adapter (e.g., USB-to-TTL adapter, CP2102).
  • πŸ“„ Firmware for your model (download from Xiaomi Community).

⚠️ Warning: Wrong firmware can permanently disable the gateway, a method only recommended if you have experience with microcontrollers.

Replacement of the lock under warranty

If the device is new (up to 12 months), contact the Xiaomi service center with a check. Gateways are often replaced under warranty for connection problems, as this is a sign of a hardware defect.

  • πŸ“ Moscow: 10 Letnikovsky St. (official service).
  • πŸ“ St. Petersburg: Marshal Govorov str., 35.
  • πŸ“ Other cities: check the site mi.com/ru/service.

Alternative locks

If the struggle with the Xiaomi Gateway took too long, consider replacing it with more stable counterparts:

  • πŸ”Ή Aqara Hub M2 β€” Supports Zigbee 3.0 and has a backup Ethernet channel.
  • πŸ”Ή Sonoff Zigbee Bridge – works with Home Assistant without Xiaomi cloud.
  • πŸ”Ή Tuya Zigbee Hub – compatible with Xiaomi sensors via firmware Zigbee2MQTT.

FAQ: Frequent questions about reconnecting the Xiaomi gateway

Can I reconfigure the gateway without resetting?
Yes, if you just changed your Wi-Fi password, go to the gateway settings at Mi Home. β†’ Wi-Fi β†’ Enter new data if the router is completely replaced (new) MAC-address), discharge is mandatory.
The airlock is on, but the sensors are not working.
Try: Reset the gateway (disable power for 30 seconds); Manually synchronize each sensor (remove/insert battery); Change Wi-Fi channel to 1 or 6 (on the router); If it doesn't work, reset the gateway and reconfigure it.
How do you know? MAC-gateway address if the sticker is erased?
There is. 3 Way: In Mi Home: Gateway β†’ Settings β†’ On the router, find the lumi-gateway device in the list of connected devices (DHCP-Through Telnet (for advanced): connect to the gateway IP And execute the command cat. /sys/class/net/eth0/address
Can you use the Xiaomi gateway with a router from the provider (Rostelecom, Beeline)?
Yes, but often required: Disable Double NAT (Set a static channel 2.4 GHz (Auto-selection may interfere with Zigbee) Disable Parental Control or Filter MAC-If the ISP is blocking ports, try connecting the gateway via an Ethernet adapter (for Gateway 3).
After the reconnection, the automation is gone. How do we repair it?
Automation (scenes) in Mi Home are cloud-bound, but can get lost when you change network. To restore: Check that all devices are online. Go to Automation β†’ My scenes and update the page (pull down). If the scene is gone, recreate it (unfortunately, no backup automations). For reliability, export scripts to Home Assistant or Node-RED.