Xiaomi Roborock zone cleanup cannot reach all areas and returns

I’ve been able to get HA to send zone cleanup commands to my Roborock s5 succesfully. The zone shows up in the app, the robot begins to clean. However, it never actually is able to start cleaning, and it returns to the dock saying it has completed but wasn’t able to reach all areas (this typically occurs after 5 or 10 minutes of driving around). It doesn’t matter how simple I make the zone, the same thing happens.

On the other hand, if I draw a large zone with unreachable areas in the app it seems to clean just fine. Any ideas? An example dev command I’ve been sending is below. Thanks!

{
  "command": "app_zoned_clean",
  "entity_id": "vacuum.xiaomi_vacuum_cleaner",
  "params": [
    [
      17000,
      31000,
      18500,
      28000,
      1
    ]
  ]
}

I had the same problem as many other people here.

the problem is with your cords

cords are x1,y1,x2,y2

you have to make sure x1<x2 and y1<y2

if, like in your case y1 > y2 you will still see the correct rect on the map but the vacum will just go there and finish immediately without cleaning.

bad: 17000, 31000, 18500, 28000

should be: 17000, 28000, 18500, 31000,

Looks like that’s working with one small attempt. Will need to try with a real example to confirm further. thanks!

Recreated multiple zones for my kitchen and it’s working. Thanks again! This one really bugged me :slight_smile: