Roborock
The Roborock integration allows you to control your Roborock
This integration requires a continuous cloud connection while using the device. However, excluding map data, communication between the integration and the device is conducted locally.
Once you log in with your Roborock account, the integration will automatically discover your Roborock devices and get the needed information to communicate locally with them. Please ensure your Home Assistant instance can communicate with the local IP of your device. We recommend setting a static IP for your Roborock Vacuum to help prevent future issues. The device communicates on port 58867. Depending on your firewall, you may need to allow communication from Home Assistant to your vacuum on that port.
Configuration
To add the Roborock integration to your Home Assistant instance, use this My button:
Manual configuration steps
If the above My button doesn’t work, you can also perform the following steps manually:
-
Browse to your Home Assistant instance.
-
In the bottom right corner, select the
Add Integration button. -
From the list, select Roborock.
-
Follow the instructions on screen to complete the setup.
Robovac entities
Roborock devices have a variety of features that are supported on some devices but not on others. Only entities that your device supports will be added to your integration.
Vacuum
The vacuum entity holds the ability to control most things the vacuum can do, such as start a clean, return to the dock, or set the fan speed.
Select
Mop mode - Describes how to mop the floor. On some firmware, it is called ‘mop route’.
Mop intensity - How hard you would like your vacuum to mop.
Binary sensor
Cleaning - States if the vacuum has a clean currently active. This is on when the robot is actively moving around or when the robot returns to the dock when the battery is low but a clean is still active and will resume later.
Mop attached - States if the mop is currently attached.
Mop drying status - Only available on docks with drying capabilites - States if the mop is currently being driven.
Water box attached - States if the water box is currently attached.
Water shortage - States if the water box is low on water - ‘Ok’ if it has not detected a water shortage.
Sensor
Cleaning area - How much area the vacuum has cleaned in its current run. If the vacuum is not currently cleaning, how much area it has cleaned during its last run.
Cleaning time - How long the vacuum has been cleaning for. If the vacuum is not currently cleaning, how long it cleaned for in its last run.
Cleaning progress - Only available on some newer devices - what percent of the current cleaning is completed.
Dock error - Only available on the non-basic docks - The current error of the vacuum or ‘Ok’ if none exist
Main brush time left - How much time is left before Roborock recommends you replace your main brush.
Mop drying remaining time - Only available on the non-basic docks - How much time is left until the mop is dry and ready to continue cleaning.
Side brush time left - How much time is left before Roborock recommends you replace your side brush.
Filter time left - How much time is left before Roborock recommends you replace your vacuum’s air filter.
Status - The current status of your vacuum. This typically describes the action that is currently being run. For example, ‘spot_cleaning’ or ‘docking’.
Last clean begin - the last time that your vacuum started cleaning.
Last clean end - The last time that your vacuum finished cleaning.
Total cleaning time - The lifetime cleaning duration of your vacuum.
Total cleaning area - The lifetime cleaning area of your vacuum.
Vacuum error - The current error with your vacuum, if there is one.
Time
Do not disturb begin - When Do not disturb is enabled, the vacuum does not run or speak after this point.
Do not disturb end - When Do not disturb is enabled, the vacuum does not run or speak before this point.
Switch
Child lock - This disables the buttons on the vacuum. Nothing happens when the buttons are pushed.
Status indicator light - This is the LED on the top of your vacuum. The color changes depending on the status of your vacuum.
Do not disturb - This enables Do not disturb during the time frame you have set in the app or on the time entity. When Do not disturb is enabled, the vacuum does not run or speak.
Number
Volume - This allows you to control the volume of the robot’s voice. For example, when it states “Starting cleaning”. This allows you to set the volume to 0%, while the app limits it to 20%.
Button
There are currently four buttons that allow you to reset the various maintenance items on your vacuum. Pressing the button cannot be undone. For this reason, the buttons are disabled by default to make sure they are not pressed unintentionally.
Reset sensor consumable - The sensors on your vacuum are expected to be cleaned after 30 hours of use.
Reset side brush consumable - The side brush is expected to be replaced every 200 hours.
Reset main brush consumable - The main brush/ roller is expected to be replaced every 300 hours.
Reset air filter - The air filter is expected to be replaced every 150 hours.
Image
You can see all the maps within your Roborock account. Keep in mind that they are device-specific. The maps require the cloud API to communicate as the maps are seemingly stored on the cloud. If someone can figure out a way around this - contributions are always welcome.
Dyad entities
Roborock wet/dry vacuums currently expose some entities through an MQTT connection - it is currently cloud dependent.
Sensor
Status - The current status of your vacuum. This typically describes the action that is currently being run. For example, ‘drying’ or ‘charging’.
Battery - The current charge of your device.
Filter time left - how long until Roborock recommends cleaning/replacing your filter.
Brush time left - how long until Roborock recommends cleaning/replacing your brush.
Error - the current error of the device - if one exists - “None” otherwise.
Total cleaning time - how long you have cleaned with your wet/dry vacuum.
Zeo Entities
Roborock Zeo One currently exposes some entities through an MQTT connection - it is currently cloud dependent.
Sensor
State - The current state of your washing machine. For example, ‘washing’ or ‘rinsing’.
Countdown - Countdown for how long until the machine starts.
Washing left - The amount of time until your machine is done washing.
Error - The current error of the Zeo, if one exists.
FAQ
Can I use the Mi home app with this integration?
No. This integration requires information from your Roborock app to set up and uses Roborock’s protocols to communicate with your device. You must have your vacuum synced to the Roborock app.
Can I block internet access for this device?
As of right now - no. When the vacuum is disconnected from the internet, it will attempt to disconnect itself from Wi-Fi and reconnect itself until it can reach the Roborock servers. We are looking for the best way to handle this and see what can be blocked while still allowing the vacuum to function.
What devices are supported?
If you can add your device to the Roborock app - it is supported. However, some older vacuums like the Roborock S5 must be connected using the Mi Home app and can be set up in Home Assistant through the Xiaomi Miio integration.
What features will you support?
We are working on adding a lot of features to the core integration. We have reverse-engineered over 100 commands
- Selective room cleaning
- Dock controls
- Manual vacuum remote control
- Status information such as errors, clean time, consumables, etc.
- Viewing the camera
- Viewing the map
How can I clean a specific room?
We plan to make the process simpler in the future, but for now, it is a multi-step process.
-
Make sure to first name the rooms in the Roborock app; otherwise, they won’t appear in the debug log.
-
Go to Developer Tools > Actions > Roborock: Get Maps. Select your vacuum as the entity. Note that room IDs and names are only updated on the currently selected map.
-
Request: Your request should look like:
action: roborock.get_maps target: entity_id: vacuum.s7_roborock
-
Result: You will get a response like this:
vacuum.s7_roborock: maps: - flag: 0 name: Downstairs rooms: "16": Kitchen "17": Living room
-
-
Go back to Developer Tools > Actions > Vacuum: Send Command then type
app_segment_clean
as your command andsegments
with a list of the 2-digit IDs you want to clean. Then, addrepeat
with a number (ranging from 1 to 3) to determine how many times you want to clean these areas.
Example:
action: vacuum.send_command
data:
command: app_segment_clean
params:
- segments:
- 22
- 23
repeat: 2
target:
entity_id: vacuum.s7_roborock