Roborock OTA Installation Guide

This guide applies to the following robot models

If your roborock model is newer or not listed here, there’s no point in following this guide since the instructions will be different.

For newer Gen 1 robots, you will need to follow the instructions to root an S6, which can be found on the rooting instructions page.


Valetudo is not a custom firmware. It is simply an alternative App implementation + mock cloud which runs on the robot itself.

To do that, some secret data is required. Those being the did, the cloudKey and the current local token. Running on the robot itself enables Valetudo to access those as well as work while in AP mode.

It’s also very neat to have a completely self-contained appliance with a web interface.

Therefore, installing Valetudo simply means taking the stock firmware and injecting Valetudo into it.
Sadly though, this process has to be done by each user individually because hosting firmware images with Valetudo preinstalled would probably be copyright infringement.

Preparing the robot

Please note that newer firmwares don’t allow for flashing firmware updates via local OTA. This isn’t a problem with the S5 and older V1 models though, because it is always possible to factory reset back to the initial firmware version, which allows for installation of local OTA updates.

Thus, make sure to do a full factory reset before continuing with the guide or else the installation will likely fail. See for instructions on how to do that.

Building the Firmware Image

It is recommended to use the Dustbuilder to build your firmware image. It can be found here:

In DustBuilder, make sure to use the “Build update package” option, as it is the only file type supported by valetudo-helper-miioota.

The service is provided by Dennis who is also the reason, why Valetudo can exist in the first place.

The reason this guide switched to Dustbuilder only is that it provides a controlled environment, which eliminates common support issues. The irony that this guide suggests using “the cloud” to uncloud your device is not lost on me.

Flashing the firmware image

Flashing the firmware .pkg file can easily be done by using valetudo-helper-miioota, which is a standalone tool that does the right thing.

Just connect your laptop to the robots Wi-Fi access point and use the tool to install the firmware. A successful run should look similar to this:

./valetudo-helper-miioota install-firmware v11_2034.pkg 
Starting installer.
If you experience issues, make sure to disable your firewall and/or VPN.
Also, make sure that the robot is docked during the firmware update procedure.
If the install still fails, try turning the robot off and back on again and/or moving the laptop closer to it.

Robot discovery started...
Scan done.
Successfully discovered robot at
Reading firmware image..
Successfully read firmware image. Size: 78.62 MiB MD5Sum: fe820a713ec9efdfa3990b5d776e2cda

Listing for firmware download requests on
Response from robot: [ 'ok' ]
Received firmware download request from ::ffff:

Download seems to have finished.
The robot should now install the firmware. It will take 5-10 minutes.

Please keep the distance between your WiFi antenna and your robot as short as possible or the connection might get lost.

After the successful transfer of the image to the robot, the robot will start flashing the image. This will take about 5~10 minutes. After the process is done, the robot will state that the update was successful.

You can now return to the getting started guide.



Open source cloud replacement for vacuum robots enabling local-only operation

View the Project on GitHub Hypfer/Valetudo


Newcomer Guide Why Valetudo? Why not Valetudo? Getting Started Supported Robots Implementation overview Capabilities Overview Upgrading Rooting instructions Firmware Updates Buying supported robots


Roborock OTA

Companion Apps

Valetudo Companion (Android) Valetudo Tray Companion (Windows) Valeronoi Lovelace Valetudo Map Card I can't believe it's not Valetudo node-red-contrib-valetudo Fun & Games Other Noteworthy Projects


MQTT Home Assistant Node-RED openHAB


FAQ Roborock, Files to backup Style Guide Troubleshooting


Building and Modifying Valetudo Valetudo core concepts MQTT


Supported Dreame Devices Supported Roborock Devices Newcomer Guide Early 2021 Newcomer Guide Late 2021