2 suggestions here:
- I think that your second point has incorrect
x
coordinate inmap
section - for best results place calibration points on a rectangle corners (e.g. using zoned cleanup). Try to draw as big rectangle as possible.
2 suggestions here:
x
coordinate in map
sectionthanks… I started again and I’m not much further forward… except I have less hair now… Any more pointers please? I have changed the image, I would prefer it rotated as it doesn’t fit on card very well vertically… but I got even more confused then… map attached I am using I know the zone is right as I just tested that.
type: 'custom:xiaomi-vacuum-map-card'
entity: vacuum.renvac
debug: true
map_image: /local/map.png
calibration_points:
- vacuum:
x: 25500
'y': 25500
map:
x: 45
'y': 45
- vacuum:
x: 27800
'y': 22050
map:
x: 290
'y': 404
- vacuum:
x: 30700
'y': 14200
map:
x: 580
'y': 1175
zones:
- - - 24929
- 11442
- 27679
- 15192
The area I am wanting as the zone is “circled”
or can I rotate the map image manually and then erm try to calibrate it, so it is rotated 90 degrees from the actual map on the phone app? ? I think I am making this far more complicated than I need to do… as usual
The easiest way is to rotate the image, but you have to calibrate it again after rotation
thank… I love this if I can get it to be calibrated :S
By following these steps you should achieve the best result:
truly genius thank you… I have even rotated the map and got it to work. Thank you for the detailed reply and thank you for what is a brilliant card… This is just what I have been looking for… now time to clean up the map and label it
I plan to create a video tutorial for calibration procedure, it should help future users
it will be wonderful
I think I’m a bit confused. I’m not really getting how to express the coordinates… :S
I have used the FloleVac app to add a large zone on top of my map:
I get these coordinates:
[[23162,25106,29812,34856,1]]
In another thread I read that the coordinate order is [bottom-left-x, bottom-left-y, top-right-x, top-right-y]. Is this right?
Am I correct in assuming that the top left corner in the picture above have the coordinate X=23162 and Y=34856? The bottom right corner have coordinate X=29812 and Y=25106?
If I place the cursor on the image (in Paint.net) at the same place as the top left corner in the selection I get the coordinates 49,144. Does this mean the map coordinates should be X=49 and Y=144 if I use this specific image for the card?
It seems correct, you can make yourself sure by enabling “go to target” mode in FloleVac, select chosen corner and hold start button.
Exactly, you have to check these coordinates for 2 other points and calibration process is done
Just bit curious about this. When will we get video. It will make thing easy for we new users. Thanks
I am afraid it will take some time, I have a lot of things on my head right now.
For now the easiest way would be to follow instructions in this post:
Thanks @3_14. Configured card as per instructions. It’s working… Amazing work!!!
Looking forward to get more updates on this. Awesome card… Great work…
Hi guys, I am calibrate mt new card to provide exactly 3 pairs of coordinates. for here https://github.com/PiotrMachowski/lovelace-xiaomi-vacuum-map-card I stuck on how I find out what coordinates I put down for the map as I have sent the vacuum to a
{
"entity_id": "vacuum.xiaomi_vacuum",
"command": "app_goto_target",
"params": [25500, 25500]
}
already but lost for the nest step
I am not sure what you mean, are you talking about problem with gen1 vacuum, that it sometimes decides to rotate the map? Workaround for this problem is to use zoned cleanup instead of normal full cleaning.
Yep that what I was talking about. Thanks…
Hi everyone!
I just have published a new version of a card, now supporting live map view from camera! Thanks to that it can fully substitute Xiaomi Home app as a way to control a vacuum.