Hi,
I am quite new to HA.
I configured a sensor via Developertools/Templates. My target was to extract the attribut “current_temperature” from my heatingthermostat. (Comet DECT 700018) to use it later in automatisations.
There was quite a bit wrong with your sensor. Try this:
- platform: template
sensors:
temperatur_wohn: # this must be lower case, and notice the indentation
value_template: "{{ state_attr('climate.comet_dect_1', 'current_temperature') }}" # Fixed quite a few things here
friendly_name: "Temperatur Heizung" # I don't speak German but I think this is the correct spelling
unit_of_measurement: "°C" # this is required if you ever want to make a graph