Hey folks,
I am struggling with pulling an attribute from an entity into a binary sensor.
I have an entity called climate.wiser_office which has an attribute called is_heating which is either true or false.
I want to pull this out into a binary sensor so I can show whether the heating is on or off for a specific room.
I have this so far but its not working.
- platform: template
sensors:
heating_state_office:
friendly_name: "Office Heating State"
device_class: heat
value_template: >
{{ state_attr('climate.wiser_office', 'is_heating')}}
I suspect I need to get the value template correct but struggling to find the correct code.
Cheers
J