Cloud-free control webinterface for vacuum robots

View the Project on GitHub Hypfer/Valetudo




Roborock Legacy Viomi


MQTT Home Assistant


FAQ Frequently requested features Files to backup Troubleshooting


Building and Modifying Valetudo Valetudo core concepts

Knowledge Base

Supported Roborock Devices Supported 3irobotix Devices Supported Dreame Devices

Roborock Installation Guide

This guide applies to the following robot models

Everything else is unrootable (yet) and therefore not supported by Valetudo.
This includes the S6 as well as the S5 Max.


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 webinterface.

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 indivually because hosting firmware images with Valetudo preinstalled would probably be copyright infringement.

Building the Firmware Image

For this step, a Linux based operating system is required, since we need to mount the ext4 file System image of the stock firmware.

Sadly, neither OSX nor WSL (the Windows Subsystem for Linux) contain ext4 drivers so you definitely need some kind of Linux installation. A VM should be sufficient to build the firmware image, though.


If you don’t have a Linux based operating system at hand or you don’t want to build the image yourself, you can skip the Image Building steps here by using Dennis’s Dustbuilder:


There are a few dependencies required for building the image. Please refer to your Linux distributions documentation to find out how to install them.

Root Access

If you plan on being able to connect to the robot via SSH, you will need a public/private ssh keypair. This is not required to run valetudo. It’s useful to fetch logs and assist the development if you encounter any bugs, though.

If you do not have a keypair yet, you can generate one with the following command

ssh-keygen -C ""

Per default, the generated keys will be created in ~/.ssh. If you choose to create the keys in another location, remember your chosen location for later.

Fetching the original firmware

It is recommended to fetch the firmware from the official sources.


Firmware Filenames
  • v11_003047.pkg
  • v11_003094.pkg
  • v11_003132.pkg
  • v11_003194.pkg
  • v11_003358.pkg
  • v11_003452.pkg
  • v11_003466.fullos.pkg
  • v11_003468.fullos.pkg
  • v11_003514.pkg
  • v11_003522.fullos.pkg
  • v11_003526.fullos.pkg
  • v11_003528.fullos.pkg
  • v11_003530.fullos.pkg
  • v11_003532.fullos.pkg
  • v11_003570.fullos.pkg
  • v11_003600.pkg
  • v11_004004.amhd98763.fullos.pkg
  • v11_004007jjsfghfdff.fullos.pkg[package name][package name]




Firmware Filenames
  • v11_001228.pkg
  • v11_001518.pkg
  • v11_001633.pkg
  • v11_001702.pkg
  • v11_001712.pkg
  • v11_001718.fullos.pkg
  • v11_001720.fullos.pkg
  • v11_001730.fullos.pkg
  • v11_001748.fullos.pkg
  • v11_001756.fullos.pkg
  • v11_001768.fullos.pkg
  • v11_001780.fullos.pkg
  • v11_001782.fullos.pkg
  • v11_001784.fullos.pkg
  • v11_001798.fullos.pkg
  • v11_001810.fullos.pkg
  • v11_001818.fullos.pkg
  • v11_001820.fullos.pkg
  • v11_001854.fullos.pkg
  • v11_001856.fullos.pkg
  • v11_001864.fullos.lmn09e8u2.pkg
  • v11_001886.fullos.ee205b4f-7d81-45c9-95a3-a4eaeed1af52.pkg
  • v11_001898.fullos.a5a3abad-09c1-4285-88c9-9640ec7b3e88.pkg
  • v11_002008.fullos.fd043420-6ddb-4e54-bdb7-a8deec19f0fd.pkg
  • v11_002020.fullos.6fbc6417-7a69-495a-879c-41fec575d6be.pkg[package name][package name][package name][package name]



Image Building

It is recommended to use to build the image.

--valetudo-path expects a path to a folder containing two things:

You can create a folder with all the needed things with the commands like:

git clone
cd ./Valetudo

Please refer to this command-line example and edit it according to your setup:

./     --run-custom-script=ALL \
                        --timezone=Europe/Berlin \
                        --public-key=~/.ssh/ \
                        --enable-greeting \
                        --disable-logs \
                        --replace-adbd \
                        --valetudo-path=./Valetudo \
                        --replace-miio \
                        --enable-dns-catcher \
                        --fix-reset \
                        -f path_to_firmware.pkg

Flashing the firmware image

After the successful build of the firmware image, we can tell the robot to download and flash it.

First, we need to create a virtual environment for it in python. For this the following packages need to be installed:

cd ..
mkdir flasher
cd flasher
python3 -m venv venv

and install the required miio python packages:

source venv/bin/activate
pip3 install wheel
pip3 install python-miio
cd ..

Connect to your robot’s Wi-Fi Access Point and run the following command to aquire your token: mirobo --debug discover --handshake true

If your robot doesn’t show up check if you have multiple connected network interfaces. Either disable all other (those not connected to your robots Wi-Fi) or use a VM which you explicitly connect to your hosts Wi-Fi interface. Another possibility is an internal firewall blocking it. On RedHat-based Linux systems using Firewalld (CentOS, Fedora, etc.), make sure the firewall zone for your connection to the robot’s Wi-Fi Access Point is set to “trusted” instead of “public”.

mirobo --ip --token XXXXXXXXXXXXXXXX update-firmware --ip YOUR_IP_ADDRESS path/to/built/image.pkg

If you’re upgrading Valetudo to a new version, you need to replace with the robot’s current IP address. Also please keep the distance between your Wi-Fi 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 should then reboot the Robot either via ssh command ssh root@ and typing reboot or simply by taking it out of dock an push the ON switch to prevent valetudo stuck on LOADING STATE???

Firmware Installation fails

… before the download bar appears:

… after the download bar appeared:

Connect your robot to your Wifi

To connect the robot to your home Wifi, just connect to and use Valetudos settings dialog to enter your wifi credentials. Please note that only WPA2-PSK is supported. After updating the Wifi settings, you should reboot your robot.

Open Valetudo

You need to get the IP of your robot (e.g. from your router) and connect to it using your browser e.g. http://192.168.Y.Z