How to reflash the robot vacuum cleaner Xiaomi Mi Robot Vacuum Mop Essential: official and unofficial ways

Why a Robot Vacuum Reflashing May Be Needed and When It’s Dangerous

Xiaomi Mi Robot Vacuum Mop Essential (model) STYJ02YM) β€” One of the most popular automatic cleaning solutions in the budget segment, but even proven devices have problems over time, from bugs in the mapping algorithm to sudden sensor failures. Flashing in such cases becomes the only way to return the vacuum cleaner to work or add new functions.

But it's not always a routine process to update your firmware, like if you're experiencing a cyclical reboot after a failed airburst" (OTA), If you have a vacuum cleaner that can't recognize the cleaning area, then flashing through the Mi Home may not work, and then you have to use alternative methods to do that. ADB, SSH or even a physical connection to UART-Yes, from loss of warranty to complete bricking of the device if you interrupt the process.

This article will help you understand:

  • πŸ”„ What are the versions of the firmware for Mi Robot Vacuum Mop Essential and where to download them
  • πŸ“± Official ways to update via Mi Home app and web interface
  • πŸ”§ Alternative firmware methods (including Valetudo and custom builds)
  • ⚠️ What to do if the vacuum cleaner stopped responding after the update

Before you start, make sure your model is genuine. STYJ02YM β€” Check the sticker under the lid or in the Mi Home app in the Device section β†’ Settings β†’ Firmware for other models (for example, Mi Robot Vacuum-Mop 2 Lite) are incompatible!

πŸ“Š Which way of running the slate you prefer?
Official (via Mi Home)
Manual (via file)
Alternative (Valetudo/caste)
Never stitched.

Official ways to update the firmware: through Mi Home and web interface

Xiaomi’s safest and most recommended method is to upgrade by air" (OTA) It's only working through the Mi Home app:

  • πŸ“Ά Vacuum Connected to a 2.4GHz Stable Wi-Fi Network (5GHz Not Supported!)
  • πŸ”‹ Battery level not lower than 50%
  • πŸ“± Mi Home app updated to the latest version (check in Google Play or App Store)
  • 🌍 The region in the application corresponds to the region of the vacuum cleaner purchase (e.g. China, Europe, Russia)

To update the firmware through Mi Home:

  1. Open the app and select your vacuum cleaner.
  2. Go to Settings β†’ About the device β†’ Update firmware.
  3. If a new version is available, click Update and wait until it is completed (usually 5-15 minutes).
  4. Do not disconnect the vacuum cleaner from the power supply and do not close the application until the process is over.

If the Mi Home update doesn’t work (e.g., it hangs at 0% or gives you a 10008) error, try the web method:

  1. Connect the vacuum cleaner to the Wi-Fi network.
  2. Open your browser and go to the address http://[IP-vacuum-cleaner]/mi/io/info (know IP You can use a router or an app like Fing).
  3. In the answer, find the field "fw_ver" β€” This is the current version of the firmware.
  4. Compare it to the latest official version on Xiaomi.

β˜‘οΈ Preparations for formal renewal

Done: 0 / 4

⚠️ Warning: If the vacuum cleaner starts to behave strangely after the update (for example, it goes around in a circle or does not see the base), try resetting to the factory: press the Power button for 10 seconds until you hear the beep. This often solves problems with broken updates.

Alternative Firmware Methods: Valetudo, ADB hand-mount

If the official update doesn't work, or if you want to install custom firmware (for example, to remove the binding to the Mi Home or add new features), you will have to use alternative methods.

MethodDifficultyAdvantagesRisks.
ValetudoMediumOpen source, no cloud binding, advanced settingsLoss of warranty, possible bugs
ADBTall.Exact control over firmware, the possibility of rollbackRequires technical knowledge, risk of "bricking"
Hand-held firmware through UARTVery high.Recovery after major disruptionsNeed a soldering iron and experience with electronics

The most popular option among enthusiasts is Valetudo, which replaces the standard software from Xiaomi and allows you to:

  • πŸ”’ Remove the mandatory binding to the Mi Home account
  • πŸ—ΊοΈ Use alternative cards (e.g. from Home Assistant)
  • ⚑ Adjust the suction and wet cleaning parameters flexibly
  • πŸ“Š Get detailed telemetry (for example, battery status, engine speeds)

To install Valetudo:

  1. Download the latest version from the official website (choose the build for the STYJ02YM).
  2. Connect to the vacuum cleaner SSH (instruction below or through ADB.
  3. Upload the firmware file to the device with the command: scp valetudo.img root@[IP_vacuumer]:/tmp/
  4. Install firmware: ssh root@[IP_vacuum cleaner] "dd if=/tmp/valetudo.img of=/dev/mtdblock5 && reboot"

How to turn it on SSH Xiaomi Mi Robot Vacuum Mop Essential?
1. Install the Mi Home version 5.4.54 (old version with vulnerability). 2. Connect the vacuum cleaner to the Wi-Fi. 3. Use the exploit token extractor to get a token. 4. Send the team through MQTT or HTTP API: {"method": "miIO.info", "params": []} 5. Find the answer "ssh_port" (usually 22) and connect on SSH root-based and token-based password.

⚠️ Note: After installing Valetudo, you will lose access to official updates from Xiaomi.To return to stock firmware, you will need a complete reset via the app. UART service-centre.

How to download the Xiaomi Mi Robot Vacuum Mop Essential

Official firmware can be found on Xiaomi websites, but often it is only available for specific regions.

  • 🌍 Xiaomi official website (support section, select model) STYJ02YM)
  • πŸ“₯ 4PDA (Mi Robot Vacuum topics, look for firmware marked [Essential])
  • πŸ› οΈ GitHub Valetudo (Castom assemblies)
  • πŸ”— Xiaomi Flasher (Firmware Archive for Smart Devices)

When downloading firmware, pay attention to: the hardware version (for example, V1, V2 β€” indicated on the sticker under the cover), region (firmware for CN may not work EU-release date (older versions may contain vulnerabilities).

Firmware for Mi Robot Vacuum-Mop 2 Lite (STYTJ01ZHM) Mi Robot Vacuum-Mop P (STYJ06YM) They're not compatible with Essential, and they're going to make the device inoperable.

dd if=/dev/mtdblock5 of=/tmp/backup.img

Download the file. backup.img on the computer - it will help to restore the vacuum cleaner in case of failure.-->

What to do if the vacuum cleaner "buried" after firmware

If after the update Xiaomi Mi Robot Vacuum Mop Essential stopped turning on, constantly flashing red or emitting cyclic beeps - these are signs of a "brick" (hardware failure).

  • πŸ”Œ Interrupted update (for example, power was turned off)
  • πŸ“ Incompatible version of the firmware
  • πŸ”§ Error in recording through ADB or SSH

Recovery (from simple to complex):

  1. Hard reset: press the Power button for 20 seconds. If the vacuum cleaner emits a long signal, let go. Sometimes this helps with mild failures.
  2. Recovery via Mi Home: Connect the vacuum cleaner to charge, open the app and try to run the update again. If the device is defined as "Offline", go to Settings β†’ Remove the device, then add it again.
  3. Firmware through UART: You will need to disassemble the vacuum cleaner, solder to contacts TX, RX, GND (They're on the main board next to the battery, and they're going to flash through the USB-to-TTL adapter. stm32flash: stm32flash -w recovery.bin -v -i ",-Rst"

If none of these methods worked, contact Xiaomi Service Center. In some cases (for example, if the bootloader is damaged), recovery is possible only with the help of the J-Link or ST-Link programmer.

πŸ’‘

When you use a "brick," never try to flash the device again with the same file, which can make the problem worse. Always use a recovery firmware (usually called recovery or emergency).

How to check the success of firmware and configure the vacuum cleaner after the update

After the firmware update, you need to make sure everything works correctly.

  • πŸ”„ Automatic charging function (vacuum cleaner must return to base on its own)
  • πŸ—ΊοΈ Map construction (start cleaning and check if the robot is β€œlost)
  • πŸ’§ Wet cleaning mode (if there is a mop module)
  • πŸ”Š Sound signals and voice prompts

If you used Valetudo or custom firmware, adjust the basic parameters:

  1. Open the Valetudo web interface at the address http://[IP_vacuumer].
  2. Go to the Settings β†’ Map and set up cleaning areas.
  3. In the Manual Control section, check for response to commands (e.g. Start, Pause, Home).
  4. If you want to integrate with Home Assistant, add the device through MQTT:
mqtt:




broker: 192.168.1.100




topic_prefix: valetudo/mi_robot

For official firmware after the update, you may need to re-assign to your Mi Home account. If the vacuum cleaner does not appear in the application:

  1. Remove it from the device list.
  2. Reset the vacuum cleaner settings (Power button) + Home for 5 seconds).
  3. Add it again through Add the device β†’ Vacuum cleaner.

Frequent Firmware Mistakes and How to Avoid Them

Even experienced users face problems when updating firmware. Consider typical errors and their solutions:

Mistake.Reason.Decision
Mi Mi Mi Home Mistake 10008Unstable Internet connection or Xiaomi server overloadedConnect the vacuum cleaner to Wi-Fi, try it later or use the mobile internet
The vacuum cleaner does not turn on after firmwareDamaged loader or incompatible firmwareFlow through UART Recovery
ADB: device not foundNot included in the debugging mode or incorrect IPCheck the connection by SSH, reboot the vacuum cleaner
Vacuum cleaner drives in circles after updateFailure of gyroscope calibrationPlace it on a flat surface and hold the power button for 10 seconds.

A few more tips to avoid problems:

  • πŸ“΅ Do not update your firmware on mobile Internet – use stable Wi-Fi.
  • ⚑ If the vacuum cleaner is discharged below 20%, first charge it to 50%+.
  • πŸ”’ Before the firmware through ADB or SSH Turn off the firewall and antivirus on your computer.
  • πŸ“‚ Save the firmware log (for example, by adb logcat command) > log.txt – This will help diagnose errors.

πŸ’‘

If the vacuum cleaner is not performing well after the firmware is done (e.g., it doesn't see a wall or it constantly collides), reset the sensors: put it on the charging station and hold the Home button for 15 seconds, which will recalibrate the laser rangefinder and the gyroscope.

FAQ: Frequently Asked About Xiaomi Mi Robot Vacuum Mop Essential

Can I roll back the firmware to the previous version?
Yes, but only if you have a backup (backup.img) For rollback: Download the desired firmware version (for example, with 4PDA). Flush it through. ADB or SSH (Reset your settings (Settings) as an update. β†’ Reset to Mi Home. note that after a rollback, some features (such as new cleaning modes) may stop working.
How to find out the current version of the firmware without the application?
There are three ways: Through the web interface: open in the browser http://[IP_vacuumer]/mi/io/info and find the field "fw_ver". Through SSH: Please join and execute the command: cat /proc/version Voice assistant: tell the vacuum cleaner "What kind of software do you have?" (only works on Chinese firmware).
Can I clean the vacuum cleaner without disassembly?
Yes, most of the time, you don't need to disassemble, except if the vacuum cleaner is completely brick-shaped and doesn't respond to the buttons, then you have to open the case to connect to the box. UART. For a regular update, it is enough: Stable Wi-Fi (for the first time). OTA) Computer with ADB or SSH (hand firmware) Charger (so that the vacuum cleaner does not discharge during the process)
Will the warranty be lost after the firmware?
The official updates to the Mi Home warranty are not removed, but if you: Install Valetudo or custom firmware, disassemble the case to connect to the UART, Used informal tools (ADB, Fastboot, then the warranty is void, and the service center can easily identify it by logs or autopsy traces.
Where to find the connection scheme to UART firmware?
Xiaomi Mi Robot Vacuum Mop Essential Contacts UART They're located next to the battery: GND β€” earth) TX β€” Data transmission (white or green) RX β€” data reception (yellow or orange) Connection scheme to USB-to-TTL adapter: β†’ Vacuum pay GND β†’ GND TX β†’ RX RX β†’ TX The tension must be 3.3V (not 5V!). Detailed photos of the connectors are on 4PDA.