Hi ciB,
I love your work, it is great! I have added all of my rooms in and can now control it via Google Home, thanks!
Just thought I would share my way of getting the coordinates. There still is some trial and error but it is much quicker to make the change and see the result on the map instantly.
First I estimate how many metres away one corner of the zone is in both the x and y directions and multiply that by 1000. I add/subtract that from the 25500/25500 starting value.
Do that again for the opposite corner of the zone.
eg. the top left of a 3x3m zone, located 5 metres to the left (x), and 8 metres forward (y) would make it 20500,33500,17500,30500
Next I open up the mi home app and open up the vacuum so I can see the map.
I then bring up the Service Calls section in HA and use those values with the app_zoned_clean command.
{
"entity_id": "vacuum.SuckBot2K",
"command": "app_zoned_clean",
"params": [[20500,33500,17500,30500,1]]
}
Now look at the mi home app and you can see the estimated path and also the zone overlayed onto the house map. Pause the vacuum and see what figures need adjusting (location/size).
Cancel the vacuum through mi app, then try the new adjusted figures in Service Calls.
Sorry if this is doesn’t make sense, I have had a few late nights playing around with all the awesome things HA can do!
ps. I have the Roborock v2 and am attached to the chinese server if that makes a difference anywhere.
Cheers!