Xiaomiโs temperature and humidity sensors are some of the most popular smart home devices due to their accuracy, compactness and integration with the Mi Home ecosystem. However, even such reliable gadgets sometimes start to lie: they show inflated humidity, โhungโ temperature or stop synchronizing with the application. In 80% of cases, resetting the sensor to the factory settings solves the problem, but there are nuances here โ not all models support โsoftโ reset, and some require complete flashing.
In this article, we will analyze all working methods of resetting for different models of Xiaomi sensors (LYWSD03MMC, LYWSD02, Mijia Bluetooth, etc.), including software methods through Mi Home and hardware methods using a button or contacts on the board, and also find out when a reset is really necessary, and when the problem lies in the settings of the phone or router. If your sensor โglutsโ after updating the firmware or changing the battery โ here you will find a solution.
When you need to reset the sensor Xiaomi: symptoms and causes
Before you drop the device, make sure that the problem is not due to external factors, for example, inflated humidity can be real - if the sensor is installed next to the aquarium, bathroom or houseplants, and "hang" temperature is often the result of poor contact of the battery or its discharge.
- ๐ Battery charge: even if the indicator in the Mi Home is 100%, physical contact may have been disrupted.
- ๐ถ Bluetooth signal: sensor must be within a 10-15-meter radius of a gateway (Xiaomi Gateway) or smartphone.
- ๐ฑ App version: Older versions of Mi Home (up to 6.0) had data display bugs. Update the app via Google Play or App Store.
If external factors are excluded and the sensor is still:
- ๐ก๏ธ Shows the same temperature for several days in a row (for example, +23ยฐC regardless of the actual conditions).
- ๐ง Displays humidity of 0% or 100% under normal indoor conditions.
- โ ๏ธ Mi Home: Error "Device disabled" or "No data".
- ๐ Not synced with the gateway after changing Wi-Fi or moving.
โ So, it needs to be reset. Exception: the series of sensors. LYWSD03MMC firmware ATC (Custom) can only be โdischargedโ through the terminal โ more on this below.
Method 1: Software reset via Mi Home
The easiest method is to reset the settings directly in the official app, and it works for most models, except for sensors with custom firmware (ATC, PVVX). Instructions:
- Open Mi Home and go to the Devices tab.
- Find your sensor in the list and tap it.
- In the upper right corner, press on โฎ โ Settings of the device.
- Scroll down and select Remove Device (or Reset Settings if there is one).
- Confirm the action โ the sensor will โforgetโ all settings and disconnect from the account.
After that, the device will appear in the Add Device as New list. Importantly, if the sensor doesn't appear in the Add-on list, try:
- ๐ Reboot your smartphone โ sometimes the app doesnโt see the device because of the cache.
- ๐ฑ Change the region in Mi Home to China (Mainland China) โ some models require this to work properly.
- ๐ ๏ธ Update the gateway firmware (Xiaomi Gateway) if the sensor is connected through it.
โ๏ธ Preparing for reset via Mi Home
โ ๏ธ Note: If the sensor is connected via Apple HomeKit or Google Home, resetting to Mi Home may disrupt integration, in which case remove the device from third-party ecosystems first, and then reset it.
Method 2: Hardware button reset (for models with a physical button)
Some Xiaomi sensors (e.g. Mijia Bluetooth Temperature & Humidity Sensor) LYWSD02) They have a hidden reset button on the body:
- ๐ Tactile โ a small button under a rubber plug (pressed by a paper clip).
- ๐ Touch โ the area on the back panel that you need to hold your finger for 5-10 seconds.
Reset algorithm:
- Remove the battery from the sensor.
- Find the reset button (usually signed) RESET or dotted).
- Insert the battery back and hold the button for 10-15 seconds until the indicator (if any) blinks 3 times.
- Release the button โ the sensor will reboot and be ready for a new setup.
If there is no button, try an alternative method:
- Remove the battery for 30 seconds.
- Insert it back and immediately start holding the touch area (usually next to the Mi logo).
- Hold it until the indicator flashes red (reset signal).
| Sensor model | Type of reset button | Retention time | Sign of successful discharge |
|---|---|---|---|
| LYWSD03MMC | Touch (back panel) | 10-15 sec. | 3 blinking blue |
| Mijia Bluetooth (round) | Tactile (under a stub) | 5 seconds | 1 long flashing red |
| LYWSD02 (Wi-Fi) | Touch (near the QR-code) | 8-10 sec. | Sound signal + flashing |
| ClearGrass (ATC) | No button. | โ | Firmware is required through the terminal |
โ ๏ธ Attention: On sensors with custom firmware (for example, ATC or PVVX) hardware reset can lead to "bricking" - the device will stop turning on. USB-TTL adapter.
Method 3: Reset sensors with custom firmware (ATC, PVVX)
Sensors. LYWSD03MMC firmware ATC (They don't support standard reset, they have two options:
- Mild reset via commands (if the sensor responds):
Connect to the sensor via Bluetooth (for example, via Termite or nRF Connect)
Send a team:
{"reset":1}
The sensor will reset and reset settings (except calibration).- Hard reset via contacts (if sensor does not respond):
It will require:
- ๐ง Screwdriver to open the body.
- ๐ Connection-closing wires (or tweezers).
- ๐ป USB-TTL adapter (e.g, CP2102) for re-flashing, if the reset does not help.
Instructions:
- Remove the back cover of the sensor (carefully so as not to damage the seal!).
- Find contacts on the board RST (or RES) and GND (usually signed).
- Close them for 3-5 seconds with tweezers or wire.
- The sensor needs to reset (the indicator will blink), if not, repeat the procedure.
What if the sensor does not respond to the reset?
Important: After a hard reset, the sensor will lose all calibration data. If you did not save it in advance (via the command {"calibrate":?}), you will have to calibrate again using a reference (for example, a Xiaomi Mijia hygrometer or a professional device).
Method 4: Reset via Xiaomi Gateway (for Zigbee sensors)
If your sensor is connected to your smart home via the Xiaomi Gateway, you can reset it without directly accessing the device, a technique that works for Zigbee sensors (like the Aqara Temperature Sensor), but sometimes helps for Bluetooth models if they are tied to the gateway.
Instructions:
- Open Mi Home and go to the Xiaomi Gateway settings.
- Select Connected Device Management.
- Find your sensor in the list and tap it.
- Click Remove the device (or Reset if there is such a item).
- Confirm the action - the gateway will send the team to reset.
If the sensor does not appear in the list for re-addition:
- ๐ Reboot the gateway (turn off power for 30 seconds).
- ๐ก Check the distance โ the sensor should be within a radius of 10 meters from the gateway.
- ๐ ๏ธ Update the gateway firmware through Settings โ Update of the PO.
๐ก
If the sensor does not connect to the gateway after reset, try adding it in "Other Zigbee Sensor" mode (manual). To do this, select Add the device in Mi Home โ Zigbee โ Manually and specify the model.
Frequent Resetting Mistakes and How to Avoid Them
Even following the instructions, users often encounter problems.-5 mistakes and their solutions:
- Sensor not reset via Mi Home Reason: The device is tied to another account (e.g. if you bought a used one). Solution: Try resetting with a hardware button or through the gateway. If it doesn't work, contact the previous owner to remove the sensor from your account.
- After resetting the sensor does not turn on the Reason: Flowed firmware (relevant for custom firmware) ATC/PVVX). Solution: Flip the sensor again via esphome or Tasmota (instructions are available on GitHub).
- The sensor is reset but again shows incorrect data Reason: Calibration is broken (for example, after changing the battery or falling). Solution: Calibrate the sensor using a reference (see section below).
Another common problem is that the sensor resets, but it doesn't connect to the Mi Home.
- ๐ฑ Check that Bluetooth and geolocation are enabled in the phone settings (needed to search for devices).
- ๐ Make sure the phone and sensor are on the same Wi-Fi network (for Wi-Fi models).
- ๐ Restart your router โ sometimes it blocks new devices from connecting.
๐ก
If the sensor is unstable after reset (for example, periodically shuts down), check the firmware version through the command {"version":1}. Outdated versions may conflict with new versions of the Mi Home.
Calibration of the sensor after reset: how to return accuracy
Resetting settings resets all calibration data, so after the procedure, the sensor can show temperature and humidity with an error. ยฑ2โ5ยฐ. To return accuracy, perform calibration:
Method 1: Through commands (for firmware) ATC/PVVX)
Example of temperature calibration command (indicate the difference in degrees)
{"temp_calib":-1.5}
For humidity (specify the difference in %)
{"hum_calib":+5}Method 2: Manual calibration with reference
- Place the sensor next to the reference instrument (e.g. Xiaomi Mijia Hygrometer or Netatmo weather station).
- Wait 30 minutes, the readings should stabilize.
- Compare the data. If the difference is greater ยฑ1ยฐ, Calibrate the sensor through commands (see above).
For models without command support (e.g, LYWSD02) Calibration is possible only programmatically - through adjustment in Mi Home:
- Open the sensor settings in the application.
- Select Calibration (if there is such a point).
- Specify the correction for temperature and humidity.
| Sensor model | Does it support calibration through commands? | Maximum amendment | Calibration method |
|---|---|---|---|
| LYWSD03MMC (ATC) | Yes. | ยฑ10ยฐ / ยฑ20% | Teams. temp_calib, hum_calib |
| Mijia Bluetooth | No. | ยฑ3ยฐ / ยฑ10% | Through the Mi Home settings |
| LYWSD02 (Wi-Fi) | Partially. | ยฑ5ยฐ / ยฑ15% | Teams or Mi Home |
โ ๏ธ Warning: If the sensor after calibration shows humidity above 100% or temperature below -40ยฐC, so there's a bug in the teams. Reset the settings and recalibrate with lower correction values.