Get attribute form entity

Thanks to @Danielhiversen and @brg468. You guys are genius’s. Never used templates before, so this was new to me. Following documentation and threads helped:

https://www.home-assistant.io/integrations/template/
How to display template sensor attributes in HA home page?

The final solution ended up like this and could then be referenced like: sensor.office_temperature:

- platform: template
  sensors:
    office_temperature:
      entity_id: climate.kontor
      friendly_name: "Office temperature"
      unit_of_measurement: 'degrees'
      value_template: "{{state_attr('climate.kontor', 'current_temperature') }}"
1 Like