Gauge-Card, use other sensors as minimum/maximum

Hey,

I want to display a gauge card, where the min and max value should depend on two different sensors. (apex spot market prices and min/max of the day)

No matter what I try to reference the other sensors for min/max, upon saving it is always converted to "[object Object]": null

Any hints? My attempt:

type: gauge
entity: sensor.epex_spot_data_net_price
name: Current Price
min: 
  {{ states("sensor.epex_spot_data_lowest_price") }}
max: 
  {{ states("sensor.epex_spot_data_highest_price") }}

Very few core dashboard cards support templates, if they do they will say so in their documentation.

The gauge card does not.

There is a custom card that will enable you to do this though. See: đź“ť 100% Templatable Lovelace Configurations

1 Like

Ah thx.

Wasn’t aware, that not every card / property supports this.

Although config-template-card is a universal way to add templates - it is not recommended to use it in for the Gauge card. If you add a “needle” to the Gauge - it will “drop to 0” every time your sensor change.
Use auto-entities instead. Google in auto-entities main thread for “gauge”, I posted there a solution.