Display FRITZDect 301 current temperature

Hello
I’m trying to read the current measured temperature from FRITZDect 301.
Here’s my configuration.yaml:

sensor:
  - platform: template
    sensors:
      temp_bad_eg:
        friendly_name: "Temp_Bad_EG"
        unit_of_measurement: '°C'
        value_template: "{{ state_attr('climate.hz_bad_eg', 'temperature') }}" 

Sensor works fine, but displays the target temperature value instead of the current measured temperature.
Does someone know which attribute I have to read to get the right value?

Thanks

I’ve solved this issue now,
after reading the code sensor.py in its repository:

Solution: use current_temperature instead of temperature.

sensor:
  - platform: template
    sensors:
      temp_bad_eg:
        friendly_name: "Temp_Bad_EG"
        unit_of_measurement: '°C'
        value_template: "{{ state_attr('climate.hz_bad_eg', 'current_temperature') }}"

Question to admin: should I delete this post when solved?