Attribute on thermostat

I would like to read, perhaps in a sensor card, only the current_temperature attribute of a Meros thermostat, how can I do it?

Sensor cards do not support attributes. The Entity or Entities card does.

type: entity
entity: climate.termostato_homekit
attribute: current_temperature

If you really want to use the sensor card or some other card that does not support attributes you will have to create a template sensor from the attribute:

configuration.yaml

template:
  - sensor:
      - name: Current Temperature
        device_class: temperature
        state_class: measurement
        unit_of_measurement: "°C"
        state: "{{ state_attr('climate.termostato_homekit','current_temperature') }}"
        availability: "{{ state_attr('climate.termostato_homekit','current_temperature')|is_number }}"
1 Like