TheSmurf
(Florian Vieten)
July 4, 2023, 7:15am
1
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
poudenes
(Poudenes)
July 4, 2023, 8:41am
2
Did know this too:
This card provides a user-friendly way to fully control map-based vacuums in Home Assistant. Supported brands include Xiaomi (Roborock/Viomi/Dreame/Roidmi/Valetudo/Valetudo RE), Neato, Wyze, Roomba...
Everything you want zones, area, change settings etc.
TheSmurf
(Florian Vieten)
July 4, 2023, 10:42am
3
This card Im using.
But this doesnt help me within my script?
NathanCu
(Nathan Curtis)
July 4, 2023, 4:48pm
4
But it does…
Open the card, put it in edit mode… See that copy service call button on the editor page?
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
TheSmurf
(Florian Vieten)
July 5, 2023, 9:58am
5
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
TheSmurf
(Florian Vieten)
July 5, 2023, 11:43am
6
Ah everything works fine.
Im just to dumb to write 4 correct coordinates :o)
faspina
(Frank Spina)
November 27, 2023, 12:39am
7
Are you using the Roborock app, how did you get the camera entity of the map.? What HASS integration are you using.
1 Like
euromem
February 25, 2024, 2:04pm
8
Hi @NathanCu which RoboRock integration are you using for the room mapping features buddy? Thank you