Configuring a gauge card's max limit

Hello folks.
I would like to set up a gauge that displays the data usage on my phone. Under entities I see that I have two sensors that I can use:

  • sensor.fido_250#####09_data_limit
  • sensor.fido_250#####09_data_used

I tried setting up a gauge like this:

type: gauge
entity: sensor.fido_250#####09_text_used
min: 0
max: {{ state_attr("sensor.fido_250#####09_data_limit","number") }}

But that caused an error

Configuration errors detected:
* missed comma between flow collection entries (4:64)

I know I could hardcode my data limit as the max value for the gauge, but I was hoping there was a way to do this dynamically. Can anyone point me in the right direction?
(and my apologies if this is not the correct place to ask this question - Iā€™m new to HA and still fumbling my way around)

Thanks

2 Likes

Hi there, looking to achieve the same thing as you, did you find something?