canvas-gauge-card
canvas-gauge-card copied to clipboard
Feature request - accept templates for value-text
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.
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’
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.