Vacuum Interactive Map Card

Im using the official one, atleast i think so. It says its provided by a custom integration. But im using this one.

humbertogontijo/homeassistant-roborock: Roborock integration for Home Assistant. This integration uses your devices from the Roborock App (github.com)

So you have to download the latest beta version of the card and use Roborock platform.

I have the latest beta version of the card. But not quite sure what you mean by using the Roborock platform?

In the visual card editor open “vacuum platform” dropdown and select “humbertogontijo/homeassistant-roborock”

I only have these to choose from

So you don’t have the latest beta version :slight_smile: or you have some caching problem. Try reinstalling the card and cleaning the cache

1 Like

Thanks for replying!
Im currently using GitHub - humbertogontijo/homeassistant-roborock: Roborock integration for Home Assistant. This integration uses your devices from the Roborock App together with the Roborock app. I found out that when using the code below it actually returns data (so I am probably just unaware where to find a list of possible Tiles):

      - tile_id: fan_speed
        entity: vacuum.roborock_s7_maxv
        label: Fan speed
        attribute: fan_speed
        icon: mdi:fan

Install the latest beta version and change vacuum platform to Roborock. Tiles will be generated automatically

Thanks! This worked. Is there any way to remove some tiles like “cleaned area” for example?

Also, my current config looks like this:

  - type: custom:xiaomi-vacuum-map-card
    map_source:
      camera: camera.roborock_s7_maxv_map
    calibration_source:
      camera: true
    camera_calibration: true
    icons: []
    tiles: null
    entity: vacuum.roborock_s7_maxv
    vacuum_platform: humbertogontijo/homeassistant-roborock
    map_modes:
      - template: vacuum_clean_segment
        predefined_selections:
          - id: 18
            icon:
              name: mdi:chef-hat
              x: 28567
              'y': 24258
          - id: 20
            icon:
              name: mdi:table-chair
              x: 27250
              'y': 27000
          - id: 16
            icon:
              name: mdi:shoe-print
              x: 22900
              'y': 24000
          - id: 17
            icon:
              name: mdi:sofa
              x: 22700
              'y': 26800

Is there any way I can “zoom-in” on the map and lock it? I have a tablet in my living room and the new roborock integration gives me a sort of zoomed-out view.

Many thanks for your replies! Very much appreciated :slight_smile:

Yes, you can use following config (basically create a condition that will always be false):

append_tiles: true
tiles:
  - tile_id: cleaned_area
    conditions:
      - entity: sun.sun
        state: disabled

Is there any way I can “zoom-in” on the map and lock it? I have a tablet in my living room and the new roborock integration gives me a sort of zoomed-out view.

Yes, but this feature doesn’t work perfectly (documentation):

    map_source:
      camera: camera.roborock_s7_maxv_map
      crop:
        left: 10
        right: 20
        top: 30
        bottom: 40

Hi All,

I was playing around with some things and created a nice pull down (input_select) to let vacuum clean rooms (segments) and per room (segment) I add specific settings what to do. Maybe it’s already add here somewhere in the 1531 posts. But here is mine.

I added the input_select into Homekit also so now can ask Siri: Clean kitchen or Clean livingroom, etc…

input_select:
  helpers_roborock:
    name: "Roborock actions"
    icon: mdi:nintendo-switch
    options:
      - "off"
      - "Clean full"
      - "Clean kitchen"
      - "Clean bedroom"
      - "Clean diningroom"
      - "Clean hallway"
      - "Clean livingroom"
    initial: "off"

Automation behind it:

###########################################################################################
# VACUUM Settings per room
###########################################################################################
- id: "a20ae3e8-53c5-45b4-accf-0f3dec586552"
  alias: "Cleaning - Clean actions"
  mode: restart
  trigger:
    - platform: state
      entity_id: input_select.helpers_roborock
      
  condition: []

  action:
    - choose:
        ###########################################################################################
        # Return to base 
        ###########################################################################################
        - conditions:
            - condition: state
              entity_id: input_select.helpers_roborock
              state: "off"
          sequence:
            - service: vacuum.return_to_base
              target:
                entity_id: vacuum.roborock_s8

        ###########################################################################################
        # Clean full
        ###########################################################################################
        - conditions:
            - condition: state
              entity_id: input_select.helpers_roborock
              state: "Clean full"

          sequence:
            - service: select.select_option
              target:
                entity_id: select.roborock_s8_mop_intensity
              data:
                option: intense

            - service: select.select_option
              target:
                entity_id: select.roborock_s8_mop_mode
              data:
                option: deep

            - service: vacuum.set_fan_speed
              target:
                entity_id: vacuum.roborock_s8
              data:
                fan_speed: max

            - service: vacuum.start
              target:
                entity_id: vacuum.roborock_s8

        ###########################################################################################
        # Clean kitchen
        ###########################################################################################
        - conditions:
            - condition: state
              entity_id: input_select.helpers_roborock
              state: "Clean kitchen"

          sequence:
            - service: select.select_option
              target:
                entity_id: select.roborock_s8_mop_intensity
              data:
                option: intense

            - service: select.select_option
              target:
                entity_id: select.roborock_s8_mop_mode
              data:
                option: deep

            - service: vacuum.set_fan_speed
              target:
                entity_id: vacuum.roborock_s8
              data:
                fan_speed: max

            - service: roborock.vacuum_clean_segment
              target:
                entity_id: vacuum.roborock_s8
              data: 
                segments: 16

        ###########################################################################################
        # Clean hallway
        ###########################################################################################
        - conditions:
            - condition: state
              entity_id: input_select.helpers_roborock
              state: "Clean hallway"

          sequence:
            - service: select.select_option
              target:
                entity_id: select.roborock_s8_mop_intensity
              data:
                option: moderate

            - service: select.select_option
              target:
                entity_id: select.roborock_s8_mop_mode
              data:
                option: standard

            - service: vacuum.set_fan_speed
              target:
                entity_id: vacuum.roborock_s8
              data:
                fan_speed: balanced

            - service: roborock.vacuum_clean_segment
              target:
                entity_id: vacuum.roborock_s8
              data:
                segments: 17

        ###########################################################################################
        # Clean livingroom
        ###########################################################################################
        - conditions:
            - condition: state
              entity_id: input_select.helpers_roborock
              state: "Clean livingroom"

          sequence:
            - service: select.select_option
              target:
                entity_id: select.roborock_s8_mop_intensity
              data:
                option: moderate

            - service: select.select_option
              target:
                entity_id: select.roborock_s8_mop_mode
              data:
                option: standard

            - service: vacuum.set_fan_speed
              target:
                entity_id: vacuum.roborock_s8
              data:
                fan_speed: balanced

            - service: roborock.vacuum_clean_segment
              target:
                entity_id: vacuum.roborock_s8
              data:
                segments: 19

        ###########################################################################################
        # Clean diningroom
        ###########################################################################################
        - conditions:
            - condition: state
              entity_id: input_select.helpers_roborock
              state: "Clean diningroom"

          sequence:
            - service: select.select_option
              target:
                entity_id: select.roborock_s8_mop_intensity
              data:
                option: moderate

            - service: select.select_option
              target:
                entity_id: select.roborock_s8_mop_mode
              data:
                option: standard

            - service: vacuum.set_fan_speed
              target:
                entity_id: vacuum.roborock_s8
              data:
                fan_speed: balanced

            - service: roborock.vacuum_clean_segment
              target:
                entity_id: vacuum.roborock_s8
              data:
                segments: 20

        ###########################################################################################
        # Clean bedroom
        ###########################################################################################
        - conditions:
            - condition: state
              entity_id: input_select.helpers_roborock
              state: "Clean bedroom"

          sequence:
            - service: select.select_option
              target:
                entity_id: select.roborock_s8_mop_intensity
              data:
                option: moderate

            - service: select.select_option
              target:
                entity_id: select.roborock_s8_mop_mode
              data:
                option: standard

            - service: vacuum.set_fan_speed
              target:
                entity_id: vacuum.roborock_s8
              data:
                fan_speed: balanced

            - service: roborock.vacuum_clean_segment
              target:
                entity_id: vacuum.roborock_s8
              data:
                segments: 21

      default: []
3 Likes

A new version of a card has just been released:

New platforms, generating icons, improved interface

It contains a lot of changes, including new 5 supported platforms:

  • DeebotUniverse/Deebot-4-Home-Assistant
  • Tasshack/dreame-vacuum
  • romedtino/simple-wyze-vac
  • humbertogontijo/homeassistant-roborock
  • BenjaminPaap/home-assistant-myneato

6 Likes

Hi,
How can I get the status, battery, fan speed etc removed ?
and how do I get rid of the zone cleanup (map mode options)

tiles: []
map_modes: []
1 Like
- type: custom:xiaomi-vacuum-map-card
            preset_name: Live map
            entity: vacuum.roborock_s6_maxv
            map_source:
              camera: camera.roborock_s6_maxv_map
              crop:
                left: 1
                right: 1
                top: 30
                bottom: 40

            calibration_source:
              camera: true                
            map_locked: true
            tiles: []
            map_modes: []  
            map_transformation:
              scale: 2
              trim:
                left: 2
                right: 2
                top: 2
                bottom: 2
            colors:
              color_map_outside: [29, 29, 29]    
            card_mod:
              style: |            
                #map-zoomer-overlay > div:nth-child(1) {
                  display: none;
                }
  1. How do I get the map a little bigger ?
  2. Is it possible to make the buttons custom ? Or can I make them like my theme ?
  3. tried to make the background the same as my other cards, but it’s not ok. Whats wrong ?

I assume you use the custom Roborock integration.

  1. You can do it by increasing these values in your config:
    map_source:
      camera: camera.roborock_s6_maxv_map
      crop:
        left: 1
        right: 1
        top: 30
        bottom: 40
    
    You can also remove whole map_transformation, it is a part of configuration of Map Extractor
  2. Yes, everything is possible, here you have a description how to change colors
  3. There are 2 map backgrounds in this card: the first one is a part of map image, it has to be changed by the integration that provides the map camera. The second one is visible when you make map background transparent or when you slide the map away from the view. It can be changed using map-card-zoomer-background (card styling)
1 Like

Ok. Thanks.

Map is bigger and background is ok.

Can you just give me a hint for the buttons ?

You have to be more specific for me to be able to give any specific hint :wink:

I want the buttons in blue changed to he colours above the map…

Lines to add to your theme:

map-card-secondary-color: "#ff0000"        # icons background color
map-card-secondary-text-color: "#0000ff"   # color of icons
map-card-primary-color: "#00ff00"          # selected icon background color (in fan modes menu)
map-card-primary-text-color: "#ffff00"     # selected icon color
1 Like