Vacuum Interactive Map Card

Thanks for your answers, I opened your links with instructions

Yeah, you have opened it, but not followed them :wink:

Here you have detailed steps that you have to follow:

  1. Open card editor
  2. Change vacuum platform to “Setup integer”
  3. Change map mode to “Outline coordinates”
  4. Repeat for every room:
    1. Mark the outline of the room
    2. Copy the selection
    3. Modify the outline of the room in the yaml
  5. Change map mode back to the one that you had before
  6. Enjoy

I made a lot of dots and circled my room completely. [[-5805, 1270], [-5884, -150], [-5924, -1215], [-7028, -2437], [-6200, -3266], [-6555, -3620], [-6003, -4133], [-5608, -3857], [-4622, -4685], [-4307, -4291], [-4307, -4291], [-3045, -4883], [-3400, -5316], [-1309, -5080], [-678, -6145], [-875, -4528], [-1861, -2437], [-1428, -2161], [-1506, -1885], [-1901, -1767], [-1901, -1609], [-1901, -1609], [-1349, -1767], [-1073, -1727], [-1033, 1231], [-3202, 1270], [-5805, 1309]] but the yaml format doesn’t understand strings, how do I convert them to yaml?

You have to remove everything from the outline (yellow rectangle)

and paste the selection that you have got from the editor. It should look the following way:

outline: [[-5805, 1270], [-5884, -150], [-5924, -1215], [-7028, -2437], [-6200, -3266], [-6555, -3620], [-6003, -4133], [-5608, -3857], [-4622, -4685], [-4307, -4291], [-4307, -4291], [-3045, -4883], [-3400, -5316], [-1309, -5080], [-678, -6145], [-875, -4528], [-1861, -2437], [-1428, -2161], [-1506, -1885], [-1901, -1767], [-1901, -1609], [-1901, -1609], [-1349, -1767], [-1073, -1727], [-1033, 1231], [-3202, 1270], [-5805, 1309]]

I divided my apartment into rooms. But the vacuum cleaner does not travel to the selected area. My vacuum cleaner is Xiaomi Mijia Omni Robot B101CN, added to home assitant via dreame integration. I noticed that he cleans the zones well with the command:
action: dreame_vacuum.vacuum_clean_zone
target:
entity_id:

  • vacuum.mijia_omni_robot_vacuum_mop
    data:
    zone: [[-5897, -1474, -1493, 391]]

You have to use the correct vacuum platform.
image

You should use Tasshack/dreame-vacuum instead

Thanks a lot, I managed to set everything up. A very convenient addition. Many thanks to its author and everyone who helped me with the setup. Greetings from Russia. Pease.

1 Like

I noticed that the lower information fields about the sensor states are very large (even larger than the buttons controlled by the robot), maybe it is possible to make them in the form of mushroom chips? I think it would be more effective. And it may also have some kind of hiding button, when clicked, a menu with the possibility of restart filter would appear. Perhaps in some new versions there will be such features?

My vacuum cleaner didn’t draw the map beautifully, can I draw it myself? but at the same time, what would the white paths from following the vacuum cleaner be preserved?

I noticed that the lower information fields about the sensor states are very large (even larger than the buttons controlled by the robot), maybe it is possible to make them in the form of mushroom chips? I think it would be more effective. And it may also have some kind of hiding button, when clicked, a menu with the possibility of restart filter would appear. Perhaps in some new versions there will be such features?

No, it’s not really possible at this moment.

My vacuum cleaner didn’t draw the map beautifully, can I draw it myself? but at the same time, what would the white paths from following the vacuum cleaner be preserved?

You can provide a map image that can be used instead of the live map, but it won’t be updated when cleaning.

How can this be done? should I specify the path to the image in the map field instead of the camera?

should I specify the path to the image in the map field instead of the camera?

Yes, but you also have to calibrate the image

Thank for this card, I have a popup that opens and shows all the information I wanted and also has the Interactive map card, it turned out great!

1 Like

Nicely done :+1: It would be nice if you could share your code here