Ecobee: Show min fan settings in badge

Hey there,

I’m playing with an automation around the set_fan_min_on_time service (cf. ecobee - Home Assistant) – basically, I’d like to have my house quiet at night and the fan on during the day.

Setting up the automations around this was straight-forward, but now I’d like some visibility in the UI around these actions. How can I surface the attribute fan_min_on_time from the ecobee attributes (ecobee - Home Assistant) in

  1. a badge
  2. a card of type gauge

Also, would it possible to have the gauge interactive by having it call out to the set_fan_min_on_time service (cf. ecobee - Home Assistant)?

To answer my own question, this did the trick for me:

template:
  - sensor:
      - name: "Fan Min Runtime"
        unit_of_measurement: min
        state: >
          {{ state_attr('climate.living_room', 'fan_min_on_time') }}

Seems there is no way to define an action for a gauge, though.