This works fine but has hard coded values that are wrong half the time.
type: gauge
entity: sensor.difference_between_temperatures
max: 1
needle: true
severity:
green: 0
yellow: 0.5
red: 0.75
min: 0
What I want to do is something like this. No hard coded values but derived values instead.
type: gauge
entity: sensor.difference_between_temperatures
max: {{ states('sensor.difference_between_temperatures_okay') * 2.0 }}
needle: true
severity:
green: 0
yellow: {{ states('sensor.difference_between_temperatures_okay') }}
red: {{ (states('sensor.difference_between_temperatures_okay') * 1.5) }}
min: 0
Is something like the above possible? I can’t use hard coded values since they change based on the hour of the day.