Vacuum Interactive Map Card

Thanks, i had to add “action: call-service” also.

  tiles:
    - entity: vacuum.roborock_s7_maxv
      label: Return to Dock
      icon: mdi:home
      tap_action:
        action: call-service
        service: vacuum.return_to_base
        service_data:
          entity_id: vacuum.roborock_s7_maxv

That’s true, I forgot about it

Hi. Thank you for your work.
How can I change the default map size?

When I open the page like this:

I want to increase the size of the map when opening the page

You have to add map trimming in config of Map Extractor:

map_transformation:
  scale: 2
  trim:
    left: 35
    right: 40
    top: 35
    bottom: 30

Anyone know how can I calibrate and use a specific image instead of using the default one provide by the card?

Is it possible to define the rooms and select using a specific image?

How should I calibrate it?

Thanks

Do you have Map Extractor configured?

On my computer the entire card shows, and I can pause and start, see filter hours left, change fans speeds etc, on my tablet I only see Zone cleanup…

This entire portion is not showing on my tablet,
Screenshot 2023-03-05 121118

Any suggestions?

Which tablet do you have?

Its a galaxy Tab A7 – 10.4"

Can you show your config?

You mean this?

type: custom:xiaomi-vacuum-map-card
map_source:
  camera: camera.xiaomi_cloud_map_extractor
calibration_source:
  camera: true
entity: vacuum.roborock_vacuum_a27
vacuum_platform: default
two_finger_pan: false
tiles:
  - tile_id: status
    entity: vacuum.roborock_vacuum_a27
    label: Status
    attribute: status
    icon: mdi:robot-vacuum
    translations:
      starting: Starting
      charger disconnected: Charger disconnected
      idle: Idle
      remote control active: Remote control active
      cleaning: Cleaning
      returning home: Returning home
      manual mode: Manual mode
      charging: Charging
      charging problem: Charging problem
      paused: Paused
      spot cleaning: Spot cleaning
      error: Error
      shutting down: Shutting down
      updating: Updating
      docking: Docking
      going to target: Going to target
      zoned cleaning: Zoned cleaning
      segment cleaning: Segment cleaning
      emptying the bin: Emptying the bin
      charging complete: Charging complete
      device offline: Device offline
  - tile_id: battery_level
    entity: vacuum.roborock_vacuum_a27
    label: Battery
    attribute: battery_level
    icon: mdi:battery-charging-60
    unit: '%'
  - tile_id: fan_speed
    entity: vacuum.roborock_vacuum_a27
    label: Fan speed
    attribute: fan_speed
    icon: mdi:fan
    translations:
      silent: Silent
      standard: Standard
      medium: Medium
      turbo: Turbo
      auto: Auto
      gentle: Gentle
  - tile_id: sensor_dirty_left
    label: Sensors left
    unit: h
    multiplier: 0.0002777777777777778
    hold_action:
      action: call-service
      service: vacuum.send_command
      confirmation: true
      service_data:
        command: reset_consumable
        params: sensor_dirty_time
        entity_id: vacuum.roborock_vacuum_a27
    entity: sensor.roborock_vacuum_a27_sensor_dirty_left
    icon: mdi:eye-outline
    precision: 0
    translations: {}
  - tile_id: filter_left
    label: Filter left
    unit: h
    multiplier: 0.0002777777777777778
    hold_action:
      action: call-service
      service: vacuum.send_command
      confirmation: true
      service_data:
        command: reset_consumable
        params: filter_work_time
        entity_id: vacuum.roborock_vacuum_a27
    entity: sensor.roborock_vacuum_a27_filter_left
    icon: mdi:air-filter
    precision: 0
    translations: {}
  - tile_id: main_brush_left
    label: Main brush left
    unit: h
    multiplier: 0.0002777777777777778
    hold_action:
      action: call-service
      service: vacuum.send_command
      confirmation: true
      service_data:
        command: reset_consumable
        params: main_brush_work_time
        entity_id: vacuum.roborock_vacuum_a27
    entity: sensor.roborock_vacuum_a27_main_brush_left
    icon: mdi:brush
    precision: 0
    translations: {}
  - tile_id: side_brush_left
    label: Side brush left
    unit: h
    multiplier: 0.0002777777777777778
    hold_action:
      action: call-service
      service: vacuum.send_command
      confirmation: true
      service_data:
        command: reset_consumable
        params: side_brush_work_time
        entity_id: vacuum.roborock_vacuum_a27
    entity: sensor.roborock_vacuum_a27_side_brush_left
    icon: mdi:brush
    precision: 0
    translations: {}
icons:
  - icon: mdi:play
    conditions:
      - entity: vacuum.roborock_vacuum_a27
        value_not: cleaning
      - entity: vacuum.roborock_vacuum_a27
        value_not: error
      - entity: vacuum.roborock_vacuum_a27
        value_not: returning
    tooltip: Start
    tap_action:
      action: call-service
      service: vacuum.start
      service_data:
        entity_id: vacuum.roborock_vacuum_a27
  - icon: mdi:pause
    conditions:
      - entity: vacuum.roborock_vacuum_a27
        value_not: docked
      - entity: vacuum.roborock_vacuum_a27
        value_not: idle
      - entity: vacuum.roborock_vacuum_a27
        value_not: error
      - entity: vacuum.roborock_vacuum_a27
        value_not: paused
    tooltip: Pause
    tap_action:
      action: call-service
      service: vacuum.pause
      service_data:
        entity_id: vacuum.roborock_vacuum_a27
  - icon: mdi:stop
    conditions:
      - entity: vacuum.roborock_vacuum_a27
        value_not: docked
      - entity: vacuum.roborock_vacuum_a27
        value_not: idle
      - entity: vacuum.roborock_vacuum_a27
        value_not: error
      - entity: vacuum.roborock_vacuum_a27
        value_not: paused
    tooltip: Stop
    tap_action:
      action: call-service
      service: vacuum.stop
      service_data:
        entity_id: vacuum.roborock_vacuum_a27
  - icon: mdi:home-map-marker
    conditions:
      - entity: vacuum.roborock_vacuum_a27
        value_not: docked
      - entity: vacuum.roborock_vacuum_a27
        value_not: returning
    tooltip: Return to base
    tap_action:
      action: call-service
      service: vacuum.return_to_base
      service_data:
        entity_id: vacuum.roborock_vacuum_a27
  - icon: mdi:target-variant
    conditions:
      - entity: vacuum.roborock_vacuum_a27
        value_not: docked
      - entity: vacuum.roborock_vacuum_a27
        value_not: error
      - entity: vacuum.roborock_vacuum_a27
        value_not: cleaning
      - entity: vacuum.roborock_vacuum_a27
        value_not: returning
    tooltip: Clean spot
    tap_action:
      action: call-service
      service: vacuum.clean_spot
      service_data:
        entity_id: vacuum.roborock_vacuum_a27
  - icon: mdi:map-marker
    tooltip: Locate
    tap_action:
      action: call-service
      service: vacuum.locate
      service_data:
        entity_id: vacuum.roborock_vacuum_a27
  - icon: mdi:fan-remove
    conditions:
      - entity: vacuum.roborock_vacuum_a27
        attribute: fan_speed
        value: Silent
    tooltip: Change fan speed
    tap_action:
      action: call-service
      service: vacuum.set_fan_speed
      service_data:
        entity_id: vacuum.roborock_vacuum_a27
        fan_speed: Standard
  - icon: mdi:fan-speed-1
    conditions:
      - entity: vacuum.roborock_vacuum_a27
        attribute: fan_speed
        value: Standard
    tooltip: Change fan speed
    tap_action:
      action: call-service
      service: vacuum.set_fan_speed
      service_data:
        entity_id: vacuum.roborock_vacuum_a27
        fan_speed: Medium
  - icon: mdi:fan-speed-2
    conditions:
      - entity: vacuum.roborock_vacuum_a27
        attribute: fan_speed
        value: Medium
    tooltip: Change fan speed
    tap_action:
      action: call-service
      service: vacuum.set_fan_speed
      service_data:
        entity_id: vacuum.roborock_vacuum_a27
        fan_speed: Turbo
  - icon: mdi:fan-speed-3
    conditions:
      - entity: vacuum.roborock_vacuum_a27
        attribute: fan_speed
        value: Turbo
    tooltip: Change fan speed
    tap_action:
      action: call-service
      service: vacuum.set_fan_speed
      service_data:
        entity_id: vacuum.roborock_vacuum_a27
        fan_speed: Max
  - icon: mdi:fan-alert
    conditions:
      - entity: vacuum.roborock_vacuum_a27
        attribute: fan_speed
        value: Max
    tooltip: Change fan speed
    tap_action:
      action: call-service
      service: vacuum.set_fan_speed
      service_data:
        entity_id: vacuum.roborock_vacuum_a27
        fan_speed: Silent
  - icon: mdi:fan-alert
    conditions:
      - entity: vacuum.roborock_vacuum_a27
        attribute: fan_speed
        value_not: Silent
      - entity: vacuum.roborock_vacuum_a27
        attribute: fan_speed
        value_not: Standard
      - entity: vacuum.roborock_vacuum_a27
        attribute: fan_speed
        value_not: Medium
      - entity: vacuum.roborock_vacuum_a27
        attribute: fan_speed
        value_not: Turbo
      - entity: vacuum.roborock_vacuum_a27
        attribute: fan_speed
        value_not: Max
    tooltip: Change fan speed
    tap_action:
      action: call-service
      service: vacuum.set_fan_speed
      service_data:
        entity_id: vacuum.roborock_vacuum_a27
        fan_speed: Silent
map_modes:
  - name: Zone cleanup
    icon: mdi:select-drag
    run_immediately: false
    coordinates_rounding: true
    selection_type: MANUAL_RECTANGLE
    max_selections: 5
    repeats_type: EXTERNAL
    max_repeats: 3
    service_call_schema:
      service: xiaomi_miio.vacuum_clean_zone
      service_data:
        zone: '[[selection]]'
        repeats: '[[repeats]]'
        entity_id: '[[entity_id]]'
    predefined_selections: []
    variables: {}
  - name: Pin & Go
    icon: mdi:map-marker-plus
    run_immediately: false
    coordinates_rounding: true
    selection_type: MANUAL_POINT
    max_selections: 999
    repeats_type: NONE
    max_repeats: 1
    service_call_schema:
      service: xiaomi_miio.vacuum_goto
      service_data:
        x_coord: '[[point_x]]'
        y_coord: '[[point_y]]'
        entity_id: '[[entity_id]]'
    predefined_selections: []
    variables: {}

No, config of the card

Check my post now, hope thats good

I see that you have unnecessarily clicked “generate static config” button, use this config instead:

type: custom:xiaomi-vacuum-map-card
map_source:
  camera: camera.xiaomi_cloud_map_extractor
calibration_source:
  camera: true
entity: vacuum.roborock_vacuum_a27

No differance. Everthing still the same. On see everything and works great, on tablet I only see limited stuff.

Im using browser Samsung Internet

Have you tried using Chrome?

Seems to work with Chrome. Very Strange.

How Do I change the Colors on the Map and Create rooms? All my rooms which are in the App are gone.

Yes, I have but I would like to use my own map instead.

I like resolved creating a new dashboard, I only need now to study to improve the actions to be able to send the robot to clean two spot at the same time, thanks for the reply.

1 Like