Vacuum Interactive Map Card

Thanks, I managed to get a more accurate calibration now.

I’ve hit another issue though; I’ve setup automations to clean multiple zones per run and one of my zones contains four areas, highlighted:

When this zone is called, it will clean the corridor and side two rooms but the master bedroom seems to be ignored and the roborock goes straight back to the dock.

Any idea how I would troubleshoot this?

What automations do you mean? Does it work if you draw a single zone inside of the master bedroom?

Yes, a single zone call works fine. It’s only when I call the following script (sorry not automation, but will be eventually once I refine it):

 vacuum_zone_three:
      alias: "Vacuum Zone Three"
      sequence:
        - service: vacuum.send_command
          data:
            entity_id: vacuum.roborock
            command: app_zoned_clean
            params: [[27510,36703,28444,46751,1],[28520,36721,31206,40950,1],[28520,42865,31206,46676,1],[27510,46770,31682,50942,1]]

The last zone defined in params is the master bedroom, which doesn’t complete. The roborock completes the third zone and returns back to base saying zone completed. It basically goes back right after completing the following order; corridor, denzel room then safura room. So it doesn’t approach the master at all.

It’s hard to say why it doesn’t work, maybe there is something in logs? You can try to ask this question in other threads, as this issue is not related to card itself.

I’ve just tested another clean of that same few zones as mentioned above (I flipped the order of the rooms to see if it would make a difference) but I get the same issue both calling the script and calling the card.

Seems there must be some hard limit somewhere…

What is happening after flipping the order? Does the vacuum skip last zone or master bedroom?

It skips the last zone, which was the Corridor area.

That’s really weird, I have heard about limit of 5 zones, not 3.
You can use my workaround for zones limit and replace batch(5) with batch(3):

Script + Python script

I’ve installed the python script, added service: to the card and added the script to my vacuum.yaml but when I call the clean from the card i get the following:

Failed to call service script/vacuum_send_command_multiple_zone. Service not found

Edit: Nevermind! I missed a ‘s’ on the word zone. Testing now!

Hello, Thank you this totally worked!!!

My final card code looks like this:

type: 'custom:xiaomi-vacuum-map-card'
entity: vacuum.xiaomi_vacuum_cleaner
map_image: /local/map.jpeg
debug: false
calibration_points:
  - vacuum:
      x: 28000
      'y': 30000
    map:
      x: 406
      'y': 326
  - vacuum:
      x: 29000
      'y': 30000
    map:
      x: 558
      'y': 359
  - vacuum:
      x: 25500
      'y': 26500
    map:
      x: 564
      'y': 224
zones:
  - - - 28000
      - 29000
      - 30000
      - 31800
  - - - 24500
      - 28000
      - 28300
      - 31800
  - - - 24500
      - 25300
      - 30000
      - 32000

This might sound dumb, but is it possible that by the time it gets to the last zone, is out of battery and it runs to charge itself before continuing?

Unfortunately it’s not that, I’m testing this from 100% battery. It was at 89% after the third zone before returning back to the dock.

Unfortunately this did not work, in fact it only cleaned two of the four zones, master then corridor. Really odd behaviour.

Can you run more than 3 zones in a single clean successfully?

These scripts (if modified correctly - by replacing in all 3 placesbatch(5) with batch(3) ) should split provided list of zones to groups of 3 zones. After each group the vacuum will start to return to a docking station, but script should start new group when HA will “notice” that the previous group has been finished.

What vacuum do you use?

I have successfully used provided script in cleaning even 10 zones…

Yes, I did this as you instructed when I tried the python script.

I use a Roborock S55 running 3.3.9_001886 firmware.

My map doenst load in Flolevac, any way to fix it?
Or go stock firmware the only way?

Hi all,

My map is not appearing and the code is:

`map_image: /local/map.png`

I install this from HACS and the map is in “config\www\community\lovelace-xiaomi-vacuum-map-card” Any idea what i’m doing wrong?

You shouldn’t put additional files in plugins installed by HACS.

If you insist, correct URL is: /local/community/lovelace-xiaomi-vacuum-map-card/map.png

Best solution is to put image in dedicated directory, e.g. www/images/map.png. In this case URL will be: local/images/map.png

it works! thank you

Hi,

I created these zones throughout my house but how can i get them to run in specific order in one click?

zones:
  - - - 21363
      - 16535
      - 27063
      - 22035
  - - - 21794
      - 22065
      - 26994
      - 24765
  - - - 21810
      - 24770
      - 28760
      - 28120
  - - - 28716
      - 20662
      - 30966
      - 25662