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:
- Open Mi Home β select the gateway β Settings (β) β Firmware update.
- 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).
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 lock | Resetting method | Sign 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:
- 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?
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 connecting | The 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 working | Wi-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 password | Router 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 Chinese | The 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:
- At Mi Home, go to Profile β Settings β Developer mode β Turn on.
- Remove the gateway from the application.
- 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.