canvas-gauge-card icon indicating copy to clipboard operation
canvas-gauge-card copied to clipboard

Feature request - accept templates for value-text

Open lenwar opened this issue 1 year ago • 2 comments

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.

lenwar avatar May 21 '23 13:05 lenwar

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’

Steveh155 avatar Jul 04 '23 14:07 Steveh155

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.

derailius avatar Jan 01 '24 15:01 derailius