Created
February 2, 2019 16:43
-
-
Save dustinrue/22d2f90c97d94c5ef9433babd8665ba5 to your computer and use it in GitHub Desktop.
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
input_boolean: | |
house_fan: | |
name: "House Fan" | |
initial: off | |
icon: mdi:fan | |
house_fan: | |
friendly_name: "House Fan" | |
value_template: "{{ is_state('input_boolean.house_fan', 'on') }}" | |
turn_on: | |
- service: "climate.set_fan_mode" | |
data: | |
entity_id: "climate.hallway" | |
fan_mode: "on" | |
- service: "input_boolean.turn_on" | |
data: | |
entity_id: "input_boolean.house_fan" | |
turn_off: | |
- service: "climate.set_fan_mode" | |
data: | |
entity_id: "climate.hallway" | |
fan_mode: "auto" | |
- service: "input_boolean.turn_off" | |
data: | |
entity_id: "input_boolean.house_fan" | |
icon_template: >- | |
{% if is_state('binary_sensor.hallway_thermostat_fan', 'on') %} | |
mdi:fan | |
{% else %} | |
mdi:fan-off | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment