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

Max gauge value from a sensors value

Open mkuhnke71 opened this issue 2 years ago • 1 comments

How can I set the maxValue as well as highlights values from sensors in Home Assistant? Seems I can only hard code these values Example width: 285 height: 300 minValue: 0 maxValue: sensor.meater_probe_internal_2

mkuhnke71 avatar Jun 09 '22 16:06 mkuhnke71

This would be awsome, along with a sensor value for 'valueText' too.

cserem avatar Jun 20 '22 10:06 cserem

@mkuhnke71 , the method you are using to address the sensor is not returning the 'text' of the sensor current value but rather the sensor itself. I'm not sure if this will work with this card but I have used the following in other cards where I want to put the current value of the sensor in a title or headline. In your example: maxValue: {{ states('sensor.meater_probe_internal_2') }}

I just tried this with a temperature sensor and it did not result in an error but it might take some work to make sense of the gauge reading.

jwaz73 avatar Nov 12 '22 03:11 jwaz73