How to reflash Xiaomi Mi Robot Vacuum 1S: 3 working methods + error solving

Why is Xiaomi Mi Robot Vacuum 1S a Robot Vacuum?

Xiaomi Mi Robot Vacuum Robot Cleaner 1S (model STYJ02YM) Even years after the release, it remains popular due to the balance of price and functionality, but over time, users face problems: the device begins to β€œglut”, loses connection with the Mi Home application, or just want to get new features from fresh firmware. Official updates through the application do not always come, and custom firmware (for example, Valetudo) opens access to advanced settings, such as zoning without the cloud or integration with Home Assistant.

But flashing is not just about clicking the Update button, and doing the wrong thing can turn your vacuum cleaner into a brick with a flashing red light. In this article, we'll look at three proven ways: updating with Mi Home, manually running through ADB, and installing alternative software, and how to avoid the mistakes that 90% of users make when they upgrade themselves.

Before you start, answer two questions: 1. What is your goal? (Fix bugs, get new features, integrate with another ecosystem?) 2. Are you prepared for the possible risks? (Losing warranties, resetting all settings, or even breaking the device?)

If the answer to the second question is β€œno”, it is better to stop at the official method through Mi Home.

πŸ“Š Why do you want to re-flash your Xiaomi Mi Robot? 1S?
I want to correct mistakes in my work.
New features (zoning, maps, etc.) are needed.
I am planning to integrate with Home Assistant/Valetudo
I just love experimenting.
Another option

Method 1: Officially Update via Mi Home

The safest and most recommended method is to upgrade through a proprietary app. Xiaomi periodically releases patches to fix bugs and optimize cleaning algorithms. However, there are nuances: not all regions receive updates at the same time, and some features may be blocked for certain firmware versions (for example, for Chinese devices with a link to cn servers).

To check and install the update:

  1. Open the Mi Home app and select your robot vacuum cleaner.
  2. Go to Settings β†’ About the device β†’ Update firmware.
  3. If a new version is available, click Update and wait until the process is completed (usually takes 5-15 minutes).

⚠️ Note: If your vacuum cleaner is tied to a Chinese server (cn) and you are in Europe, the updates may not come, in which case you will have to change the region in Mi Home or use alternative methods.

  • βœ… Pros: Safe, does not require technical skills, maintains the warranty.
  • ❌ Cons: Not all updates are available for all regions, limited functionality.

πŸ’‘

Before upgrading via Mi Home, make sure the robot vacuum cleaner is at least 50% charged and is located near the docking station.If the battery runs out during the process, this can cause a failure.

Method 2: Manual update via ADB (for power users)

If the official update is not available or you want to install a specific version of the firmware, you can use Android Debug Bridge (ADB). This method requires connecting a vacuum cleaner to your computer and working with the command line.

First, prepare:

  • πŸ–₯️ Computer with installed ADB and drivers for Xiaomi.
  • πŸ”Œ USB-Type-C Cable (Original or High Quality).
  • πŸ“ Firmware file in.pkg format (can be downloaded from miuirom.org or Xiaomi forums).

Step-by-step:

  1. Connect the vacuum cleaner to your computer via USB.
  2. Open the command prompt (CMD or Terminal) and type: Adb devices The device should appear in the list. If not, check the driver or cable.
  3. Transfer the vacuum cleaner to the command update mode: adb shell reboot update
  4. After the reboot, send the firmware file to adb sideload firmware.pkg (replace firmware.pkg with your file name).

It takes 10 to 20 minutes, and in no case do not turn off the cable or interrupt the process, which can damage the loader, and once completed, the vacuum cleaner will restart automatically.

Download the correct version of the firmware (.pkg)|Install ADB and driver|Check the battery charge (>50%)|Prepare original USB-cable|Backup current settings (if possible)-->

Method 3: Install custom firmware (Valetudo or DustBuilder)

For those who want full control of the vacuum cleaner, there are alternative firmware, such as Valetudo or DustBuilder, which allow:

  • πŸ—ΊοΈ Use Zoning and Virtual Walls without Xiaomi Cloud.
  • πŸ”„ Integrate the vacuum cleaner with Home Assistant, Node-RED or other smart home systems.
  • πŸ› οΈ Configure cleaning parameters (speed, suction force, movement algorithms).

However, custom firmware installation is the riskiest method, requiring unlocking the bootloader and may be insecure, and not all functions can work consistently (e.g., a laser rangefinder LDS sometimes conflicts with modified software).

Valetudo's general installation algorithm:

  1. Get root access to the vacuum cleaner (usually through an exploit in old firmware).
  2. Install. SSH-server and connect to the device.
  3. Download and stream Valetudo image via DD or Fastboot.
  4. Set up a web interface (available via local IP vacuum cleaner).

⚠️ Attention: Forums often complain that after installing Valetudo, the vacuum cleaner begins to "lose" the docking station or build the map incorrectly. 1S with selected custom firmware on GitHub.

What to do if after the firmware Valetudo vacuum cleaner is not turned on?
If the robot does not respond to the power button, try: 1. Hold the Reset button (under the lid) for 10-15 seconds. 2. Connect via ADB and execute the command reboot recovery. 3. Refuse the official version via Fastboot (requires disassembly and connection to UART). If nothing helps, refer to profile forums (for example, 4PDA or XDA Developers) with error logs.

Table: Comparison of firmware methods Xiaomi Mi Robot Vacuum 1S

MethodDifficultyRisks.Skills requiredPreservation of the guarantee
Through Mi Home.⭐ (simple)MinimumNo.Yes.
ADB (official firmware)⭐⭐ (middle-of-the-road)Medium (risk of "bricking")Knowledge of the command lineNo.
Castom firmware (Valetudo)⭐⭐⭐ (difficult)High (loss of functions, breakdown)ADB, SSH, working with GitHubNo.
Through Fastboot (disassembly)⭐⭐⭐⭐ (difficult)Critical (damage to the fee)Smoldering skills, UARTNo.

Common Firmware Mistakes and How to Avoid Them

Even experienced users sometimes make mistakes that lead to crashes.

  1. Incompatible firmware. If you install firmware from Mi Robot Vacuum 1C or Mi Robot Vacuum-Mop 2 on 1S, you are guaranteed to get a brick. Always check the model (STYJ02YM) and the version (firmware) in the.pkg file.
  2. Interrupt: If the firmware is interrupted by 50-70%, there is a high risk of damage to the system partitions, use a Uninterruptible Power Supply (UPS) for your computer and monitor the charge level of the vacuum cleaner.
  3. Wrong region: Firmware for the Chinese market (cn) may not work on European (eu) or global (global) devices. Check the region label in the file title (e.g, mirobot_vacuum1s_3.5.8_0056.cn.pkg).

If after the firmware vacuum cleaner:

  • πŸ”΄ Flashing red - problem with the bootloader (reflashing through Fastboot is required).
  • 🟑 Flashes yellow – File verification error (repeat firmware with correct.pkg).
  • πŸ”΅ Burns blue, but does not respond - software failure (try resetting through the ADB).

πŸ’‘

If the vacuum cleaner doesn't turn on after the firmware, don't panic. In 80% of cases, it can be restored via Fastboot or UART mode. The main thing is not to try to turn it on repeatedly, this can exacerbate the problem.

How to download the Xiaomi Mi Robot Vacuum 1S?

Official firmware can be found on the following resources:

  • 🌍 MiUI ROM β€” Official Version Archive for all Xiaomi devices.
  • πŸ“₯ Xiaomi official website (select the Smart Home section").
  • πŸ’¬ Forum 4PDA β€” themes for Mi Robot 1S contain references to firmware and instructions.

For custom firmware:

  • πŸ™ Valetudo on GitHub – open source software with support for Xiaomi.
  • πŸ€– DustBuilder – an alternative firmware with advanced features.

⚠️ Note: Only download firmware from trusted sources. Files from torrents or obscure sites may contain malicious code that will turn your vacuum cleaner into a botnet (yes, it happens!). MD5-hash file with original.

FAQ: Frequent questions about Xiaomi Mi Robot Vacuum 1S

Can I roll back the firmware to the old version?
Yes, but not always easy. Official firmware can be rolled back through Mi Home or ADB, if the version supports downgrade. Custom firmware (for example, Valetudo) may require a complete firmware reflash through Fastboot. ⚠️ Please note that after rollback some settings (such as room maps) may reset.
How do I find out the current version of the firmware?
Open Mi Home, select a vacuum cleaner and go to Settings β†’ About the device. The firmware version is listed in the Firmware bar (e.g, 3.5.8_0056). You can also find out the version through ADB Adb shell getprop ro.build.version.incremental
What if the vacuum cleaner does not see the docking station after the firmware?
This problem often occurs after installing custom firmware: Try: Reset the vacuum cleaner settings (hold the Reset button for 10 seconds), reflash the official version and check the station's operation, update the docking station firmware (if available). If nothing helps, the problem may be damage. LDS-sensor (repair required).
Can I use Mi Robot 1S without a computer?
Yes, but with limitations. Official updates are installed via Mi Home without a PC. For custom firmware, a computer is required (need for ADB, Fastboot or file downloads). Some users use Termux on Android, but it is difficult and does not guarantee success.
Will the guarantee be lost after the reflash?
Yes, if you use informal methods (ADB, custom firmware, disassembly), official updates through the Mi Home warranty are not removed. If the vacuum cleaner "bricked" after amateur activities, the Xiaomi service center will refuse repairs under warranty.