[solved] How to plot climate.entity attributes in one (1) graph

This will be a simple question for many of you, but too complicate for me.

I would like to have a graph (stat card) that has two curves being the set- (target) temperature and the reference- (actual) temperature of a climate instance.

How would I need to do this?
Thanks in advance, Yann

I figured out I can get the set temperature as follows

{{state_attr("climate.living_heating","temperature")}}

But how do I get that into a graph say in a Statistics Graph Card ?
Should I use an

  • number_input helper or create a
  • sensor ? And if so, what platform ?

I figured it out and created the following entry in ./templates.yaml

##
# check https://www.home-assistant.io/docs/configuration/templating/
- sensor:
    - name: "living demand temperature"
      unique_id: "2022113011298765-4356"
      unit_of_measurement: "°C"
      state: '{{state_attr("climate.living_heating","temperature") | float(0) }}'
      state_class: measurement
      device_class: temperature

And this gives me the sensor

sensor.living_demand_temperature

That can be used is e.g. a Statistics Graph Card

2 Likes