How to sew a robot vacuum cleaner Xiaomi Mi Robot Vacuum: official and alternative methods

Xiaomi Mi Robot Vacuum (including 1S, STYJ02YM, S5 and S6) require regular firmware updates to fix bugs, improve navigation and add new features. However, a standard update through the Mi Home app is not always available: Xiaomi servers can block updates for regions outside China, and custom firmware (such as Valetudo or OpenMiHome) opens up advanced capabilities like local management without the cloud.

In this guide, we will analyze all current methods of firmware - from the official OTA-Update to manual reflashing through ADB or SSH. We'll focus on the risks of bricking your device when alternative software is not firmware correctly, and how to restore it. If your vacuum cleaner is hanging on the screensaver, not connecting to Wi-Fi, or is malfunctioning, the right firmware can solve these problems.

1. Firmware Preparation: What You Need to Know Before You Start

Before you start the update, check three critical parameters:

  • πŸ”‹ Battery charge: not less than 50%.Discharge during firmware is high risk of damage to the loader.
  • πŸ“‹ Vacuum model: firmware for Mi Robot Vacuum 1 (model) roborock.vacuum.m1) Not compatible with Mi Robot Vacuum-EU (roborock.vacuum.e1).
  • πŸ”— Current version: Check out Mi Home β†’ The device β†’ Settings β†’ Firmware older than 2021 may require an interim update.

For manual firmware, you will additionally need:

  • πŸ’» Windows computer 10/11 or Linux (for the ADB/SSH).
  • πŸ”Œ USB-Type-C Cable (for models with a connector on the body) or adapter USB-TTL (old-form).
  • πŸ“ Firmware file in.pkg (official) or.bin (castom) format).

⚠️ Note: Firmware alternative software (for example, Valetudo) RE) voids Xiaomi's warranty and could result in cloud-based features being blocked (LDS) Unofficial firmware sometimes causes calibration errors.

πŸ“Š What Xiaomi Mi Robot model do you use?
Mi Robot Vacuum 1/1S
Mi Robot Vacuum-EU (STYJ02YM)
Mi Robot Vacuum S5/S6
Another model
I don't know.

2. Official update via Mi Home (the safest way)

The standard method is suitable for most users and does not require technical skills.The update is done over the air (OTA) through Xiaomi servers.

Instructions:

  1. Connect the vacuum cleaner to a 2.4 GHz Wi-Fi network (5 GHz not supported).
  2. Open the Mi Home app, select your vacuum cleaner.
  3. Go to Settings β†’ About the program β†’ Update the firmware.
  4. If a new version is available, click Update and wait until it is completed (10-30 minutes).

If the update button is inactive:

  • 🌍 Check the region of the Mi Account: for China updates are released earlier. Change the region in the profile settings (risk of locking the device if the region and firmware mismatch).
  • πŸ”„ Reboot the vacuum cleaner: Hold the Home button for 10 seconds.
  • πŸ“‘ Connect to another Wi-Fi network (sometimes your business network is blocked) OTA).

⚠️ Warning: After upgrading via Mi Home, the vacuum cleaner can reset the cleaning area settings.Export room maps in advance to Settings β†’ Map. β†’ Save (not available on all models).

πŸ’‘

Officially OTA-Update is the only method that retains Xiaomi warranty and access to cloud functions (voice assistant, remote management).

3. Manual update via firmware file (for experienced)

If OTA does not work (for example, due to regional restrictions), you can install firmware manually via the.pkg file.This method is suitable for Mi Robot Vacuum 1/1S and S5/S6 models.

Step-by-step:

β˜‘οΈ Preparation for hand firmware

Done: 0 / 4
  1. Download the firmware for your model from the official Xiaomi website (Support section). The file name should contain the model, for example, the model: mirobot_vacuum_s5_3.5.8_0000.pkg.
  2. Copy the file to a FAT32 formatted flash drive (max. 32 GB).
  3. Put the flash drive in. USB-vacuum cleaner port (located under the lid next to the reset button).
  4. Hold the Home button for 5 seconds until the white indicator lights up. Release the button and the update will start (the indicator will flash orange).
  5. Wait until the finish (the vacuum cleaner will sound and restart).

If the vacuum cleaner does not respond to the flash drive:

  • πŸ”„ Rename the firmware file to update.pkg (sometimes helps).
  • πŸ’Ύ Try a different flash drive (some models don't read it) USB 3.0).
  • πŸ”Œ Connect the vacuum cleaner to the charging station and try again.
Model vacuum cleanerSupported methodMax. firmware size.Time to update
Mi Robot Vacuum 1 (roborock.vacuum.m1)Flash drive, ADBup to 500MB15-25 minutes
Mi Robot Vacuum-EU (STYJ02YM)Flash, Mi Home300MB10-20 minutes
Mi Robot Vacuum S5/S6Flash, SSH, Mi Homeup to 1GB20-40 minutes

4. firmware via ADB/SSH (for custom firmware)

Alternative firmware like Valetudo or Dustcloud is installed via ADB (Android Debug Bridge) or SSH. This method requires unlocking root access and is only suitable for advanced users.

Tools required:

  • πŸ–₯️ Platform Tools (download from Android website).
  • πŸ”Œ USB-Type-C Cable (for connecting to a PC).
  • πŸ“ Firmware in.img or.bin format (for example, Valetudo) RE).

Instructions for Valetudo RE:

1. Connect the vacuum cleaner to the PC via USB (enable debugging over USB in the developer settings).


2. Open the terminal and check the connection:




adb devices




3. Download the firmware to the device memory:




adb push valetudo-re.bin /tmp/




4. Connect to SSH (default password – often blank or β€œ1234”):




ssh root@[IP- vacuum cleaner address]




Start the installation:




cd /tmp




flash valetudo-re.bin

Once installed, the vacuum cleaner will be available over local IP (e.g. http://192.168.1.100) without being linked to the Xiaomi cloud.

  • ❌ Voice control through Alice/Google Assistant.
  • ❌ Cloud maps and cleaning history.
  • ❌ Automatic updates from Xiaomi.

⚠️ Note: On models with firmware older than 2022 (firmware 3.5.8)+) Xiaomi has blocked the possibility of installing custom software through ADB. In this case, hardware access (soldier) will be required. USB-TTL pay-to-pay).

What to do if the vacuum cleaner is stuck on the logo after firmware?
If the vacuum cleaner does not load after installing the alternative firmware (white indicator burns, no button reaction), try: 1. Hard reset: hold the Home button for 20 seconds. 2. Restore via USB-TTL: you will need a soldering iron and a programmer (instructions on the Valetudo forum). 3. Recoil on the stock firmware: download the original.pkg and run through the flash drive. If nothing helps, contact the service center (but the warranty will be lost).

5. Solving firmware errors

Frequent problems and their causes:

Mistake.Reason.Decision
Update failed error (1002)Incompatible version of the firmwareDownload firmware for the exact model (check roborock.vacuum.* in settings)
The indicator flashes red.The flash drive reading errorFormat the flash drive in FAT32, check the update.pkg file
The vacuum cleaner does not turn on after firmwareLoader damaged.Recovery via USB-TTL or service center
ADB error: device unauthorizedUSB debugging is not allowedEnable Settings β†’ For developers β†’ Debugging by USB

If the vacuum cleaner after a failed firmware:

  • πŸ”΄ Not included: try to hold the Home + Dock 15 seconds (hardware reset).
  • 🟑 Hangs on the screensaver: reflash through Mi Home or flash drive.
  • 🟒 Works, but without Wi-Fi: reset your network settings in Settings β†’ Network β†’ Reset.

πŸ’‘

Before you firmware, back up your room maps: in Mi Home, go to Settings β†’ Map β†’ Export (not available on all models). Once the map is updated, you can import it back.

6.Return to the previous version of the firmware

If the new firmware malfunctions (for example, the vacuum cleaner does not build the map well or constantly loses the connection), you can return the old version.

  1. Download the archive firmware from GitHub (section) firmware_archive).
  2. Rename the file to downgrade.pkg and copy it to the flash drive.
  3. Insert the flash drive into the vacuum cleaner and hold the Home for 10 seconds.

Limitations:

  • ⚠️ On models S5/S6 Recoil is possible only within one major version (for example, with the 3.5.8 on 3.3.9, not 2.x.x).
  • ⚠️ After the rollback, you may need to re-assign to your Mi Home account.

7.Alternative firmware: Valetudo, Dustcloud and others

Custom firmware removes the dependence on the Xiaomi cloud and adds features:

  • 🌐 Valetudo RE: Local management through the web interface, support MQTT Integration with Home Assistant.
  • πŸ”„ Dustcloud: An Alternative Open Source Cloud Service.
  • πŸ› οΈ OpenMiHome: advanced fan settings, cleaning areas and schedules.

Cons of custom firmware:

  • ❌ Loss of guarantee.
  • ❌ No support for voice assistants (Alice, Google, Siri).
  • ❌ Risk of navigation errors (especially in models with a LDS).

For the installation of Valetudo RE:

  1. Unlock root access via ADB (instructions on valetudo.cloud).
  2. Connect to SSH and execute the command: wget -O - https://install.valetudo.cloud | sh
  3. After installation, the vacuum cleaner will be available at the address http://[IP-address].

πŸ’‘

Custom firmware is suitable for smart home enthusiasts, but requires Linux skills and a willingness to lose Xiaomi’s cloud features.

FAQ: Frequent questions about the firmware Xiaomi Mi Robot

Can I use a vacuum cleaner without a computer?
Yes, if available. OTA-Update via Mi Home. for manual firmware without PC you will only need a flash drive with a.pkg file (see Section 3).
Why can't the vacuum cleaner see the firmware file on the flash drive?
Reasons: The USB drive is not formatted in FAT32. The file name is incorrect (should be update.pkg). The USB vacuum port is damaged (try another cable).
How do I check the firmware version?
Open Mi Home, select a vacuum cleaner β†’ Settings β†’ The version is in the format X.Y.Z_XXXX, where: X.Y.Z β€” version. XXXX β€” assembly number.
Can I use the iPhone to clean the vacuum cleaner?
No, for hand-held firmware through ADB/SSH need a computer (Windows/Linux/Mac). However, OTA-Update via Mi Home is available with iOS.
What if the vacuum cleaner does not connect to Wi-Fi after the firmware?
Reset the network: Hold Home + Dock for 5 seconds. In Mi Home, delete the device and add it again. If it doesn't work, re-sweeten the firmware.