Skip to content

Instantly share code, notes, and snippets.

@dustinrue
Created February 2, 2019 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dustinrue/22d2f90c97d94c5ef9433babd8665ba5 to your computer and use it in GitHub Desktop.
Save dustinrue/22d2f90c97d94c5ef9433babd8665ba5 to your computer and use it in GitHub Desktop.
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