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.
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:
- Connect the vacuum cleaner to a 2.4 GHz Wi-Fi network (5 GHz not supported).
- Open the Mi Home app, select your vacuum cleaner.
- Go to Settings β About the program β Update the firmware.
- 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
- 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.
- Copy the file to a FAT32 formatted flash drive (max. 32 GB).
- Put the flash drive in. USB-vacuum cleaner port (located under the lid next to the reset button).
- 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).
- 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 cleaner | Supported method | Max. firmware size. | Time to update |
|---|---|---|---|
| Mi Robot Vacuum 1 (roborock.vacuum.m1) | Flash drive, ADB | up to 500MB | 15-25 minutes |
| Mi Robot Vacuum-EU (STYJ02YM) | Flash, Mi Home | 300MB | 10-20 minutes |
| Mi Robot Vacuum S5/S6 | Flash, SSH, Mi Home | up to 1GB | 20-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.binOnce 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?
5. Solving firmware errors
Frequent problems and their causes:
| Mistake. | Reason. | Decision |
|---|---|---|
| Update failed error (1002) | Incompatible version of the firmware | Download firmware for the exact model (check roborock.vacuum.* in settings) |
| The indicator flashes red. | The flash drive reading error | Format the flash drive in FAT32, check the update.pkg file |
| The vacuum cleaner does not turn on after firmware | Loader damaged. | Recovery via USB-TTL or service center |
| ADB error: device unauthorized | USB debugging is not allowed | Enable 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.
- Download the archive firmware from GitHub (section) firmware_archive).
- Rename the file to downgrade.pkg and copy it to the flash drive.
- 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:
- Unlock root access via ADB (instructions on valetudo.cloud).
- Connect to SSH and execute the command: wget -O - https://install.valetudo.cloud | sh
- 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.