Get temperature of homematic device

I am trying to create some automations with homematic thermostats.
I know how to set the temperature with an automation, but my problem is that I am unable to get the temperature of a thermostat.
I want to use the temperature as a trigger, but somehow it is not working.

platform: numeric_state
entity_id: climate.leq0862257
above: '20'
attribute: temperature

My other problem is that I want to send the temperature via a notification, but with this code I only receive “Auto” instead of a temperature value.

service: notify.mobile_app_ipad_von_raphael
data:
  title: Test
  message: Temperatur {{state('climate.leq0862930') }} °C

Has anyone some experience what I need to fix?
Thanks in advance