Vacuum Interactive Map Card

@Dorzel107 according to my quick experiment card should be able to work with following configuration:

        base_position:
          x: 1889
          'y': 1600
        reference_point:
          x: 1625
          'y': 1336

@Martinvdm I have seen that you have created an issue on github. Could you try to fix your config and confirm if everything is working?

The problem with zoned cleanup is that zones you have defined have 5 parameters instead of 4 (additional 1 ).

I didnā€™t know where you prefer the issue. I will continue on github. Thanks

@3_14 you are absolutly right, this was my mistake, by misconfiguring the base and reference point.
so my first thought was, that the linting wasnā€™t right.
i got it right now, so thanks for making such nice integration.

In yaml this is not possible, because the component does not include the zone template.
However it is possible with .js (example: your card) or python script

ps: sorry for the bad code :0)

Is it possible to implement in Node-RED?

I donā€™t use nodeRed, but if in node red you can run a python_script.xxxx service why not

Unfortunately Iā€™m not an expert at all but I guess the js code maybe works.

Need an advise. I installed this card and it worked well.
After a while I tried to translate titles to Russian and it didnā€™t work.
Script works with English titles even after I translated all text in texts.js.
It looks like I need to clean some js cash or something. But I donā€™t know where to search for it.
Could you help, please?

Yes, you have to clear browser cache for whole HA page or add ?v=1 to url in resources.
Guide for clearing cache: https://www.refreshyourcache.com

Can anyone offer advice on how to define the preconfigured zones? Is it [x1, y1, x2, y2], where point 1 is the top left corner of a zone and point 2 is the bottom right? And are the numbers still corresponding to the pixels in the image, or something else?

Preconfigured zones use the same coordinate system as a vacuum. The easiest way to get values for them is to use FloleVac App for Android. Instructions are available here: https://www.home-assistant.io/components/vacuum.xiaomi_miio/#retrieving-the-zone-coordinates

I have used FloleVac in the passed to get the coordinates but it doesnā€™t seem to work anymore. Anyone else trouble connecting?

Noā€¦ butā€¦
Also on the mihome app? try turning off the robot and turning it back on

Mihome works fine; itā€™s just FloleVac that cannot connect anymore. Rebooten robot but same result.

My app works just fineā€¦

I have never been able to connect flovac to my botā€¦ tried most of every method starting with bluestacks, then android phone. I do however think this may be a network issue, but unfortunately I donā€™t know too much, just that they all on the same ip and subnet range. I run unifi and a number of apā€™s. It could also do with possibly the location of the server you select on the mihome app as well as flovac. For me, i select Jersey for server option in mihome, but in flovac, there is only eu. Again, i dont know if this is it. Just that i canā€™t connect, but all that I can think of is what I have mentioned aboveā€¦

Does any one find a way to update mapļ¼ŸLike Mi app.

To get map from vacuum it have to be rooted. I havenā€™t rooted mine yet, so I havenā€™t added this feature to my card so far.

It seems you have figure out the secret:).
like about 1.5m between 25500 and 26500. Is possible to generate live map by ourself? just curious about the theory.
Againļ¼ŒAppreciate it. :+1:

This can be done with Valetudo and other methods, but it does, as 3_14 states, require a rooted vacuum.

One of the more interesting methods is this one, since it doesnā€™t require anything else than SSH on your vacuum. Iā€™d love to have that in some combination with this card.