Xiaomi Vacuum with Valetudo RE: How to MAP, Zoned Cleaning and Notifications with Home Assistant?

This is for 3 selected zones; just select the order in which you would like the rooms cleaned. You could also add more zones by adding to the code.

So here it cleans the Bathroom 1st which is 2 segments (lower left), Meals 2nd (middle) and the Entry 3rd (top right), the Bot then returns for charging after completion. Just an example to play with.

type: button
tap_action:
  action: call-service
  service: mqtt.publish
  service_data:
    topic: valetudo/rockrobo/custom_command
    payload: >-
      { "command": "zoned_cleanup", "zone_ids": [    "Bathroom",    {        
      "id": "bathroom",         "repeats": 1    },    "Meals2",    {        
      "id": "meals2",         "repeats": 1    },    "Entry",    {         "id":
      "entry",         "repeats": 1    } ], "afterCleaning": "Base" }
  target: {}
show_state: true
icon: mdi:bullseye-arrow
name: Clean 3 Selected Zones

Hope it helps you :crossed_fingers:

1 Like