I’m trying to understand this styling, but I’m struggling, it’s all new to me. I have yet to find a good page explaining styling. I found keywords in CSS pages, but I couldn’t yet get a grasp on the selectors. Any ideas on where to start?
What exactly do I need to remove from the code above? I guess I need card-mod: and style:, but still not getting results.
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.