Hi all. I can see the latest HA version allows multiple segments to be defined. I’d like to use this to measure air temperature, but it doesn’t seem to accept negative numbers, so can only start from above freezing. Is there a way to get a gauge to show negative numbers? I’ve tried both the visial and YAML routes.
Displaying negative values. But i think i figured it out: My negative value was not big enough to make a visual difference. If i enter -100 against +1000 it´s barely visible. I had to enter -1000 againts +1000 and now it´s working. Thank you!
Just thought I’d post the direction I went on this in case anyone finds it useful…
Instead of 0 being the mid-point on the gauge, I flip the gauge around when the value is negative, see:
I achieved this by creating a template sensor (in configuration.yaml for noobs like me!) which clones the sensor in question, but changes it to an absolute value.
Then for the gauge card I’m using the lovelace-card-mod to flip the gauge around (and change the colour) via CSS when I detect a negative value from the original sensor.