mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
199 lines
6.1 KiB
YAML
199 lines
6.1 KiB
YAML
platform: template
|
|
switches:
|
|
thermostat_fan_mode:
|
|
unique_id: templateswitch.thermostat_fan_mode
|
|
# This shouldn't be used because it just re-circulates the air in the house.
|
|
# Since there aren't any returns in the basement, the upstairs air recirculates itself
|
|
# which accomplishes nothing
|
|
# I'd need to get some kind of fresh air intake and a damper
|
|
friendly_name: "Thermostat Fan Mode"
|
|
value_template: >-
|
|
{% if state_attr('climate.thermostat', 'fan_min_on_time') | int(default=0) < 5 %}
|
|
{{'false'}}
|
|
{% else %}
|
|
{{ 'true' }}
|
|
{% endif %}
|
|
turn_on:
|
|
- action: ecobee.set_fan_min_on_time
|
|
data:
|
|
fan_min_on_time: 60
|
|
turn_off:
|
|
- action: ecobee.set_fan_min_on_time
|
|
data:
|
|
fan_min_on_time: 0
|
|
|
|
master_bedroom_light_cycle:
|
|
unique_id: templateswitch.master_bedroom_light_cycle
|
|
friendly_name: "Master Bedroom Light Cycle"
|
|
value_template: "{{ is_state('input_boolean.master_bedroom_light_cycle', 'on') }}"
|
|
turn_on:
|
|
action: input_boolean.turn_on
|
|
data:
|
|
entity_id: input_boolean.master_bedroom_light_cycle
|
|
turn_off:
|
|
action: input_boolean.turn_off
|
|
data:
|
|
entity_id: input_boolean.master_bedroom_light_cycle
|
|
icon_template: >-
|
|
{% if is_state('input_boolean.master_bedroom_light_cycle', 'on') %}
|
|
mdi:party-popper
|
|
{% else %}
|
|
mdi:party-popper
|
|
{% endif %}
|
|
|
|
nursery_light_cycle:
|
|
unique_id: templateswitch.nursery_light_cycle
|
|
friendly_name: "Nursery Light Cycle"
|
|
value_template: "{{ is_state('input_boolean.nursery_light_cycle', 'on') }}"
|
|
turn_on:
|
|
action: input_boolean.turn_on
|
|
data:
|
|
entity_id: input_boolean.nursery_light_cycle
|
|
turn_off:
|
|
action: input_boolean.turn_off
|
|
data:
|
|
entity_id: input_boolean.nursery_light_cycle
|
|
icon_template: >-
|
|
{% if is_state('input_boolean.nursery_light_cycle', 'on') %}
|
|
mdi:party-popper
|
|
{% else %}
|
|
mdi:party-popper
|
|
{% endif %}
|
|
|
|
front_room_light_cycle:
|
|
unique_id: templateswitch.front_room_light_cycle
|
|
friendly_name: "Front Room Light Cycle"
|
|
value_template: "{{ is_state('input_boolean.front_room_light_cycle', 'on') }}"
|
|
turn_on:
|
|
action: input_boolean.turn_on
|
|
data:
|
|
entity_id: input_boolean.front_room_light_cycle
|
|
turn_off:
|
|
action: input_boolean.turn_off
|
|
data:
|
|
entity_id: input_boolean.front_room_light_cycle
|
|
icon_template: >-
|
|
{% if is_state('input_boolean.front_room_light_cycle', 'on') %}
|
|
mdi:party-popper
|
|
{% else %}
|
|
mdi:party-popper
|
|
{% endif %}
|
|
|
|
great_room_light_cycle:
|
|
unique_id: templateswitch.great_room_light_cycle
|
|
friendly_name: "Great Room Light Cycle"
|
|
value_template: "{{ is_state('input_boolean.great_room_light_cycle', 'on') }}"
|
|
turn_on:
|
|
action: input_boolean.turn_on
|
|
data:
|
|
entity_id: input_boolean.great_room_light_cycle
|
|
turn_off:
|
|
action: input_boolean.turn_off
|
|
data:
|
|
entity_id: input_boolean.great_room_light_cycle
|
|
icon_template: >-
|
|
{% if is_state('input_boolean.great_room_light_cycle', 'on') %}
|
|
mdi:party-popper
|
|
{% else %}
|
|
mdi:party-popper
|
|
{% endif %}
|
|
|
|
computer_area_light_cycle:
|
|
unique_id: templateswitch.computer_area_light_cycle
|
|
friendly_name: "Computer Area Light Cycle"
|
|
value_template: "{{ is_state('input_boolean.computer_area_light_cycle', 'on') }}"
|
|
turn_on:
|
|
action: input_boolean.turn_on
|
|
data:
|
|
entity_id: input_boolean.computer_area_light_cycle
|
|
turn_off:
|
|
action: input_boolean.turn_off
|
|
data:
|
|
entity_id: input_boolean.computer_area_light_cycle
|
|
icon_template: >-
|
|
{% if is_state('input_boolean.computer_area_light_cycle', 'on') %}
|
|
mdi:party-popper
|
|
{% else %}
|
|
mdi:party-popper
|
|
{% endif %}
|
|
|
|
nursery_bed_lights:
|
|
unique_id: templateswitch.nursery_bed_lights
|
|
value_template: "{{ is_state('light.black_bed_wled', 'on') or is_state('light.white_bed_wled', 'on') }}"
|
|
turn_on:
|
|
action: select.select_option
|
|
target:
|
|
entity_id:
|
|
- select.black_bed_wled_preset
|
|
- select.white_bed_wled_preset
|
|
data:
|
|
option: Bouncing Balls
|
|
turn_off:
|
|
action: select.select_option
|
|
target:
|
|
entity_id:
|
|
- select.black_bed_wled_preset
|
|
- select.white_bed_wled_preset
|
|
data:
|
|
option: "Off"
|
|
icon_template: >-
|
|
mdi:led-strip-variant
|
|
|
|
virtual_reality:
|
|
unique_id: templateswitch.virtual_reality
|
|
value_template: "{{ is_state('switch.vr_headset_plug', 'on') }}"
|
|
turn_on:
|
|
action: homeassistant.turn_on
|
|
data:
|
|
entity_id:
|
|
- switch.vr_headset_plug
|
|
turn_off:
|
|
action: homeassistant.turn_off
|
|
data:
|
|
entity_id:
|
|
- switch.vr_headset_plug
|
|
icon_template: >-
|
|
mdi:virtual-reality
|
|
|
|
# all_chores:
|
|
# unique_id: templateswitch.all_chores
|
|
# value_template: "{{ is_state('input_boolean.grocy_next_chores', 'on')}}"
|
|
# turn_on:
|
|
# action: homeassistant.turn_on
|
|
# data:
|
|
# entity_id:
|
|
# - input_boolean.grocy_next_chores
|
|
# turn_off:
|
|
# action: homeassistant.turn_off
|
|
# data:
|
|
# entity_id:
|
|
# - input_boolean.grocy_next_chores
|
|
|
|
# boys_room_chores:
|
|
# unique_id: templateswitch.boys_room_chores
|
|
# value_template: "{{ is_state('input_boolean.boys_room_next_chores', 'on')}}"
|
|
# turn_on:
|
|
# action: homeassistant.turn_on
|
|
# data:
|
|
# entity_id:
|
|
# - input_boolean.boys_room_next_chores
|
|
# turn_off:
|
|
# action: homeassistant.turn_off
|
|
# data:
|
|
# entity_id:
|
|
# - input_boolean.boys_room_next_chores
|
|
|
|
# computer_area_chores:
|
|
# unique_id: templateswitch.computer_area_chores
|
|
# value_template: "{{ is_state('input_boolean.computer_area_next_chores', 'on')}}"
|
|
# turn_on:
|
|
# action: homeassistant.turn_on
|
|
# data:
|
|
# entity_id:
|
|
# - input_boolean.computer_area_next_chores
|
|
# turn_off:
|
|
# action: homeassistant.turn_off
|
|
# data:
|
|
# entity_id:
|
|
# - input_boolean.computer_area_next_chores
|