Xiaomi Gateway Gateway 2 (Also known as the Aqara Hub M2) β The central device of Xiaomiβs smart home ecosystem, which manages sensors, lamps and other accessories, is sometimes challenged to return it to factory settings: when selling, after a firmware failure, or when transferring to another Mi system. Home/Aqara Unlike the first generation, the Gateway 2 It has its own nuances of reset, which are important to consider, so as not to turn the device into a βbrickΒ».
In this article, we will discuss three official reset methods (via the app, physical button, and alternative methods) and how to avoid common errors, such as why the gateway may not appear on the list of devices to add after a reset, or how to move it between Mi Home and Aqara Home accounts correctly. If you plan to sell the gateway or just want to start setting up from a clean slate, this guide will help you do everything without risking damage to the device.
When do I need to reset Xiaomi Gateway 2?
Resetting to factory settings is an extreme measure, which is resorted to in several cases:
- π Transferring the device to a new owner, without resetting, the previous account will remain tied to the gateway, and the new user will not be able to add it.
- π System failures: the gateway does not respond to commands, is constantly restarted or is not synchronized with sensors.
- π Transfer between ecosystems: moving from Mi Home to Aqara Home (or vice versa) requires a complete cleanup of settings.
- π Forgotten Wi-Fi password: If the gateway cannot connect to the network due to altered router data, resetting will help set it up again.
Before resetting, however, check for alternative solutions:
- β‘ Reboot the gateway (turn off power for 10 seconds).
- πΆ Make sure the router is distributing 2.4GHz (gateway does not work with 5GHz).
- π Update your firmware with Mi Home or Aqara Home.
β οΈ Warning: Once reset, all automation, device groups and attached sensors will be removed!
Method 1: Reset via Mi Home or Aqara Home
The safest method is to use an official app, which is suitable if the gateway is still responsive to commands and connected to your account.
Instructions for Mi Home:
- Open the Mi Home app and go to the Devices tab.
- Select your Xiaomi Gateway 2 (it can be displayed as the Aqara Hub M2).
- Click on the three dots in the upper right corner β Settings.
- Scroll down and select Remove the device.
- Confirm the action - the gateway will be untied from the account and reset.
Instructions for Aqara Home:
- In the Aqara Home app, go to Devices β select the gateway.
- Click on the gear icon (Settings) β Delete the device.
- Confirm deletion. The gateway will return to factory settings.
If, after removal, the gateway does not appear in the list of devices available for addition:
- π Reboot it (remove the power supply for 15 seconds).
- π± Make sure your phone is Bluetooth and Geolocation enabled (required to find devices).
- π Check that the phone and gateway are connected to the same Wi-Fi network (2.4 GHz).
βοΈ Preparation for discharge through the annex
Method 2: Hardware reset button on the body
If the gateway does not respond to commands from the application or you have forgotten your account information, you will have to use a physical reset button. On Xiaomi Gateway 2, it is located on the underside of the case (near the power cable connector).
Step-by-step:
- Turn off the gateway from the power supply (remove the plug from the socket).
- Press and hold the reset button (it is recessed in the case - use a paper clip or toothpick).
- Without releasing the button, connect the power back.
- Hold the button for another 10-15 seconds until the indicator starts flashing yellow (it will light up blue first).
- Release the button β the gateway will reset and reset (the indicator will turn orange, then blue).
If the indicator doesn't flash yellow, repeat the procedure by holding the button longer.
| Problem. | Reason. | Decision |
|---|---|---|
| The indicator won't light up. | Failed power supply or cable | Try another adapter (5V/1A) |
| Blinks red. | Firmware error | Reset again or update the software |
| After discharge, no activation | Plug the button contacts | Carefully press the button again. |
| Can't find Wi-Fi. | The router only works 5 GHz | Enable 2.4GHz mode or use a different router |
β οΈ Note: Do not use foreign objects (needles, pins) to reset - they can damage the contacts of the button.
What to do if the reset button does not work?
Method 3: Alternative methods of discharge
If the standard methods don't work, you can try the less obvious ones, they're suitable for power users and they need to be accurate.
Method 1: Telnet reset (for firmware up to 1.5.6)
Early versions of Xiaomi Gateway 2 allowed you to connect over Telnet and perform reset commands. This method rarely works now, but it is worth trying:
- Connect the gateway to the router via Ethernet (if a wired connection is used).
- Find him. IP-address in the router's device list (usually starting with 192.168.x.x).
- Connect to Telnet using the command: telnet [IP-lock-house] 23 Default Login and Password: Admin / Admin.
- Perform the reset command: reset_factory
Method 2: Reflashing with Mi Home Developer Mode
If the gateway "blocked" after an unsuccessful update, you can try to reflash it manually:
- Install Mi Home in Developer Mode (China Mainland account required).
- Connect the gateway to the computer by USB (use OTG-cable).
- In the app, select Add Device Manual β Gateway 2 β Update Firmware.
- Download the official firmware from the Mi Home website and follow the wizard's instructions.
π‘
If the gateway is not added to the app after the reset, try changing your account region to China Mainland (in the Mi Home profile settings), which sometimes resolves firmware compatibility issues.
What do I do after the dump?
After the successful reset, the Xiaomi Gateway 2 will return to factory settings, and then it needs to be re-introduced and configured.
- Appendix to the annex: π± Open Mi Home or Aqara Home β Add the device. π Select the Gateway (Gateway) β Xiaomi Gateway 2. π Follow the instructions on the screen (bring the phone to the gateway for Bluetooth pairing).
- Network setup: πΆ Select a Wi-Fi network (2.4 GHz) and enter a password. π If you use Ethernet, connect the cable to the port on the gateway.
Device recovery
- π Add sensors and lamps again (click the pairing button on each device).
- π Restore Automation through Scripts or Automation in the App.
If the gateway does not see previously connected sensors (for example, Aqara Door Sensor), they will have to be reset separately - usually there is a button on the sensor body (hold 5-10 seconds).
Common Mistakes and How to Avoid Them
Even experienced users sometimes make mistakes when resetting Xiaomi Gateway 2, and here are the most common ones and ways to prevent them:
- β Reset during firmware update: If you interrupt the update process, the gateway can turn into a brick. Always wait for the update installation to be completed (the indicator is on green).
- β 5GHz Wi-Fi usage: Gateway only works with 2.4GHz networks. If the router does not support frequency sharing, temporarily disable 5GHz in settings.
- β Reset button incorrectly held: If you release the button too early (before the yellow blink), the reset will not be performed. Hold it for at least 10 seconds after the power is connected.
- β Attempted reset via third-party firmware: Some users try to flash the gateway with custom firmware (for example, to integrate with Home Assistant).This can lead to loss of warranty and unstable work.
β οΈ Warning: If the gateway flashes red continuously after reset, it indicates a critical firmware error, in which case only flashing through Mi Home Developer Mode or contacting a service center will help.
π‘
Before reset, be sure to check the lock firmware version in the app. If it is older than 1.4.0, after reset, you may have problems adding devices - update the firmware in advance!