I am using the gauge card for several sensor values in my house and have the red/yellow/green defined. However, for my freezer, the order of red/yellow/green needs to be reversed, since a higher temperature is bad and lower is good. Is there any way to do this? I tried reversing max/min but that doesn’t appear to work.
Isn’t exactly this in the examples?
You just need to define a color and a value, no matter which order to start.
I guess it was actually the opposite one I was having an issue with, for humidity, where I don’t want it below a certain amount. I was doing a few of them, got mixed up. Seems like it’s designed that high=red, and I do not see a way to reverse it.
Here’s a simple lovelace horizontal stack with two gauges that get their values from a input_number (slider).
type: vertical-stack
cards:
- type: horizontal-stack
cards:
- type: gauge
name: red to green
unit: '%'
entity: input_number.slider1
severity:
green: 60
yellow: 30
red: 0
- type: gauge
name: green to red
unit: '%'
entity: input_number.slider1
severity:
green: 0
yellow: 30
red: 60
- entities:
- entity: input_number.slider1
show_header_toggle: false
title: Slider
type: entities
4 Likes
Thank you, i just wanted to let you know I wound up actually going with canvas gauges because I realized I needed more complex ranges, they are really cool