Tplink: Export current temperature via a sensor

KE100 (Kasa) smart thermostat measures and provides current temperature in the room. Exporting it as a sensor would enable its use in automations, temperature display (in Area cards for example) etc…

This is exactly what I came here looking for.

I’m having this same issue, and its rather frustrating given the values are easy to see on cards but impossible to act on.

image

Does anyone have a way to expose these values?

Edit

Found a way by adding a custom sensor in sensors.yaml

    kitchen_rad_current_temp:
      friendly_name: ""
      unit_of_measurement: 'degrees'
      value_template: "{{ state_attr('climate.kitchen_radiator', 'current_temperature') }}"
    kitchen_rad_target_temp:
      friendly_name: ""
      unit_of_measurement: 'degrees'
      value_template: "{{ state_attr('climate.kitchen_radiator', 'temperature') }}"

image