Roborock S8 cleaning multiple zones in one go

Hey hey
I got a Roborock S8 which should clean 3 zones after I pressed a button.
Therefore I wrote a script that contains (among other things - like setting fan speed, and so on) the clean zone comnand:

service: roborock.vacuum_clean_zone
data:
  zone:
    - - 39541
      - 41785
      - 40619
      - 43311
    - - 7231
      - 26694
      - 8931
      - 27890
    - - 3913
      - 25266
      - 7761
      - 26735
  repeats: 2
alias: LadenHinten VorTeichhalle saugen
target:
  entity_id: vacuum.roborockladenhinten

But with this command my roborock only cleans the first zone two times.
He ignores the other two zones.
What did I do wrong here?

1 Like

Did know this too:

Everything you want zones, area, change settings etc.

This card Im using.
But this doesnt help me within my script?

But it does…

Open the card, put it in edit mode… See that copy service call button on the editor page? :slight_smile:
Make your selections on the vac card as you want - then click ‘copy service call’

Here in mine - I picked rooms, clicked the two rooms I want then - this is whats in my copy buffer:

{
  "domain": "xiaomi_miio",
  "service": "vacuum_clean_segment",
  "serviceData": {
    "segments": [
      "20",
      "29"
    ],
    "entity_id": "vacuum.roborock_rosie"
  }
}

Voila! Everything you need to paste into a script, correctly formatted for you.

2 Likes

I created a testscript with different zones:
After copying the service call I get the following:

{
  "domain": "roborock",
  "service": "vacuum_clean_zone",
  "serviceData": {
    "zone": [
      [
        31014,
        27451,
        32793,
        29156
      ],
      [
        28838,
        27580,
        30362,
        29029
      ],
      [
        29734,
        25017,
        30745,
        26978
      ]
    ],
    "repeats": 2,
    "entity_id": "vacuum.roborockladenhinten"
  }
}

If I convert this (so that HA is happy) inside my script, I get the same as before, with the same problem:

service: roborock.vacuum_clean_zone
data:
  zone:
    - - 31014
      - 27451
      - 32793
      - 29156
    - - 28838
      - 27580
      - 30362
      - 29029
    - - 29734
      - 25017
      - 30745
      - 26978
  repeats: 2
target:
  entity_id: vacuum.roborockladenhinten

Ah everything works fine.
Im just to dumb to write 4 correct coordinates :o)

Are you using the Roborock app, how did you get the camera entity of the map.? What HASS integration are you using.

1 Like

Hi @NathanCu which RoboRock integration are you using for the room mapping features buddy? Thank you