HI all.
I have a vertical bar using this bar-card.
Is it possible to make the value aligned vertically along the bar ? Currently itâs on horizontal over the vertical bar.
Iâve tried the âtext-orientation: mixed;â option on various places, but nothing worked.
I spent 8 hours but still couldnât find a way to do this. Someone please help me.
I was looking for a better and easier way to make a second row with last modified information of a temperature sensor but couldnât find it.
Then I was looking for how to add the last modified time to the name but couldnât find it.
I canât even make a line break.
What could be easier, Iâm now ashamed why this card doesnât allow me to do anything with the name.
I tried adding Jinja2 or other templates to the name but it doesnât work.
I spent four hours studying config-template-card but it doesnât work either.
Every time I change the name parameter but to something other than âsome textâ I get an error
The only thing I found was this Lovelace: Bar Card - #915 by Mariusthvdb, and yes, it all works for âtype: entitiesâ, but not for âtype: custom:bar-cardâ
I tried:
type: custom:bar-card
entities:
- entity: sensor.yandex_temperature
name: "The only thing that works"
## name: "doesn't work" + "doesn't work"
## name: doesn't {{ "\n" }} work, doesn't {{ /n }} work
## name: states['sensor.yandex_temperature'].state #doesn't work
## name: {{ states['sensor.yandex_temperature'].state | string }} #doesn't work
## name: "{{ states['sensor.yandex_temperature'].state | string }}" #doesn't work
## name: '{{ states['sensor.yandex_temperature'].state | string }}' #doesn't work
## name: {{ relative_time(states.sensor.yandex_temperature.last_reported) }} #etc
## name: >
## { return "sh*t"
## }
Have you found a way to pull the name from another entity?
When i try name: {{ }} the display shows [object Object] so there seem to be some information passing, but I canât find the proper syntax either.
I was reading around here for a while and also searched the whole thread up and down, but I can not find anything useful.
I really want to have some animation, showing if there is a charge or discharge ongoing. It is a solar battery.
But even while it is âonâ acc. to the yaml, no animation is visible.
I also tried values between 2 and 10 for the speed.
Here is my code:
title: null
type: custom:bar-card
severity:
- color: Red
from: 0
to: 25
- color: Orange
from: 26
to: 50
- color: Green
from: 51
to: 100
icon: mdi:battery
animation:
- state: "on"
- speed: 10
entities:
- entity: sensor.solax_battery_capacity
I appreciate your help to the fullest!
But I have now looked in the original post of the bar card, and in the post for the card mod. I can not find anything saying âfantasticâ.
The only thing I found - but even earlier - is the link to the bar-cards Github, which does mention âanimationâ. But the options there are just the same as in my YAML.