Pass variables from air conditioning to MQTT

Hi all,

I need some help with my attempt to pass the current room temperature of the air conditioning system to a MQTT topic:

payload_template: '{{ state_attr('climate.klimabuero', 'current_temperature') }}'
topic: ha/klima/buero/status/tempist

What should the structure in the configuration.yaml look like?

Thanks for your help in advance!

Marten

Use double quotes outside your template. At the moment the first pair of your single quotes are:

payload_template: '{{ state_attr('

So like this:

payload_template: "{{ state_attr('climate.klimabuero', 'current_temperature') }}"