Moving to a new apartment, changing a provider, or simply upgrading network equipment β any of these situations requires reconfiguring smart devices. Xiaomi Hub (be it Mi Smart Home Hub, Aqara Hub or Mi Home Security Gateway) after changing the router stops working because it loses communication with the previous network. Unlike conventional gadgets, smart hubs require not just reconnecting to Wi-Fi, but full synchronization with Mi Home or Aqara servers.
In this article, you will find unique solutions for the hub models of 2020-2026, including bypassing typical errors like βfailure to connect to the serverβ or βindicator flashing yellow.β We will analyze two scenarios: when the hub was already in use and when it is new (out of the box). You will also learn how to avoid regional restrictions and why some hubs refuse to work with routers in mode. 802.11r (Fast Roaming).
1.Preparation: What to do before connecting
Before you start setting up, make sure your new router meets the minimum requirements to work with Xiaomi hubs.Most of the problems arise from incompatibility of Wi-Fi standards or incorrect security settings.
Here are the key parameters worth checking:
- πΆ Wi-Fi standard: Xiaomi hubs only work with 2.4GHz networks. If your router only supports 5GHz, turn on compatibility mode or use a separate access point.
- π Type of encryption: should be WPA2-PSK (AES). Hubs don't support WPA3, WEP or open networks.
- π Regional settings: if the hub was bought for China (CN-version), it can not be connected to the servers of Mi Home in Russia without changing the firmware.
- π‘ Signal power: the hub must be no further than 10 meters from the router, thick walls or interference from other devices can block communication.
If you use a router with Smart Connect (automatic switching between 2.4 GHz and 5 GHz), turn it off. Xiaomi hubs do not know how to work correctly on such networks. MAC-Addresses β they can block the connection.
β οΈ Note: If your hub was previously connected to a Mi Home account on another router, it must be removed from the application before reconfiguring it, otherwise the system may block the addition of the device as an βalready existing one".
2.Reset Xiaomi hub to factory settings
If the hub has been used, it needs to be returned to factory status, which will remove all attached devices (sensors, lamps, switches) and allow you to connect to a new router.
| Hub model | Resetting method | Sign of successful discharge |
|---|---|---|
| Mi Smart Home Hub (DGNWG05LM) | Press the reset button (hole on the side) for 10-15 seconds until the indicator flashes yellow. | Voice message "Reset successful" (English or Chinese) |
| Aqara Hub M1S (ZHWG11LM) | Press the button on the top panel for 5 seconds until the double signal sounds. | The indicator flashes blue, then goes to standby (orange) |
| Mi Home Security Gateway (ZNMS12LM) | Hold the button on the back for 8-10 seconds until you hear the beep. | The indicator turns red, then goes out and turns on again. |
| Aqara Hub E1 (ZHWG16LM) | Press and hold the button on the front panel for 10 seconds until the white light flashes. | Hub makes a D-D sound and reboots. |
After resetting, the hub will go into settings mode, as reported by a flashing orange or blue indicator. If the indicator does not change color or the hub does not make sounds, try repeating the procedure with another power source (for example, connect to a charge from your phone).
What to do if the hub is not reset?
β οΈ Warning: Resetting the Aqara hub via the app (without a physical button) can result in a 24-hour loss of communication with Aqara servers.
3. Connecting the hub to a new router: step-by-step instructions
Now, to the main stage, connecting the hub to a new Wi-Fi network, you'll need the Mi Home app (for Xiaomi hubs) or Aqara Home (for Aqara hubs), and make sure you have the latest version of the app installed, the older versions may not support the new hub models.
Download the latest version of Mi Home/Aqara Home|Make sure your phone is connected to Wi-Fi 2.4 GHz|Shut down. VPN proxy|Charge the phone (minimum) 50%)|Prepare a password from Wi-Fi (Latin!)
-->
Instructions for Mi Home (similar to Aqara Home with minor differences):
- Open Mi Home and go to Devices β Add Device (+).
- Select the Gateway category (or enter the model name manually).
- Click Add and follow the instructions on the screen. the hub should flash orange.
- Select your Wi-Fi network (2.4 GHz) and enter a password. Do not use special characters (for example, do not use special characters, #, $) β They can cause a mistake.
- Wait for the process to be completed (1-3 minutes), the hub will emit an audible signal and the indicator will be blue (mode of operation) or green (successful connection).
If the error βI failed to connect to the deviceβ appears at the connection stage, try:
- π Reboot router and hub.
- π± Reinstall the Mi Home app.
- π Change the region in the Mi Home profile to China (even if the hub is not located in the country) CN-version).
- π‘ Temporarily disable Band Steering function on the router (if any).
π‘
If the hub persists in not connecting, try creating a guest network on a router with a simple password (for example, 12345678) and no encryption. Once you successfully connect, return the basic settings.
4. Solving common connection errors
Even with the right router setup, Xiaomi hubs can give out errors.
Error: "Device is not responding" or the indicator flashes yellow
Reasons:
- π΅ The hub is outside the Wi-Fi coverage area.
- π Unstable power supply (try another adapter).
- π‘οΈ Router firewall blocks connection.
Solution: Move the hub closer to the router, turn off on the router SPI Firewall and try again.
Error: "I was unable to connect to the server"
Reasons:
- π The hub is linked to another region (e.g, CN, you RU).
- β³ Mi Home servers are overloaded (often in the evenings).
- π΅ VPN or proxy interferes with the connection.
Solution: Change the region in the Mi Home profile to China, turn off VPN Try again in 10-15 minutes.
Error: Hub connects but does not manage devices
Reasons:
- π Devices (sensors, lamps) are not synchronized with the hub.
- π‘ Hub and devices are on different networks (for example, a hub at 2.4 GHz, and a lamp at 5 GHz).
Solution: Re-synchronize devices via Mi Home β hub β Add the device.
π‘
If the Aqara hub is not connected to routers ASUS or TP-Link, disable the Airtime Fairness function on them - it conflicts with the hub communication protocol.
5. Set up a router for stable operation of the hub
To make the Xiaomi hub work without interruptions, it is recommended to optimize the settings of the router.
| Parameter | Recommended value | Why is it important? |
|---|---|---|
| Wi-Fi channel (2.4 GHz) | 1, 6 or 11 | These channels are the least affected by interference from other networks. |
| Channel width | 20 MHz | A 40 MHz width can cause instability in IoT devices. |
| Wireless network mode | 802.11n (or 802.11b/g/n) | Hubs don't support 802.11ac/ax on 2.4 GHz. |
| MTU | 1472 | The default value (1500) can cause packet fragmentation. |
| DHCP | Includes range beyond 192.168.1.100β192.168.1.200 | Xiaomiβs hubs sometimes conflict with the DHCP-servers in this range. |
If your router supports QoS (Quality of Service), add the hub to your priority devices, which will help avoid delays in managing your smart home. IP-hub address in settings DHCP, So that it does not change when restarting the router.
β οΈ Note: If you are using a Mesh system (e.g. Xiaomi Mi Wi-Fi Router) AX6000), Turn off automatic switching between hub nodes. In manual mode, select the main router to which the hub will connect permanently.
6.Sync smart home devices after changing router
Once the hub is successfully connected to a new router, all previously connected devices (motion sensors, smart sockets, Yeelight lamps) can be turned off, because they are tied to the hub, not to the Mi Home account, to restore work:
- Open Mi Home and go to your hub section.
- Click Devices β all previously connected gadgets will be displayed here.
- If the device is marked as Offline, click on it and select Sync.
- For sensors (e.g., Mi) Door/Window Sensor) may require a physical push of a button on the device.
If the device does not appear in the list, you will have to add it again:
- π For wired devices (outlets, lamps) - turn off and turn on the power again.
- π For battery devices (sensors) β remove and insert the battery.
- π± Then in Mi Home, select Add Device β [Category] β [Model].
Important: If you have smart locks installed (such as Mi Smart Door Lock), you will have to manually reconnect them through the lock settings. β Without it, the lock will not be able to communicate with the hub.
7.Security: How to Protect the Hub from Hacking
Xiaomi hubs are often targeted by hackers, especially if they are connected to the network without proper protection.
- π Change your Wi-Fi password after connecting the hub.Use a complex password (at least 12 characters with numbers and letters).
- π‘οΈ Disable remote access in the hub settings if you donβt use control from outside the home.
- π Update the Hubβs firmware to the latest version via Mi Home β Hub settings β Update of the PO.
- π Set up geofences in Mi Home so that the hub automatically shuts down in your absence.
If you use an Aqara hub, enable two-factor authentication in your Aqara Home account, which will protect your system from unauthorized access even if an attacker learns the Wi-Fi password.
π‘
To check if your hub is hacked, open Mi Home β Suspicious activity (such as turning on lamps in your absence) may indicate compromise.
8. Alternative ways of connecting (if nothing works)
If the hub stubbornly does not connect to the router in the standard way, try alternative methods:
Method 1: Connect via hotspot phone
Create a hotspot on a phone with a name and password similar to your router, connect the hub to that network, then reconfigure the router to the same settings, and then the hub will automatically connect to the main network.
Method 2: Manual indication IP-address
Some hubs (e.g. Aqara Hub) M2) allow you to manually IP-address, gateway and DNS. For that:
- Connect the hub to the router via cable (if there is an Ethernet port).
- At Mi Home, go to Hub Settings β Network β Manual indication IP.
- Enter. IP from your network range (e.g. 192.168.1.150), gateway (192.168.1.1), and DNS (8.8.8.8).
Method 3: Firmware with Mi Home Developer Mode
If the hub is blocked or does not respond to the reset, you can reflash it manually:
- Install Mi Home on Android and turn on Developer Mode (10 times click on the app version in About Program).
- Connect the hub to the PC through USB (adapter USB-TTL for some).
- Download the firmware for your model from the Xiaomi Firmware website and download it through Mi Home Developer Tools.
β οΈ Warning: Unprofessional firmware can turn a hub into a brick.If you're unsure of your skills, contact Xiaomi's service center.