Vacuum Interactive Map Card

Labels: Xiaomi Vacuum Interactive Map Card - #927 by 3_14

Icons: Xiaomi Vacuum Interactive Map Card - #977 by AndreasEge

Im getting some error for missing configuration? This is happening after migrating from camera_map. I have tried to restart but the error seems to remain and I cannot get my head around why… any help?2022-01-08_23-06-15

You probably have a caching problem

I am all new to HA, but what i have managed to do so far is this:

  • I have installed HACS
  • I have installed the Xiaomi Cloud Map Extractor (type: picture-entity
    entity: camera.xiaomi_cloud_map_extractor) and show it as a card on my overview-page
  • I have installed the frontend Lovelace Xiaomi Vacuum Map card (version 2.09).

In Developer tool i have these settings for camera.xiaomi_cloud_map_extractor:

access_token: REDACTED
calibration_points: 
- vacuum:
    x: 25500
    'y': 25500
  map:
    x: 405
    'y': 290
- vacuum:
    x: 26500
    'y': 25500
  map:
    x: 425
    'y': 290
- vacuum:
    x: 25500
    'y': 26500
  map:
    x: 405
    'y': 270

model: roborock.vacuum.a15
used_api: xiaomi
entity_picture: /api/camera_proxy/camera.xiaomi_cloud_map_extractor?token=REDACTED
friendly_name: Xiaomi Cloud Map Extractor
supported_features: 1

Now i am totally lost, i have read through the thread, but i am still missing something here. I would like to add a card with the interactive map on it so i can control the vacuum.

Would anyone be so kind and tell me step-by-step what i need to do here?

I have been looking at the lovelace-xiaomi-vacuum-map-card/demo_config.yaml at 0b6aa16d13ac483a5a2b21ba5442b5da4ddc813e ¡ PiotrMachowski/lovelace-xiaomi-vacuum-map-card ¡ GitHub

But this makes me just even more confused, over 400 lines of config, where do i get all these numbers? Is there some kind of basic card i can get up?

In my Mi Home app i have:
Full:

Room:
1 Master bedroom
2 Kids bedroom
3 Hallway 2
4 Hallway
5 Dining room
6 Living Room
7 Kitchen

Zone:

Can someone guide me what i need to do in order to get everything up and running? Should i have some configuration somewhere i must edit, or add something to configuration.yaml, what should code for the card look like. When i try to add the card from the suggested card selector, the interactive map is not there, from what i understand its not there due to that it does not have its own editor(?).

(Thanks alot @3_14 for the work you have done, i hope i can get all this up and running, so the WAF will sky-jump :smiley: )

Have you installed the card? If so it should be available in UI editor.

demo_config.yaml contains config for multiple floors, main config ends with additional_prrsets line.

Ok thanks, I saw earlier in the thread someone had the same issue but I don’t understand how to clear the cache. Can you clarify where I find this cache? I just assumed you don’t mean web browser cache because I already tried that.

Try accessing HA in incognito mode, if everything works then it’s browser’s cache problem.

Thanks I tried your suggestion but the problem seems to persist. I have checked the code over and over again but I must have messed up somewhere. Map is clearly being captured on the entity, it is just not being presented on the card…

Thanks!

Is there any option to show in Tiles menu for selecting something?

You can try to reinstall the card. Do you use HACS?

I’m not sure what you mean… Could you please provide some more details?


I’d like to add something like that

…EDIT…
Sorry, I need to - my robot - Viomi S9/V18 is badly supported with every integration etc.

I found the issue finally… it was me being clumsy… I was pulling the file both locally and from HACS… the local file was overriding HACS somehow. Just removed the line and also the local folder so there is no problem :slight_smile: Thanks

Right now you can set click/hold/double click actions for every tile. It should be possible to make it open a pop-up with list to select something

Is it also possible to clean a zone by it’s label? I want to have a physical button that shall trigger the cleaning of that zone, but I want to avoid to copy&paste the coordinates from the map.

sure, you can do it using vacuum_clean_segment: pass room number as id, outline is not mandatory, you can add just an icon

So next thing, because coordinate system in Viomi S9 is different then Yours. Can I somehow hide all option showed in:

Map modes options?

I would like to use Your card, because quality of map is better then in map pasted to e.g. Picture element.

Do you mean 25500-based coordinates vs 0-based ones? They change when you change vacuum_platform.
If you really want to hide this section you can use following config
image

map_modes:
  - template: vacuum_clean_point_predefined
    run_immediately: true
1 Like

I assume you mean “Add Card” the blue button in bottom right corner of HA’s Overview page, if yes, then yes. I tried, but it appears strangely.

To my understanding it should just be to install and configure the map extractor with my secret token. Then after that add the frontend for the card.

Lastly add the card. And the yaml-file is only if i want to do additional customization.

Based on my screenshots above, any suggestions?

Do you have a vacuum itself added to HA?