-
-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Static map image with live paths #503
Comments
+1 for this request. I use the Floorplan provided by my builder as the static image, and have calibrated it so the rooms and zones are correctly positioned. Perhaps the |
I'm wondering if the vacuum has the current position as an attribute or if can we get the position somehow. |
@Misiu it doesn't. Map Extractor can retrieve it though |
@PiotrMachowski maybe we can set background/wall colors in Map Extractor to transparent and draw this camera over static image? |
I use the valetudo_vacuum_card with card mod to accomplish this. cards:
- entities:
- name: Hygieia
type: weblink
url: http://valetudo-wealthyacademicgrouse.local/
type: entities
show_header_toggle: false
card_mod:
style: |
div {
font-size: 19px
}
- type: custom:xiaomi-vacuum-map-card
map_source:
camera: camera.hygieia_camera
calibration_source:
camera: true
entity: vacuum.valetudo_hygieia
vacuum_platform: Hypfer/Valetudo
internal_variables:
topic: valetudo/Hygieia
map_locked: true
card_mod:
style: |
#map-zoomer-content {
background: var(--map-card-zoomer-internal-background);
background-image: url(/local/floorplans/ground_floor_crop.png);
background-size: contain;
background-repeat: no-repeat;
background-position: center;
}
type: vertical-stack The really annoying part is figuring out the vacuum's map crop settings, as you have to make sure that vacuum's map image is scaled perfectly to layer on top of the floorplan image. It required a lot of "change this by 5 pixels" again and again to get it just right. By reducing the transparency down low I can still see the segment colors. The magic part here is that If you were so inclined @PiotrMachowski I suspect it wouldn't be very difficult for you to add a |
Description
It should be awesome have the possibility of add an static image and see on there the Xiaomi Vacuum position and cleaning path.
Solution
Add cleaning path on a static image.
Alternatives
No response
Context
No response
The text was updated successfully, but these errors were encountered: