How to reset the sensor temperature and humidity Xiaomi: all the ways and nuances

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.

๐Ÿ“Š What kind of Xiaomi sensor do you have?
LYWSD03MMC (Bluetooth)
LYWSD02 (Wi-Fi)
Mijia (round)
Other
I don't know.

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:

  1. Open Mi Home and go to the Devices tab.
  2. Find your sensor in the list and tap it.
  3. In the upper right corner, press on โ‹ฎ โ†’ Settings of the device.
  4. Scroll down and select Remove Device (or Reset Settings if there is one).
  5. 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

Done: 0 / 4

โš ๏ธ 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:

  1. Remove the battery from the sensor.
  2. Find the reset button (usually signed) RESET or dotted).
  3. Insert the battery back and hold the button for 10-15 seconds until the indicator (if any) blinks 3 times.
  4. Release the button โ€“ the sensor will reboot and be ready for a new setup.

If there is no button, try an alternative method:

  1. Remove the battery for 30 seconds.
  2. Insert it back and immediately start holding the touch area (usually next to the Mi logo).
  3. Hold it until the indicator flashes red (reset signal).
Sensor modelType of reset buttonRetention timeSign of successful discharge
LYWSD03MMCTouch (back panel)10-15 sec.3 blinking blue
Mijia Bluetooth (round)Tactile (under a stub)5 seconds1 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:

  1. 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).
  1. 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:

  1. Remove the back cover of the sensor (carefully so as not to damage the seal!).
  2. Find contacts on the board RST (or RES) and GND (usually signed).
  3. Close them for 3-5 seconds with tweezers or wire.
  4. The sensor needs to reset (the indicator will blink), if not, repeat the procedure.
What if the sensor does not respond to the reset?
If, after closing the contacts, RST and GND The sensor is not turning on, probably the firmware has gone off. In this case, you will need: 1. USB-TTL contact-adapter TX, RX, GND and 3.3V 2. Run the sensor through esphome or Tasmota (instructions are available on GitHub). 3. Restore calibration data (if you saved the backup).

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:

  1. Open Mi Home and go to the Xiaomi Gateway settings.
  2. Select Connected Device Management.
  3. Find your sensor in the list and tap it.
  4. Click Remove the device (or Reset if there is such a item).
  5. 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:

  1. 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.
  2. 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).
  3. 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

  1. Place the sensor next to the reference instrument (e.g. Xiaomi Mijia Hygrometer or Netatmo weather station).
  2. Wait 30 minutes, the readings should stabilize.
  3. 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:

  1. Open the sensor settings in the application.
  2. Select Calibration (if there is such a point).
  3. Specify the correction for temperature and humidity.
Sensor modelDoes it support calibration through commands?Maximum amendmentCalibration method
LYWSD03MMC (ATC)Yes.ยฑ10ยฐ / ยฑ20%Teams. temp_calib, hum_calib
Mijia BluetoothNo.ยฑ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.

FAQ: Answers to Frequent Questions

๐Ÿ”น Why does the sensor not connect to the Mi Home after reset?
Probable reasons: Sensor is tied to another account (you need to delete it from the previous owner); outdated version of Mi Home (update the app); Firmware has crashed (relevant for custom firmware - you need to reflash); Try adding the sensor manually through the Other Zigbee sensor (for models with Zigbee).
๐Ÿ”น Can I reset the sensor without a button and Mi Home?
Yeah, for that: Remove the battery for 1 minute. Put it back in and lock the contacts right away. RST and GND If that doesn't work, run the sensor through the board. USB-TTL adapter.
๐Ÿ”น How to find out what kind of firmware is on the sensor?
Send a command via a Bluetooth terminal (e.g., nRF Connect":1} The answer will be a line like "firmware":"ATC_1.5" or "firmware":"PVVX_2.1".
๐Ÿ”น After reset, the sensor shows the temperature +85ยฐC. What to do?
This is a typical symptom of a broken firmware: Run the sensor through esphome or Tasmota (GitHub instructions), and if it doesn't work, check the power chain (the battery contacts may have oxidized).
๐Ÿ”น Can I reset the sensor through Home Assistant?
If the sensor is integrated into the Home Assistant BLE Use the service: button.press target: entity_id: button.your_sensor_reset Or send a team through MQTT (if tuned): mosquitto_pub -t "home/lywsd03mmc/command" -m '{"reset":1}'