Use readings of TRV's temperature sensor and target temperature in automations

Hi all,

I simply can’t find a way to lay hand on the values from the TRV’s own temperature sensor and the target temperature that es set on the TRV. I’d like to use both in automations. Most importantly I’d like to have the target temperature.

Please, if anyone could point out, what I am missing?

Thanks!

Those are both attributes of the climate entity’s state object.

What do you mean by “lay hand on” the values?

For use in automations, the general answer is “use templates”, but attributes can be accessed in State triggers and conditions… we will need a specific question if you want a specific answer.

There are a number of existing climate blueprints that may already do what you want to do, or you can use their configurations as inspiration and guidance for your automation.

Thank you! That pointed me in the right direction. (By “lay hands on” I mean getting the values into entities I can use in automations.)

What’s working for me now is this in templates.yaml:

- sensor:
    - name: Thermostatventil Küche Zieltemperatur
      unique_id: trv_kueche_target_temperature
      state: "{{ state_attr('climate.hmip_etrv_2_000a1d89b0bea5','temperature') }}"
      unit_of_measurement: °C