Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (2024)

READING TIME: 9 MINUTES

In this guide, I’ll show you how to setup and configure the Roborock S7 in Home Assistant. The Roborock S7 is easily one of the best robot vacuum/mop combo’s for Home Assistant in 2021/2022. I won’t go into all the features, but a full list is available on their Amazon product page.

Once it’s setup and added to Home Assistant, the possibilities are endless. You can create automations to run at certain days or times, scheduled daily vacuuming if away from home, pick individual rooms to vacuum, or simply view the stats & status of it – battery level, cleaning count, etc.

In Part 1 (this guide), I’ll show you:

  • First time setup
  • Connecting to MiHome App
  • Extracting the token (for use with a Lovelace card)
  • Adding Roborock S7 to Home Assistant
  • Adding the Xiaomi Lovelace cards

In Part 2, I’ll show you:

  • How to customize your Vacuum map card to include clickable zones
  • How to add text/icons for rooms on Vacuum Map Card
  • How to create a dropdown menu of rooms you can instruct your vacuum to clean or go to

In Part 3, I’ll show you:

  • How to configure with Google Assistant to send voice commands
  • Example automations & scheduling

In Part 4, I’ll show you:

  • How to control Roborock S7 mopping in Home Assistant.

In Part 5, I’ll show you:

  • How to vacuum multiple rooms in an automation (by calling each script.vacuum_xyz script). This allows you to select the order and schedule vacuuming for as many rooms as you’d like.

In Part 6, I’ll show you:

  • A super clean, compact vacuum & mop control card

Let’s get started!

Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (1)

roborock S7 Robot Vacuum and Mop, 2500PA Suction & Sonic Mopping, Robotic Vacuum Cleaner with Multi-Level Mapping, Works with Alexa, Mop Floors and Vacuum Carpets in One Clean, Perfect for Pet Hair

  • Roborock S7 robot vacuum is the Winner of 17 Best of CES 2021 Awards, from Business Insider, Digital Trends, Newsweek, How To Geek, and many more. Please be aware products purchased from non-authorized channels are not covered by the official warranty.
  • Sonic Mopping Technology. Roborock S7 robot vacuum mops with the power of sound, scrubbing up to 3,000 times per minute. Fed by a 300 ml electronic water tank, stains from coffee to mud and more can be cleaned deeply and effectively.

$649.99

Buy on AmazonLast update on 2022-07-25 / Affiliate links / Images from Amazon Product Advertising API

Step 1: Unbox and Charge

Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (2)

The first thing you’ll want to do in unbox everything and plug in your dock. Mine arrived with about 40% charge initially.

Locate the silver charging ports on the bottom of the robot and place it on the dock. Once plugged in, the light on the top should flash green and the vacuum will verbally tell you it’s “charging”.

Next, open the lid. If your wifi status light is already blinking blue, you are ready for Step 2: Adding to the MiHome app.

If yours is not blinking, press the “Spot Clean” and “Dock” buttons at the same time until you hear the “resetting wifi” voice alert. Then proceed with Step 2.

Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (3)

Step 2: Download MiHome App

Download the MiHome app from the Google Play or Apple App store. (The instructions tell you to download the Roborock app, but if you do that, you won’t be able to extract the token.)

Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (4)

Accept the ToS, choose your country, and then create your MiHome account. Make note of the username and password as you’ll need that for the token extraction step.

Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (5)

Once logged in, click Add a device:

Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (6)

It should autodetect it.

Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (7)

Then, connect it to your wifi network.

Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (8)
Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (9)

Then, pick a room where your robot vacuum will be docked at.

Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (10)

Then, look through the app settings.

  • Rename your device under Robot Settings. I named mine Rosie (Get it, Rosie the Robot from the Jetsons?)
  • Under Manage Maps, enable Map Saving.

Step 3: Retrieve Xiaomi Cloud Token

Next, we need to retrieve the Xiaomi token. This is needed so we can view the cleaning map we see in the MiHome app inside Home Assistant.

Navigate here: https://github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor

I’m using Windows 11 so I ran the token_extractor.exe, but you can also use this tool with docker, python, or linux.

Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (11)

Run the program after downloading. If using Windows, you’ll see a blue Windows Smartscreen message which is normal (just means the program hasn’t been digitally signed). Click More info and Run Anyway.

In the black box that pops up, enter your MiHome:

  • Username (UserID found in Profile in the MiHome app)
  • Password
  • Server (leave empty)
Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (12)

If the info was added correctly, you’ll see your Roborock’s token and IP address:

Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (13)

Quick Note: If you only want to add the vacuum to Home Assistant and don’t plan on using the Lovelace card to manage it, you don’t need the token. You just need the MiHome username and password.

If you plan on adding the Xiaomi Vacuum Map Card to control your Roborock from Lovelace, then you’ll need it.

Step 4: Add to Home Assistant

Now that you’ve retrieved the token and IP address, you can add it to Home Assistant. We are going to use the built-in Xiaomi miio integration for this.

Open Home Assistant. Go to Configuration > Integrations and search for Xiaomi Miio.

Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (14)

Enter your username, password, country, and then check the box for Configure Manually. Then click Submit.

Again, if you aren’t going to use the map card, then you don’t need to configure manually.

Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (15)

Enter the IP address and token:

Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (16)

Then choose a room and click Finish.

Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (17)

Step 5: Enable Disabled Entities

Go to Configuration > Devices and search for your vacuum.

Enable any entities that weren’t enabled by default. Some disabled ones you might want are Total Clean Count, Total Clean Area, and Total Duration. I enabled them all.

Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (18)

Install Xiaomi Cloud Map Extractor Integration

Before you can add the Lovelace map card, you need to add Xiaomi Cloud Map Extractor to Home Assistant. This will import the map from you MiHome app so you can view it in Lovelace by creating a camera: entity.

Assuming you have HACS installed, just open HACS > Integrations and search for Xiaomi Cloud Map Extractor.

Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (19)

In the bottom right corner, click Download this repository in HACS. After it’s downloaded, restart Home Assistant from Configuration > Settings > Server Controls.

Then, open File Editor > Configuration.yaml and add either the Basic or Recommend camera config (I used the Recommended one). If you aren’t using a !secrets file yet, you can just hardcode the values for now.

Basic:

camera: - platform: xiaomi_cloud_map_extractor host: !secret xiaomi_vacuum_host token: !secret xiaomi_vacuum_token username: !secret xiaomi_cloud_username password: !secret xiaomi_cloud_password

Recommended:

camera: - platform: xiaomi_cloud_map_extractor host: !secret xiaomi_vacuum_host token: !secret xiaomi_vacuum_token username: !secret xiaomi_cloud_username password: !secret xiaomi_cloud_password draw: ['all'] attributes: - calibration_points 

Restart Home Assistant again. Then go to Configuration > Entities and search for “camera”. You should see a new entity camera.xiaomi_cloud_map_extractor.

Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (20)

Add Xiaomi Vacuum Map to Lovelace

Now that you have your camera entity, install the Xiaomi Vacuum Map card.

  1. Open HACS
  2. Click the Frontend section
  3. Click the “+” button
  4. Search for “Xiaomi Vacuum Map” and install
  5. Reload
Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (21)

Then, navigate to one of your Lovelace dashboards.

Add Card > Search for “xiaomi”. It will look like this:

Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (22)

To use the card, you can either click the “Zone Cleanup” option and drag over an area that you’d like to clean, or “Pin & Go”, where you can just tell your roborock to go to a specific location.

I use the pin & go feature if I’m being lazy and want Rosie to meet me at the trash can.

Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (23)

Wrapping Up

That’s it! You have now successfully added your Roborock 7 vacuum to Home Assistant, as well as added some really nice Lovelace cards to manage it. This guide can also be followed for previous Roborock versions including Roborock 5, Roborock 6, etc.

I also wanted to point out that this vacuum now has an optional Auto-Empty Dock:

Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (24)

Roborock Auto-Empty Dock, Automatic Dust Collection, 3L Dust Bag Holds up to 60 Days of Dust, App-Controlled, Suitable for Roborock S7, S7MaxV Robot Vacuum, Black

  • Automatic Dust Collection: Dust is automatically emptied after a cleanup, turning dustbin emptying from often to occasional.
  • Dust Bag Support: Empty the bin without making a mess while keeping the dustbin clean. The large-capacity 3L bag holds up to 120 Days of Dust(Spare 1 Dust Bag Included).

$299.99

Buy on AmazonLast update on 2022-07-25 / Affiliate links / Images from Amazon Product Advertising API

The only downside (so far) of adding this vacuum to Home Assistant is that mopping isn’t yet supported in Home Assistant. To schedule mopping, you’ll need to use the MiHome app. You can now control Roborock mopping from Home Assistant – follow this guide!

Make sure to follow all parts 1-4 (links at the very top of this guide), where I show you how to define zones vacuum “zones”. So, rather than having to drag over a room to vacuum it – you can simply click a room on the Lovelace map. I’ll also show you some neat automations I’ve set up as well as how I’ve configured it to work with Google Assistant to manage Rosie using voice commands.

My Favorite Home Assistant Devices

Below are some of the Home Assistant-compatible devices I personally use in my home. I highly recommend each of them.

The full list of all Home Assistant compatible & recommended devices I use can be found on my Equipment List page.

Smart Home Product Finder

What hub do you currently use?

Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (25)

SmartThings

Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (26)

Home Assistant

Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (27)

Hubitat

Step 1 of 3

What product are you looking to add?

Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (28)

Lights

Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (29)

Locks

Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (30)

Thermostats

Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (31)

Cameras

Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (32)

Garage Door Opener

Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (33)

Switches

Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (34)

Sensors

Motion, Door & Window, Leak

Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (35)

Smart Plugs

Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (36)

Buttons

Step 2 of 3

What protocol?

Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (37)

Z-Wave

Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (38)

Zigbee

Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (39)

Wifi

Step 3 of 3

Retake quiz? Click here!

Part 1: How to Setup & Configure Roborock S7 with Home Assistant - Smart Home Pursuits (2024)

FAQs

How do I install Roborock S7 to home assistant? ›

Home Assistant Roborock S7 Integration (HOW-TO) - YouTube

How do I connect Roborock to home assistant? ›

Home Assistant Roborock S7 cloud map extractor

Open HACS, click on Integrations > Explore & Download Repositories, and search and install Xiaomi Cloud Map Extractor. Restart Home Assistant. After restart, open your Home Assistant configuration.

How do I connect to Roborock s7? ›

Open the top of your cleaner to see the Wi-Fi indicator light during the connection process.
  1. 3.1 Tap the “+” icon to add a device.
  2. 3.2 Tick “Blue Light Blinking”.
  3. 3.3 Select your home Wi-Fi and input your Wi-Fi password.
  4. 3.4 Tap “Connect to robot Wi-Fi”.
  5. 3.5 Select Wi-Fi network named roborock-vacuum-xxxx to connect.

How do I connect Roborock to Google home? ›

Steps to Follow:
  1. Sign in with your google account.
  2. Go to “Add”
  3. Under the “Add to Home”
  4. Set up Device Add “Mi Home”
  5. Sign in Mi home.
  6. Add Roborock Vacuum Cleaner under Mi Home account to Google Home.
  7. Go to “Choose Device”
  8. After go to choose device Select “roborock”

Can I add Roborock to Apple home? ›

Roborock works with HomeKit using Homebridge or HOOBS. Since Roborock products don't natively come with support for HomeKit, Homebridge creates a bridge between Roborock products and HomeKit, allowing the device to show up on your Home Hub and connected iPhones or iPads.

What is home assistant Hacs? ›

HACS is a integration that gives the user a powerful UI to handle downloads of custom integrations and plugins. Highlights of what HACS can do: Help you discover new custom elements. Help you install (download) new custom elements. Help you keep track of your custom elements.

How do I rename Roborock s7? ›

On the map screen, tap the three dots on the top right corner then tap “General settings.” In this menu tap “Change device name,” make the changes you want, then press “o*k.”

How do you name a room in MI Home app? ›

The following steps are what I did:
  1. Go to the setting of your RoboRock APP.
  2. Click "Firmware Updates"
  3. Then open RoboRock App, it will ask you " delete this APP and Download it again"
  4. I did it, then the User Interface became a little bit different with the option to Choose Multilevel and Name the room.
Mar 28, 2020

Top Articles
Latest Posts
Article information

Author: Frankie Dare

Last Updated:

Views: 5689

Rating: 4.2 / 5 (73 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Frankie Dare

Birthday: 2000-01-27

Address: Suite 313 45115 Caridad Freeway, Port Barabaraville, MS 66713

Phone: +3769542039359

Job: Sales Manager

Hobby: Baton twirling, Stand-up comedy, Leather crafting, Rugby, tabletop games, Jigsaw puzzles, Air sports

Introduction: My name is Frankie Dare, I am a funny, beautiful, proud, fair, pleasant, cheerful, enthusiastic person who loves writing and wants to share my knowledge and understanding with you.