Vacuum Interactive Map Card

It is linked in the card editor :wink: but who reads that :laughing:

1 Like

Evidently not me :frowning:

@3_14 Hey, sorry bumping my ā€œcaseā€ if I can call it that :smiley:

Your problem is that card doesn’t detect that it is inside the editor. I don’t know why this happens, I wasn’t able to reproduce this issue. You can try to create a new empty view in mansory layout and add map card there. If this doesn’t work you can do it again with sections layout.

Just checking, this card still doesn’t support Roborock Core?

Thanks for making this, its great! I am trying to customize the card for my goals. When i try to add a tile, the whole tile menu disappears and gets replaced by the one tile i added. How can i delete a single tile and add to the rest? Does anyone know?
EDIT: Figured that one out.

also, is there a way to replace the icons on the vacuum menu? all icons are the same.
image

Thanks!

1 Like

I don’t speak much English. Can you please help? Can the 1st gen vacuum cleaner be set up like this?

Yes, using Map Extractor. It has some problems though, so it might not work perfectly

Anyone here have an S8 MaxV Ultra ( roborock.vacuum.a97 ) and manage to get it to work with this?

It seems like it can only be used via the Roborock app even though other S8 models show in Mi Home…trying to figure out what options are available to this level of integration into HA like I had with my S4.

Hi, how did u get this transparant/black background of the vacuum map? Mine is blue on default!

Good morning, I’ve just started trying to use this card with a Wyze vacuum using the romedtino/simple-wyze-vac integration. The documentation for implementing the card with this integration states ā€œUses IDs to clean specific rooms. Requires predefined_selections to be providedā€ and then provides two links.

I can’t use either one because ā€œGENERATE ROOMS CONFIGā€ is greyed out, even after adding a ā€œroomsā€ attribute in the config. The other link to the setup platforms fails because whether I select Setup Integer or Setup Decimal, I get the same error message: Invalid calibration, please check your configuration.

Just for kicks I pasted in the sample configuration on the Simple Waze Vacuum page, and it resulted in the icons displaying on top of each other in the upper left of the map.

I haven’t made any other changes because getting rooms to work is the first priority before I can use the card. My configuration is very basic at this point:

type: custom:xiaomi-vacuum-map-card
title: PH
entity: vacuum.ph
vacuum_platform: romedtino/simple-wyze-vac
map_source:
  camera: camera.ph_camera

I’ve also tried:

type: custom:xiaomi-vacuum-map-card
title: PH
entity: vacuum.ph
vacuum_platform: romedtino/simple-wyze-vac
map_source:
  camera: camera.ph_camera
    - attributes:
       - rooms

and

type: custom:xiaomi-vacuum-map-card
title: PH
entity: vacuum.ph
vacuum_platform: romedtino/simple-wyze-vac
map_source:
  camera: camera.ph_camera
attributes:
  - rooms

Is the romedtino/simple-wyze-vac supposed to support generating room codes via either of the links on the instruction page? Is there something else I need to do to configure room cleaning with a Wyze vacuum? I’ve searched around and all results point to your card. However, I can’t find a working example with a Wyze vacuum.

Thanks for your hard work on this project!

Hey, I’ve added this to the camera config in configuration.yaml

colors:
  color_map_outside: [0, 0, 0, 100]

Hi!

It is a bit more tricky to setup thus card with integrations that do not provide information required for config automatic generation. The documentation definitely could be improved. Here is a config that should work for you:

type: custom:xiaomi-vacuum-map-card
title: PH
entity: vacuum.ph
vacuum_platform: romedtino/simple-wyze-vac
map_source:
  camera: camera.ph_camera
calibration_source:
  identity: true
map_modes:
  - template: vacuum_clean_segment
    predefined_selections:
      - id: Bedroom
        outline: [[ 214, 321 ], [ 242, 321 ], [ 241, 274 ], [ 231, 274 ]]
        label:
          text: "Bedroom"
          x: 229
          y: 303
          offset_y: 35
        icon:
          name: "mdi:bed"
          x: 229
          y: 303
      - id: Bathroom
        outline: [[ 214, 272 ], [ 230, 272 ], [ 230, 256 ], [ 214, 256 ]]
        label:
          text: "Bathroom"
          x: 222
          y: 264
          offset_y: 35
        icon:
          name: "mdi:shower"
          x: 222
          y: 264

IDs are values that work for this service call.

To figure out coordinates used for outline:

  1. Create a second card with a following config:
    type: custom:xiaomi-vacuum-map-card
    title: PH
    entity: vacuum.ph
    vacuum_platform: Setup integer
    map_source:
      camera: camera.ph_camera
    calibration_source:
      identity: true
    
  2. Follow these steps with mode Path

That did the trick, thank you! I think your card now provides as much or more functionality than the Wyze app!

1 Like

You’re welcome :wink:

Hello,
Very nice card It looks very useful and very handy in terms of using zones, although a bit difficult to configure in my case, after a week trying to get it sorted :smiling_face_with_tear:

I got the roborock s5 from xiaomi, the map extractor is configured successfully and get the live map, in the configuration I’ve added calibration and rooms, although I’m not getting rooms, It might be that is not supported by the S5, right? Also I’ve seen other people have the live map with each room a different colour.

A problem that I don’t know how to solve is that every time a new clean starts the live map restarts from zero, then I don’t know how to setup properly the zones/rooms.
I thought instead using a static image, but it doesn’t show where the robot is when it’s cleaning.

I got the coordinates from the camera extractor after a full clean, so I guess I got already the boundaries.

Do you know any tutorial to follow or where do you recommend to start?, the documentation on github is great but I couldn’t manage to setup a card with rooms which is my objective.

Thanks

S5 supports room cleaning after it is updated to the newer version of a firmware (in Xiaomi Home app).

To make maps persistent you have to enable ā€œMap saved modeā€ in the vacuum settings (also in Xiaomi Home app). Without this enabled any saved coordinates will be useless after next cleaning.

1 Like

I’ve activated the ā€œMap saved modeā€ in the Xiaomi app, I haven’t seen that option for the card on the github. I hope that works.
As per the Firmware the xiomi app says I have the latest firmware in my vaccum 3.5.8_002034 and It doesn’t provide me any other update. In the camera xiaomi extractor I got rooms and rooms numbers as atributes.

Thanks for the recommendation.