Roborock S7MaxV - HA Integration

Hey there!
I found this discussion in the iobroker forums: [Tester gesucht] Roborock-API
The user rovo89 managed to connect to the roborock api and together with Meistertr they are trying to create a Roborock adapter for iobroker. Maybe we can adapt that work for a home assistant integration?

12 Likes

Oh this is awesome! If I had the know-how I would totally help in this endeavor but I’m just a user, not a creator.

Bump!

Yep that’s interesting and I’m glad to see this discussion : Roborock token support (with code) · Discussion #1572 · rytilahti/python-miio · GitHub
there are talking about the same forum, I just hope that someone will be able to make this work :slight_smile:

Dont know why some of us dont want to use the Mi Home APP but i receive my Roborock S7 Pro Ultra yesterday and first try was with the Roborock app, which is great, after i came to Mi Home APP and it offers the same settings and same possibility of Roborock APP and Mi Home APP just needed to integrate the roborock to HA with this great tutorial :
https://peyanski.com/home-assistant-roborock-s7-integration-how-to/

thanks @peyanski for your clear, simple and working tutorial! take 10 minutes to complete.

you can even have the map under HA and even Rooms you define under Mi Home APP and almost all settings and functionality of the app.

After that you dont no more need Mi Home APP. Only if you want to modify rooms definition or forbiden zones but sure you dont do that every day…

TRICK: for those who have 2 or more regions for their devices, i use a “clone APP” on Android, so i have one MiHome APP with CN region and a second one with DE region (this one only for the Roborock).

Hi,
Well, there are differences in the two apps.
This starts with the zones, in the Mi Home app you can not create schedules with it. In the Roborock APP this works without any problems!
Then you have the remote camera which only works via the Roborock app and last but not least the support.
On the one hand, you will be helped much faster with questions and on the other hand, you get updates for your Roborock sooner.

Unfortunately, there is still no way to read the token from the Roborock app, otherwise I would have long since changed again.

5 Likes

I’ve moved the script from [Tester gesucht] Roborock-API to python.
I’ll try to create the integration, but if someone with more experience wants to do it here it is: homeassistant-roborock

11 Likes

Does it work? Do you receive data with it?

HOLY SHIT, this is amazing! THANKS SO MUCH!

I just added the repo to HACS and installed it, restarted HA, added the Roborock integration, input my Roborock username&password, and immediately my vacuum popped up.

As soon as I clicked turn on, the vacuum started.

Right now turn on/off are the only options.

2 Likes

I was able to connect as well and received the same results.

Great work!! Let me know how I can help.

1 Like

Hello,
Do you use the same Login (email address) and password as for the Roborock application?
I try but it gives me every time a connection error message.
Any idea ?

sorry but i can create shedules with my Roborock S7 Pro Ultra…and it seems that there is just a little difference between Vmax and Ultra Pro, so i dont understand why you can not make schedules?.

Because i dont have camera on the 7 Pro Ultra …so its not a problem with Mi Home or Roborock App for my personnal case of course. i understand your.

I dont mind to have updates faster, usually when i want an update i just check if there is a new one, i never check “auto updates” anyway.

Here is the full card first view and 2nd pict is the rooms view if you have create them under Mi Home APP

all entities and settings as in the Roborock app…seems that s missing anything…perhaps i forgot something.

You can’t schedule zones together with rooms in the Xiaomi app. It only works with rooms or everything.

In the Roborock app, you can schedule certain processes under “Programs”, such as Clean dining room + bedroom + desk zone.

Show me where you do that in the Xiaomi app :wink:
I’m unfortunately on the road otherwise I would have shown you a picture.

hello can you share the lovelace code ?

Sure!

the code will give you nothing : you must follow this tutorial to install : https://peyanski.com/home-assistant-roborock-s7-integration-how-to/

i follow “Roborock S7 in Home Assistant – Advanced Method” with " Xiaomi Cloud Map Extractor & Xiaomi Vacuum Map card

This card with the Mihome App for Schedule is all i need, simple things are the best for me, no need to combine zones and room, when i want to clean something, its always the entire room.

and you have the option “Pin and Go” to do some local cleanning.

Enjoy

I did already installed the hacs integration and it is working. But you have already configured a nice lovelace ui therefor i asked for the code :slight_smile:

1 Like

Adding the github in HACS also worked for me! However, it doesnt appear that it’s able to pull the brush/sensor info?

sorry, you are right :wink: this is the card i use : https://github.com/PiotrMachowski/lovelace-xiaomi-vacuum-map-card

config need to be yours and you need to click on “generate rooms config” in the card option after all is installed (modify dashboard then modify card then generate rooms config)

this what the code look like after “generate rooms config” so dont use my config lol :

type: custom:xiaomi-vacuum-map-card
map_source:
  camera: camera.xiaomi_cloud_map_extractor
calibration_source:
  camera: true
entity: vacuum.roborock_vacuum_a62
vacuum_platform: default
title: ''
map_modes:
  - template: vacuum_clean_zone
  - template: vacuum_goto
  - template: vacuum_clean_segment
    predefined_selections:
      - id: '1'
        icon:
          name: mdi:broom
          x: 27325
          'y': 22925
        label:
          text: Bureau Interdit
          x: 27325
          'y': 22925
          offset_y: 35
        outline:
          - - 26900
            - 21150
          - - 27750
            - 21150
          - - 27750
            - 24700
          - - 26900
            - 24700
      - id: '16'
        icon:
          name: mdi:broom
          x: 25450
          'y': 27325
        label:
          text: Sejour
          x: 25450
          'y': 27325
          offset_y: 35
        outline:
          - - 21450
            - 24150
          - - 29450
            - 24150
          - - 29450
            - 30500
          - - 21450
            - 30500
      - id: '17'
        icon:
          name: mdi:broom
          x: 17075
          'y': 20625
        label:
          text: Entree
          x: 17075
          'y': 20625
          offset_y: 35
        outline:
          - - 15600
            - 19450
          - - 18550
            - 19450
          - - 18550
            - 21800
          - - 15600
            - 21800
      - id: '18'
        icon:
          name: mdi:broom
          x: 13525
          'y': 20950
        label:
          text: Couloir
          x: 13525
          'y': 20950
          offset_y: 35
        outline:
          - - 11250
            - 20450
          - - 15800
            - 20450
          - - 15800
            - 21450
          - - 11250
            - 21450
      - id: '19'
        icon:
          name: mdi:broom
          x: 16225
          'y': 24125
        label:
          text: Cuisine
          x: 16225
          'y': 24125
          offset_y: 35
        outline:
          - - 13700
            - 21750
          - - 18750
            - 21750
          - - 18750
            - 26500
          - - 13700
            - 26500
      - id: '20'
        icon:
          name: mdi:broom
          x: 21950
          'y': 24025
        label:
          text: Salon
          x: 21950
          'y': 24025
          offset_y: 35
        outline:
          - - 18600
            - 19800
          - - 25300
            - 19800
          - - 25300
            - 28250
          - - 18600
            - 28250
      - id: '21'
        icon:
          name: mdi:broom
          x: 14550
          'y': 19375
        label:
          text: WC Bas
          x: 14550
          'y': 19375
          offset_y: 35
        outline:
          - - 13200
            - 18350
          - - 15900
            - 18350
          - - 15900
            - 20400
          - - 13200
            - 20400

Enjoy

Are you using roborock app or mihome?

I don’t think that card works if using the roborock app using that new HACS integration, does it?

1 Like

LOL of course i use Mi Home, that the point of this discussion…

Because of this lovely card with all i need it uninstall Roborock App and use Mi Home App because its needed to integrate in HA, no choice.

Or wait for a Roborock App implementation, no other solution at this time…