Howto: Xiaomi vacuum zoned cleaning

I got the coordinates following this video, especially at this precise time Roborock Vacuum // Zone & Voice Assistant Control in Home Assistant - YouTube
The trick is to use debug: true
It’s very well explained and following this guy’s tutorial I was able to create this card

Its yaml code is :

type: vertical-stack
cards:
  - type: custom:xiaomi-vacuum-map-card
    map_source:
      camera: camera.xiaomi_cloud_map_extractor
    calibration_source:
      camera: true
    entity: vacuum.vacuum
    vacuum_platform: default
  - type: button
    tap_action:
      action: toggle
    entity: script.vacuum_kitchen_with_zone
    show_icon: true
    show_name: true
    name: Vacuum Kitchen
    show_state: true

The button’s script above (script.vacuum_kitchen_with_zone) is :

alias: Vacuum kitchen with zone
sequence:
  - service: xiaomi_miio.vacuum_clean_zone
    target:
      entity_id: vacuum.vacuum
    data:
      zone:
        - - 28625
          - 23989
          - 32288
          - 27123
      repeats: 1
mode: single
icon: mdi:robot-vacuum

Hope this helps !

2 Likes