Save data from climate.set_temperature in InfluxDB

Hi there,
is there a way to get values from climate.set_temperature stored in InfluxDB? Apologies, noob here. I assume it’s not working since it’s a service and not a sensor, but struggle to find a solution online. I do tell InfluxDB in config yaml to include the domain “climate” but I can’t get a card in frontend or Grafana to display the set temperature.
Any ideas?

The set’ temperature is stored in the temperature attribute of a climate entity.
You can see it in the history of the climate.
i don’t know how grafana stores that data, but you can create a template sensor from that attribute.

template:
  - sensor:
      - name: "Climate set temperature"
        unit_of_measurement: "°C"
        state: >
          {{ state_attr('climate.your_climate', 'temperature') }}
1 Like

Thank you so much. That did the trick!