Show attribute value on custom:config-template-card

I have this config for my valves, but I would like to show an attribute value on the card. How can I do this?
One of the attributes is preset_mode, with possible values being [‘away’, ‘boost’, ‘Frost Guard’, ‘Schedule’]

type: custom:config-template-card
entities:
  - entity: climate.netatmo_woonkamer
card:
  type: glance
  entities:
    - entity: climate.netatmo_woonkamer
      icon: hass:fire

I know from the template editor I can call it like this

{{state_attr('climate.netatmo_woonkamer','preset_mode')}}

but I don’t know how to implement this in the custom:config-template-card