How to capture Thermostat Temperature Sensor?

Hello, I’m trying to integrate the Thermostat temperature with the mini-graph-card card. Is it possible? I can not find my thermostat temperature sensor to perform the link.

Example using Xioami Temperature Sensor:

I have an ecobee thermostat connected:

GitHub - kalkih/mini-graph-card: Minimalistic graph card for Home Assistant Lovelace UI

Thanks for any help

sensor:
  - platform: template
    sensors:
      temperature:
        friendly_name: "your current temp"
        unit_of_measurement: '°C'
        value_template: "{{ state_attr('climate.your', 'current_temperature') }}"

Will need to create the sensor from a template in configuration.yaml file. Replace “your” with the name of your thermostat.
edited as per correction by @kgmilx

4 Likes

Thanks for your help ! Worked as expected.

Brilliant thanks

Your post has helped me as well, thank you very much!

Small note: I had to change unit_of_measurement to °C (capital C instead of c) because otherwise it would break any helper sensor which I’ve added the temperature to. Took me a while to find out what’s wrong so you might want to edit it for anyone finding this in the future and copy-pasting your code like me :smiley:

1 Like

Hi guys,
it did work for me as well, thank you!

but now I am trying to add more Thermostat sensors to the config file and it doesn’t work.
How can I do that?
@Spiro

Hi @Vinci0vap
Can you share your YAML. Both the one that worked and the one that didn’t.