Replies: 9 comments 5 replies
-
@FHeilmann it is indeed an interesting the idea.. but please let's make a point here too.
As soon I can study an how to.. but please understand right now I do have to address other basic function first, I would come back on it.. anyhow if you are willing to contribute.. you can always fork the project and of course you will found my full cooperation if you would start or have in mind how to design such function... for the time be I would propose we keep this as an open discussion if you agree ;) when you agree I will move it to the discussions. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your timely and thorough response. I'm fine with however way you want to approach the issue. Given that I "solved the issue" by modifying piotr's card it might make sense to make this change in the card instead. I might reach out to him about that. I'm fine with moving this to discussions. Also please don't feel rushed in any way. Bests, Florian |
Beta Was this translation helpful? Give feedback.
-
Florian, I will work on the card too, and discuss about it with Piotr (that is at the moment quite busy). Anyhow I will keep this open as per the idea you had is quite interesting to me, this would solve an issue that other users have using the VM's instead of real hardware... mmmmm we will see, but please I will need a little time as above explained for it ;) |
Beta Was this translation helpful? Give feedback.
-
@FHeilmann |
Beta Was this translation helpful? Give feedback.
-
Dear @sca075, thank you and all the best to you and yours as well. I just realized we had a bit of a misunderstanding. I'm not talking about scaling the image, im talking about changing the aspect ratio, padding one dimension so that the image becomes wider or taller as a result. Let me show you what I mean with a screenshot from my current setup (modded with card mod) As you can see the camera image does not occupy the entire width of the card (and therefore the image is less tall and fits on the screen without scrolling. This would've been easier if I could change the aspect ratio of the image (from the rectangular 1:1 to, e.g. 2:1 in my case) Hope this clarifies my issue. All the best. |
Beta Was this translation helpful? Give feedback.
-
got it but let me clarify the pixel_size is actually the image aspect ratio.. it means the image will reduce in size too.. anyhow the card is going to make it full size, therefore zooming out two times and locking the aspect ratio will result on the same as per your example, I will work on it the next year ;) |
Beta Was this translation helpful? Give feedback.
-
@FHeilmann in the V1.6.0 there will be the possibility to lock the aspect ratio directly in the camera options.. as soon I'm done with it and (right now I'm in test phase of this) the function will be available. If you are still using this integration please consider to star the project it helps really a lot. |
Beta Was this translation helpful? Give feedback.
-
Dear @FHeilmann, #96 a beta release of the v1.6.0 was just released and should be possible to download it via HACS. Would be really nice of you when you can confirm that the aspect ratio 2:1 as shown above fit your dashboard. |
Beta Was this translation helpful? Give feedback.
-
Hey @sca075 . Unfortunately my vacuum gave up the ghost recently so I currently don't have a valetudo platform to test this with. I will definitely report back once I'm back up and running again! |
Beta Was this translation helpful? Give feedback.
-
Description
Hi, first of all, thanks for the absolutely amazing addon that you provided here. It replaced a bunchof manual work I needed to do to enable using my Valetudo Vacuum with the
lovelace-xiaomi-vacuum-map-card
!I have the card set up on my dashboard together with a few buttons and stats cards to display things like RSSI, consumables, etc. Unfortunately, on one of my wallmounted tablets, this causes the resulting card to exceed the available vertical screen space. I have since used
card-mod
to tweak the aspect ratio of the map image, but I'd prefer to be able to use the configuration of this integration to set an aspect ratio for the camera image (e.g. 2:1) or explicit width and height (e.g. 400x200).Thank you for considering this feature request.
Florian
Solution
Integration allows to set aspect ratio of the camera image, resulting image provided to home assistant is padded to achieve desired aspect ratio
Alternatives
Integration allows to set explicit width and height of the camera image
Context
No response
Beta Was this translation helpful? Give feedback.
All reactions