mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 02:50:12 -04:00
194 lines
5.9 KiB
YAML
194 lines
5.9 KiB
YAML
platform: template
|
|
switches:
|
|
thermostat_fan_mode:
|
|
unique_id: templateswitch.thermostat_fan_mode
|
|
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:
|
|
- service: ecobee.set_fan_min_on_time
|
|
data:
|
|
fan_min_on_time: 60
|
|
turn_off:
|
|
- service: 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:
|
|
service: input_boolean.turn_on
|
|
data:
|
|
entity_id: input_boolean.master_bedroom_light_cycle
|
|
turn_off:
|
|
service: 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:
|
|
service: input_boolean.turn_on
|
|
data:
|
|
entity_id: input_boolean.nursery_light_cycle
|
|
turn_off:
|
|
service: 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:
|
|
service: input_boolean.turn_on
|
|
data:
|
|
entity_id: input_boolean.front_room_light_cycle
|
|
turn_off:
|
|
service: 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:
|
|
service: input_boolean.turn_on
|
|
data:
|
|
entity_id: input_boolean.great_room_light_cycle
|
|
turn_off:
|
|
service: 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:
|
|
service: input_boolean.turn_on
|
|
data:
|
|
entity_id: input_boolean.computer_area_light_cycle
|
|
turn_off:
|
|
service: 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:
|
|
service: select.select_option
|
|
target:
|
|
entity_id:
|
|
- select.black_bed_wled_preset
|
|
- select.white_bed_wled_preset
|
|
data:
|
|
option: Bouncing Balls
|
|
turn_off:
|
|
service: 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:
|
|
service: homeassistant.turn_on
|
|
data:
|
|
entity_id:
|
|
- switch.vr_headset_plug
|
|
turn_off:
|
|
service: 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:
|
|
# service: homeassistant.turn_on
|
|
# data:
|
|
# entity_id:
|
|
# - input_boolean.grocy_next_chores
|
|
# turn_off:
|
|
# service: homeassistant.turn_off
|
|
# data:
|
|
# entity_id:
|
|
# - input_boolean.grocy_next_chores
|
|
|
|
# blue_room_chores:
|
|
# unique_id: templateswitch.blue_room_chores
|
|
# value_template: "{{ is_state('input_boolean.blue_room_next_chores', 'on')}}"
|
|
# turn_on:
|
|
# service: homeassistant.turn_on
|
|
# data:
|
|
# entity_id:
|
|
# - input_boolean.blue_room_next_chores
|
|
# turn_off:
|
|
# service: homeassistant.turn_off
|
|
# data:
|
|
# entity_id:
|
|
# - input_boolean.blue_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:
|
|
# service: homeassistant.turn_on
|
|
# data:
|
|
# entity_id:
|
|
# - input_boolean.computer_area_next_chores
|
|
# turn_off:
|
|
# service: homeassistant.turn_off
|
|
# data:
|
|
# entity_id:
|
|
# - input_boolean.computer_area_next_chores |