Thank you so much for your help! It works now. Now, I’ll try to figure out how to do it on a vertical bar.
I’ve read the card-mod pages, but I’m having problems with nested cards. I’ll do some more experimenting, but your help was very valuable. I’m learning from examples.
I am currently using the bar card to display the state of several batteries and I use the severity to color it accordingly. However once the battery reaches 0% the bar obviously disappears. Is there a way to color the background red at that state? Currently it’s not very visually apparent when a battery is completely flat:
I am using the bar card for displaying some entities.
Now I have a question: how can I replace the default icons of the entities with my own entity-pictures? I have already assigned my own entity-pictures to the entities in customize.yaml. Displaying these pictures in other cards works also e.g. in the entities card. But unfortunately I didn’t find how to display these entity pictures also in the Bar-Card?
I hope you understand what I mean?
Does anyone have a tip for me here please? That would be great!
hi! I’m just starting to play with the card, it looks awesome.
I’m wondering, is there an option to keep the indicator arrow always displayed/always “on”? I’d like to always see the last trend on some temperature bars.
Thanks!
I’m trying to get something working. I have 6 entities for different elements of my PV array. I’m using bar cards but I want to get the bottom three bar cards to butt up against each other. I have changed the size of the bar but they just stay in the same place.
I’ve played with card-mod but cannot figure it out. I’m sure that this is a really simple thing as I’ve seen examples in some of the comments in this thread.
Any ideas? I would post code but I don’t have much in place, yet.
I was wondering if it there,s a way to use a template or an entity attribute in the target option?
My use would be this simple: I have an sensor from bodymiscale component that the state is my weight and the attribute is my ideal weight. I use the state for a horizontal bar and i want to use the attribute ideal weight for the target.
update: i read older posts and used the custom:config-template-card ( great help for use templates in the dashboard) to achieve this.
It feels like something in the structure or CSS has changed causing the bar-card-color not to be applied. Any idea how I can (now) change the color of a bar, based on entity states (value)?
The test below doesn’t work but could be a great feature?
- entity: sensor.temp_a
name: Living
severity:
- color: red
from: {% state('sensor.temp_b') | float %}
to: 99
(result: if the temperature of temp_a if higher than temp_b, the bar would turn red)
It was NEVER supposed to work since you got a wrong path.
This worked fine for quite a while.
What do you mean by wrong path?
Keep in mind that I’m using vertical bars, not horizontal. In the CSS it looks like this:
Horizontal bars:
_bar-card-ROW
___bar-card-card
_bar-card-ROW
___bar-card-card
Multiple rows, each with 1 card: