Show TADO thermostat target temperature in cards

Hello

I have installed the TADO integration to have all the information from my TADO thermostat in my HA. When including the TADO suggested card to my UI I can perfectly see the temperature, heating and target temperatures in the graph and history:

However, when trying to visualize this variables in a customize graph I can find the Temperature and heating variables, but not the target temperature. I can see the previous graph obtains the values from the entity “Salón” which is my thermostat name in TADO. Is it possible to read the target temperature individualy as the other 2?

Any idea? I find it very strange not being able to use that variable.

I found my response here:

How to use entity attribute in history graph - Configuration - Home Assistant Community (home-assistant.io)

The target temperature is an attribute, so it cannot be plotted, unless you create a template to a sensor variable

Could you please share your template? I want to use the tado target temperature as well but i cant find out how.

Sure, let me arrive at home and I’ll copy it for you

Great, thank you

Sorry, I forgot. It happens when you have 2 little children waiting for you to arrive home

Here is the template I used

{% set T1 = states.climate.termostato_salon.attributes.temperature | float %}

{% if T1|is_number %}
  {{ (T1 )  | round(1) }}
{% else %}       
  {{ this.state }}
{% endif %}

No worries, i know the drill. Thank you anyways