Tired of boring, static backgrounds in your Home Assistant Lovelace UI?
Want to add a touch of dynamism and visual interest?
Introducing the lovelace-fluid-level-background-card, a custom card that renders a mesmerizing animated fluid level behind any other card in your Lovelace UI.
This card is perfect for:
Visualizing sensor data in a captivating way, like water tank levels or battery gauges.
Creating unique and eye-catching dashboards.
Adding a touch of personality to your Home Assistant setup.
This looks beautiful! Should work great with my kettle’s water level sensor.
Seems it doesn’t fully support card resizing in the new Sections view. I hope it’ll be fixed in the future though.
Your code contains 4 different cards and card-mod. This thread is just for one of them. I would suggest you “isolate” your issue by solving issues with ONE particular fluid card. If you found this code in Internet and trying to use it blindly - not a proper way for a beginner.
Here is about posting a code.
I usually post a code placing it between triple backticks:
where that “backtick” button is located right below an “ESC” button on a keyboard (may be different on Apple keyboards).
Posting a properly formatted code is crucial to get a support. Note that many “helpers” copy/paste a code into their setups to help with an issue.
Can someone help me please i have tried following the code online for this card but when i do the water level bar sits off the card to the bottom left and i cannot get the bar to move back please see my code below.
I have tried adjusting the px values and nothing changes.
I have tried adjusting the values that say adjust these values but this doesn’t seam to make any difference to the card please can someone point me in the right direction?
I believe you can edit old posts instead of deleting them, for future options…
For this last post, it could be edited for example. The code block is great, but the text pasted in needs to have proper indentation as it would in Home Assistant. If you’ve lost your indentation in the card I’d probably start over and migrate your tweaks into a blank slate so you have the proper indentation.
I am trying to get this working, but really struggling.
I have created a card with the empty fluid tank.
Another card for this animation, which shows a moving fluid with the correct percentage. How do I put them together?
Is there a simple set of instructions on how to configure it from scratch?
I tried googling for examples of code, but none helped. Also searched on this HA forum for examples, again no decent examples to work from of the code needed.
I am trying out this card and it’s great but I have a problem with my image. I downloaded a water tank image and made the inner part transparent. However the fluid level doesn’t match the actual level - it appears to show the tank more full than it is. I think this is down to my image. Can anyone have a look at my image and advise what the problem is? Many Thanks.
Hi,
I am a noob and recently joined the HA movement to improve and automate life…
programming skills & understanding software architecture is still at beginner level
but after many hours I manage to get things to work.
I really like this project…
A lot of thanks to the peeps involvement and discussions in this project.
I managed to put some code together to show the background and then
the animated water and show the statically placed % value.
Then I had a brain wave and wanted to vertically shift the % value
riding on the vertically shifting water meniscus.
Got inspired with the idea to program a button with the % value for the vertical shift
which now works and shifts on its own
But somehow the water animation (vertical shift and waves) is missing in action…
Instead of the expected water animation in the window either
all is transparent or
all white shows or
all white shows with green waves moving at the bottom.
Cannot seem to get the water animation vertical movement and related water color to show.
I am using a png background of a simple jar outline which is transparent in and out of the jar outline to make sure the water is not obscured .
My question is… is it actually possible to code this idea or do I need to look at a
different implementation or tool to use to implement or is there a layer system followed
that has to be re-ordered?
I would really appreciate any constructive help and
happy to help clarify doubts in my query…