Created
March 6, 2023 19:04
-
-
Save epaulsen/61b469e4a7c4a36a05a9905b97e678ec to your computer and use it in GitHub Desktop.
Binary sensor based om attributes from climate entity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
binary_sensor: | |
- platform: template | |
sensors: | |
heating_status: | |
friendly_name: "Heating Status YOUR CLIMATE ENTITY" | |
value_template: > | |
{% if state_attr('climate.YOUR_CLIMATE_ENTITY_HERE','hvac_action') == 'heating' %} | |
on | |
{% else %} | |
off | |
{% endif %} | |
device_class: heat |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment