Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request - accept templates for value-text #60

Open
lenwar opened this issue May 21, 2023 · 2 comments
Open

Feature request - accept templates for value-text #60

lenwar opened this issue May 21, 2023 · 2 comments

Comments

@lenwar
Copy link

lenwar commented May 21, 2023

It would be great if we could have the ‘valueText’ property to accept templates
.
valueText: {{ states(sensor.mysensor_something_else_than_the_gauge) }}

My personal usecase would be to have the gauge show my current output of a solar panel and the valuetext would be the total amount of kWh for that day.

@Steveh155
Copy link

Me too! My use case is very similar:
Gauge displays: current production in kW
Gauge title: ‘Solar and Wind’
Gauge units: ‘kWatt’
ValueText: 460 (right now)

so it looks like 460 kW. And I want it to show ‘460W’

@derailius
Copy link

derailius commented Jan 1, 2024

colorBarProgress: |- {% if states('input_boolean.purple_switch') == 'on' %} 'rgb(168, 130, 217)' {% else %} 'green' {% endif %}

i was trying to get the colors to change based on a boolean switch so that i didn't have to use multiple condition cards when i wanted to change my profile colors. sadly this did not work. am i doing something wrong? or is it just that the card doesn't accept any templating? all i get is a black colorBar instead of purple if i were to not use the template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants