It appears that the guide I used is now the one that is on the GitHub. https://hackmd.io/s/HkwF33oWE
Back when I started looking for a guide, the GitHub instructions were crazy advanced (to me).
It appears that the guide I used is now the one that is on the GitHub. https://hackmd.io/s/HkwF33oWE
Back when I started looking for a guide, the GitHub instructions were crazy advanced (to me).
Thank you very much for the examples of zoned cleanup. I have used a lot of @Abeksis code and it works great, but the only problem is to get the zoned cleanup to work with the “amount of times” using the template, when a room has 2 zones. Im not a coder, so I have a problem understanding how to setup the brackets correctly. Let me explain…
If I use:
entity_id: vacuum.xiaomi_vacuum
command: app_zoned_clean
params: [[26704,26073,30004,27323,2],[26171,27262,28271,31762,2]] #Hall
then the Xiaomi vacuum is cleaning the 2 zones 2 times and everything is fine.
But when I add the template code to manually change amount of times to run each zone with the code below:
entity_id: vacuum.xiaomi_vacuum
command: app_zoned_clean
params: ‘{{ (“[[26704,26073,30004,27323” + “,” + (states(“input_number.vacuum_passes”) | int | string + “]”) + “,[26171,27262,28271,31762” + “,” + (states(“input_number.vacuum_passes”) | int | string + “]]”) )}}’
Then the vacuum is cleaning completely wrong areas. Seems like Im doing something wrong with the template code and it’s brackets.
Any help would be highly appreciated!
Thank you
The latest update of HA, 0.89, added a different way to call zone cleaning. It’s its own service now, as well as a COMMAND option. The new service allows you to template repeats.
Thank you! Im still on 87 but I downloaded the .py file mentioned in this thread, used xiaomi_clean_zone instead of app_zoned_clean and now it works great with multiple zones and custom amount of repeats.
To everyone who have problem with zone cleaning and their vacuums stops after couple seconds and goes back to dock:
I’ve solved my problem by swapping the coordinates of points A and B:
I had:
sequence:
- service: vacuum.xiaomi_clean_zone
data:
entity_id: vacuum.xiaomi_vacuum_cleaner
zone: [[xA,yA,xB,yB]]
repeats: 2
but correct version was:
sequence:
- service: vacuum.xiaomi_clean_zone
data:
entity_id: vacuum.xiaomi_vacuum_cleaner
zone: [[xB,yB,xA,yA]]
repeats: 2
I hope it helps You
I’ve already been trap with that.
As a reminder it works when the two figures on the left are lower than the two on the right.
Hello all.
I have a S5 Gen2 with valetudo 0.3.1 and firmware 001782.
My issue is I have no way to send the cleaner into the room from Home Assistant 0.94.3, it’s always going to another room while on Valetudo same coordinates send the cleaner correctly.
I’m using vacuum.xiaomi_clean_zone with the right cleaner selected and this
{
"entity_id": "vacuum.xiaomi_vacuum_cleaner",
"zone": [[29052, 26362, 30382, 27231]],
"repeats": 1
}
Anyone faced a similar issue?
Thanks
Sergi
Ciao Marco, possibile che flolevac non riesca a leggere la mappa del mio S6 ? esiste un metodo alternativo per ricavare le coordinate delle zone ? grazie in anticipo per il tuo aiuto
I have the exact same problem:( Does anybody solve this?
Edit:
When i take a look at my valetudo map after i sent the comment to clean the zone with the parameters I see the zone appearing on the wrong place of the map.
In the attached image the green zone is the zone the robot wants to clean. the red zone is the zone I send the parameters for. They seem equal but the green on is a little bit of. I’m using valetudo 0.4 with my roborock S50. Can you take a look at this @marcogazzola ?
Hi. I fixed it updating valetudo to 0.4 and then creating and saving the zones into valetudo. Then you can send the robot using clean zone but using the zone name instead of the coordinates.
Hi, did you have a code sample for me?
Something like this didnt work for me:
'vacuum_ash_kitchen':
alias: vacuum_kitchen
sequence:
- service: vacuum.xiaomi_clean_zone
data:
entity_id: vacuum.xiaomi_vacuum_cleaner
zone: Kitchen
repeats: 1
Sorry. Out of home but from memory I didn’t use the xiaomi order but the vacuum.send_command and then the command is zone cleaning. I’ll get back when I can check at home (mid week) with an example if no one has answered you before.
Hi.
See the example below:
limpia_demo:
alias: "Limpia Demo"
sequence:
- service: vacuum.send_command
data:
command: 'zoned_cleanup'
entity_id: 'vacuum.rockrobo'
params:
'zone_ids': ['Demo']
After I tried this my map in valetudo get deleted:D I will give it a try when I’ve rebuilded the Map.
Okay I’ve tested it again but nothing happend. When I try to call it via JSON like:
{
"entity_id": "vacuum.xiaomi_vacuum_cleaner",
"command": "zoned_cleanup",
"params": {"'zone_ids'": "['Kitchen']"}
with vaccum.send_command didn’t happend anything too.
What Kind of Rockrobo you have? I’m using a S50 with Valetudo 0.4
Me too. Did you connect through Mqtt? What are the mqtt logs?
I miss from your code the sequence statement part. Can you double check it?
In my script.yaml I’m using the following code:
vacuum_ash_kitchen:
alias: "Cleaning the kitchen"
sequence:
- service: vacuum.send_command
data:
entity_id: 'vacuum.xiaomi_vacuum_cleaner'
command: 'zoned_cleanup'
params:
'zone_ids': ["Kitchen"]
Im using the xiaomi vacuum component to talk to my bot. Are you using mqtt?
Yes I’m using mqtt. It doesn’t work with xiaomi component.
You are right. When using MQTT everything works. Thank for your help.