Affichage valeur d'un attribute dans un custom button card

Bonjour, je cherche à afficher la valeur current_temperature d’un thermostat dans un button custom card.
Soit à la place du mot « chauffage » ici :
image

Je ne m’en sors pas, merci pour votre aide.

      - type: custom:button-card
        entity: climate.heatpump
        show_icon: false
        show_state: true
        name: Température T.
        state:
          - operator: template
            state_display: 
                  value: >
                    [[[
                      return states {{ states["climate.heatpump"].attributes['current_temperature'] }}
                    ]]]

Le 1er résultat de la recherche semble correspondre à ton besoin :

https://forum.hacf.fr/search?context=topic&context_id=26762&q=Button-card%20attribut&skip_context=true

Merci Clemalex.

La solution :

      - type: custom:button-card
        entity: climate.heatpump
        show_icon: false
        show_state: true
        name: Température T.
        state_display: >
          [[[ return
          states["climate.heatpump"].attributes['current_temperature']+' °C']]]
2 « J'aime »