Files
2024-07-03 12:58:50 -04:00

70 lines
2.1 KiB
YAML

template:
# - trigger:
# - platform: state
# entity_id: climate.thermostat
# not_from:
# - "unknown"
# - "unavailable"
# - platform: event
# event_type: event_template_reloaded
# id: "reload"
# - platform: homeassistant
# event: start
- binary_sensor:
- name: "HVAC: Aux"
unique_id: "custom_binary_sensor.hvac_aux"
icon: mdi:fire
device_class: running
availability: "{{ states('climate.thermostat') not in ['unknown', 'unavailable'] }}"
state: >
{% if 'aux' in state_attr('climate.thermostat','equipment_running') %}{{'true'}}{% else %}{{'false'}}{% endif %}
# - trigger:
# - platform: state
# entity_id: climate.thermostat
# not_from:
# - "unknown"
# - "unavailable"
# - platform: event
# event_type: event_template_reloaded
# id: "reload"
# - platform: homeassistant
# event: start
- binary_sensor:
- name: "HVAC: Fan"
unique_id: "custom_binary_sensor.hvac_fan"
icon: mdi:fan
device_class: running
availability: "{{ states('climate.thermostat') not in ['unknown', 'unavailable'] }}"
state: >
{% if 'fan' in state_attr('climate.thermostat','equipment_running') %}{{'true'}}{% else %}{{'false'}}{% endif %}
# - trigger:
# - platform: state
# entity_id: climate.thermostat
# not_from:
# - "unknown"
# - "unavailable"
# - platform: event
# event_type: event_template_reloaded
# id: "reload"
# - platform: homeassistant
# event: start
- binary_sensor:
- name: "HVAC: Heat Pump"
unique_id: "custom_binary_sensor.hvac_heatpump"
icon: mdi:hvac
device_class: running
availability: "{{ states('climate.thermostat') not in ['unknown', 'unavailable'] }}"
state: >
{% if 'heatPump' in state_attr('climate.thermostat','equipment_running') %}{{'true'}}{% else %}{{'false'}}{% endif %}