How to reset Xiaomi smart hub to factory settings: 3 working ways

Why You Might Need to Reset Xiaomi Hub and When You Shouldnโ€™t

Xiaomiโ€™s smart hubs (including the Mi Home Hub, Aqara Hub M1S/M2/M3, and Mi Smart Gateway) are the central devices in the Mi Home ecosystem that control sensors, lamps, and other smart appliances. Factory reset removes all associated devices, automation settings, and network data โ€” a radical solution that should only be resorted to in extreme cases.

The main reasons for resetting: the hub stopped responding to commands, there were sync errors with the Mi Home cloud, the device is locked after a failed firmware update or you sell / transfer the hub to another user. However, do not rush to reset in case of temporary failures - often helps reboot or reconnect to Wi-Fi.

Important: Once reset, all the devices connected to the hub (motion sensors, sockets, lamps) will unplug and require reconfiguration, and if you have a complex automation system with dozens of devices, recovery can take several hours.

๐Ÿ“Š What Xiaomi Hub Are You Using?
Mi Home Hub (round)
Aqara Hub M1S/M2
Mi Smart Gateway (square)
Another Xiaomi hub
I don't know.

Method 1: Reset via physical button on the Hub body

The most reliable method, which works even if the hub does not connect to an application or Wi-Fi, is suitable for all models, including the Aqara Hub M2 and Mi Smart Gateway 3. You will need only the hub and the clip (or other thin object).

Instructions:

  • ๐Ÿ”Œ Turn off the hub from power (remove the plug from the socket).
  • ๐Ÿ“ Find a small hole on the back with the inscription RESET (usually near the power supply).
  • ๐Ÿ–Š๏ธ Insert the paperclip into the hole and hold the button RESET.
  • โšก Without releasing the button, connect the hub to the power supply.
  • ๐Ÿ•’ Hold the button for another 10-15 seconds until the indicator flashes yellow/orange.
  • ๐Ÿ”„ Release the button โ€“ the hub will reset and restart (the process takes up a lot of time). ~2 minutes).

After a successful reset, the indicator will light up in blue (connection waiting mode), and the hub is now ready to be configured as a new device.

Shut off the hub.|Found a hole. RESET case|Prepared a paperclip or pin|I know that after the reset, all the devices will be untied.|Ready to reset the hub-->

โš ๏ธ Note: On the Aqara Hub models M1S Mi Smart Gateway 2 Holding the button RESET less than 5 seconds leads to a reboot, not a reset. Make sure the indicator starts flashing, which is a sign of successful start-up.

Method 2: Reset via the Mi Home mobile app

If the hub is connected to your network and displayed in the Mi Home app, you can reset software, which saves some data (e.g., event history) but removes all connected devices and automation settings.

Step-by-step:

  1. Open the Mi Home app and go to the Devices tab.
  2. Select your hub from the list (e.g. Aqara Hub M2).
  3. Press three points. โ‹ฎ in the upper right corner and select Device Settings.
  4. Scroll down and tap Remove Device (or Reset Settings in newer versions of the app).
  5. Confirm the action - the hub will begin the reset process (it will take ~ 1 minute).

Once reset, the hub will disappear from the list of devices in the application. To connect it again, click Add Device (+) and follow the instructions.

What to do if the Delete Device button is inactive?
If the reset option is blocked, check it out: 1. Access Rights โ€“ You must be the owner of the Mi Home Family Hub. 2. App Version โ€“ Update Mi Home to the latest version in the App Store/Google Play. 3. Internet connection โ€“ the hub must be online (the indicator is on blue). If the problem remains, use a reset via a physical button (Method) 1).

Hub modelResetting through a buttonResetting through the applicationTime to reset
Mi Smart Gateway 3โœ… Yes, 15 seconds)โœ… Yes.~2 minutes
Aqara Hub M2โœ… Yes, 10 sec)โœ… Yes.~1 minute
Mi Home Hub (round)โœ… Yeah, 20 sec)โŒ No*~3 minutes
Aqara Hub M1Sโœ… Yes, 12 seconds)โœ… Yes.~1.5 minutes

* For the Mi Home Hub (round model), application reset is often unavailable โ€“ use the physical button.

Method 3: Reset via web interface (for advanced users)

Some hub models (such as the Aqara Hub M2 with 2.0.7+ firmware) support reset via a local web interface, which is useful if the Mi Home app doesnโ€™t see the hub but itโ€™s connected to your network.

Instructions:

  1. Find out locally. IP-The router's hub address (usually starts with 192.168.x.x).
  2. Enter the IP in the browser address bar (e.g. http://192.168.1.100).
  3. Log in (the default login and password is often admin/admin or an empty field).
  4. Go to the System Tools section โ†’ Factory Reset.
  5. Confirm the reset - the hub will reboot.

If the web interface is not available, check:

  • ๐Ÿ”— Hub and computer connected to the same network.
  • ๐Ÿ”’ Firewall or local connection blocking is disabled in the router.
  • ๐Ÿ”„ IP-Hub address has not changed (use arp) -a search-line).

๐Ÿ’ก

If you forgot. IP-Hub address, use the Fing app (Android/iOS) The hub is usually displayed as a device called lumi-gateway or aqara-hub-.

What to do after reset: connecting the hub and restoring devices

After a successful reset, the hub will return to the factory settings and be ready to reconfigure.

  1. Add a hub to the Mi Home app: Open Mi Home โ†’ Add the device (+) โ†’ Choose a hub model. Bring your phone to the hub and wait for the beep (or type in). PIN-Connect the hub to Wi-Fi (use the same network as before to avoid device problems).

Reset the automation

  • Open the Automation section in Mi Home and restore the scenarios (e.g., โ€œIf the motion sensor is triggered, turn on the lightsโ€).
  • The previously exported settings can be imported from the backup (if it was created).

If the hub does not connect to Wi-Fi after resetting:

  • ๐Ÿ“ถ Check that the router is running at 2.4 Hz (Xiaomi hubs do not support 5 Hz).
  • ๐Ÿ” Make sure that the network name does not contain Cyrillic symbols or spaces.
  • ๐Ÿ”„ Reboot router and hub.

๐Ÿ’ก

Save a backup of the hub settings in Mi Home (Settings โ†’ Backup) before the reset. This will speed up the recovery of automation after setup.

Common Resetting Mistakes and How to Avoid Them

Even when following the instructions, users often encounter problems, and here are the typical errors and solutions:

Problem.Reason.Decision
Hub doesn't drop through a buttonThe RESET button is not pressed long enoughHold the button for at least 15 seconds after power connection
After the reset, the hub does not turn onDischarge process interrupted (power cut off)Wait 5 minutes, then reset. If it doesn't work, check the power supply.
Hub does not connect to Wi-Fi after resetThe wrong region in Mi Home or 5 Hz networkChange region to China (in profile settings), use 2.4 Hz network
Devices do not connect to the hubDevices not reset or hub not updatedReset each device (hold the 5 sec button), update the hub firmware

If the hub after reset behaves unstable (spontaneously reboots, does not save settings), check:

  • ๐Ÿ”‹ Power supply โ€“ use the original adapter (hubs are sensitive to voltage).
  • ๐ŸŒก๏ธ Overheating โ€“ make sure the hub is not in an enclosed space (e.g. behind a TV).
  • ๐Ÿ“ก Interference from other devices โ€“ router and hub should be at least 1 meter away from microwaves, wireless speakers.

โš ๏ธ Note: If you are dropping the Aqara Hub M2 With a Zigbee-repeater connected (like the Aqara Range Extender), the repeater will also be disabled after reset, and it will need to be manually reconnected through the Aqara Home app.

How to Reset Xiaomi Hub if Itโ€™s Blocked or Not Reacting

If the hub doesnโ€™t turn on, is stuck on the update, or doesnโ€™t respond to the reset button, try the following methods:

Forced reset:

  • Turn off the power for 30 seconds.
  • Connect back and wait 2-3 minutes (even if the indicator is not on).
  • Repeat the reset via the RESET button.

2.Discharge via ADB (for advanced users):

If the hub is connected to the network but does not respond to commands, you can try resetting via ADB (Android Debug Bridge).

adb connect [IP- Hub address]


adb shell




reset_factory

This method only works on Android Things-based firmware hubs (such as some versions of the Mi Smart Gateway 3).

3. Manual firmware update:

If the hub freezes due to damaged firmware, download the latest version from the official Xiaomi website and run through the web interface or Mi Home:

  • Download the firmware for your model (for example, gateway_3_v2.0.7_20230315.bin).
  • In the web interface of the hub, go to System Tools โ†’ Firmware Update.
  • Download the firmware file and wait until it is completed (donโ€™t turn off the power!).
Where to download official firmware for Xiaomi hubs?
Official firmware is published on the forums: 1. Official Mi Home website (Support section) 2. Support page Aqara 3. Community 4PDA (Smart Home section Xiaomi) Attention: Install only firmware for your model hub! firmware from Aqara Hub M2 is not suitable for Mi Smart Gateway 3 and vice versa.

FAQ: Frequent questions about Xiaomi hub dumping

Can I drop the hub remotely if I am not home?
No, remote reset via the Mi Home cloud is not supported.You will need physical access to the hub or the help of a person who can press the RESET button.
After the dump, the hub can't find the devices (sensors, lamps).
Make sure: Devices are reset (hold the button on them for 5 seconds until the indicator flashes). Hub and devices are no more than 10 meters away (for Zigbee). Hub settings have Add Device enabled. Devices are compatible with your hub model (for example, Aqara sensors don't always work with the Mi Smart Gateway). If the problem persists, update the hub's firmware and check for interference from other wireless devices.
Will the hub drop if I just take the plug out of the socket?
No, a short-term power outage does not result in a reset; the hub will save all settings and connected devices; the reset only occurs when you hold the RESET button or through the application.
How to transfer devices from one hub to another without resetting?
Unfortunately, there is no direct transfer between the hubs. You have to: Reset each sensor/lamp (hold the 5-second button), add them to the new hub via the Mi Home app, reconfigure automation, except for the Aqara hubs with support for the Mesh network (for example, the Aqara Hub M2), where some devices can be reassigned without completely reset.
Can I cancel the reset if I accidentally press the button?
No, the reset process is irreversible. Once the hub flashes orange and reboots, all the data is deleted, and the only way to get the system back to its original state is to reconnect all the devices and set up the automation.