Recording Attributes (Weather temperature)

It Looks Like Most of the meteorologist services have a temperature attribute. This is what I am looking for to overlay the outside temperature on my room temp Chart. I read somewhere attributes are not generally recorded and weather. Domain also seems to not be recorded.

So the AI suggests me to add a Template to generate a new Sensor and add the entity to the recorded (not sure thats needed when it’s a new Sensor anyway?). In the template tester it correctly expands the desired temperature. But I am not sure where to add it in config?

I put it on top level, After restart I see no error, only a deprecation for the recorder.include. But I dont see a State or statistic Show up. Any idea?

template:
 - sensor:
     - name: "Outside Temperature"
       state: "{{ state_attr('weather.m8', 'temperature') }}"
       unit_of_measurement: "°C"
       state_class: measurement
       device_class: temperature

recorder:
 include:
   entities:
     - sensor.outside_temperature

history:
 include:
   entities:
     - sensor.outside_temperature

:thinking:

Ah cool, I can try this integration. Looks better than the 3 I tried before. Thanks.

But the question is still open, I would like to understand the background behind adding other attributes to the internal recorder.

BTW the Template now works (even finer Resolution that OWM free API), so I will probsbly stick to it.