mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
125 lines
3.7 KiB
YAML
125 lines
3.7 KiB
YAML
id: set_house_to_late_morning
|
|
alias: Set House to Late Morning
|
|
mode: single
|
|
|
|
# platform: tod
|
|
# name: Late Morning
|
|
# after: '09:00'
|
|
# before: '12:00'
|
|
|
|
trigger:
|
|
- platform: state
|
|
entity_id: binary_sensor.late_morning
|
|
to: "on"
|
|
|
|
condition:
|
|
- condition: or
|
|
conditions:
|
|
- condition: state
|
|
entity_id: binary_sensor.late_morning
|
|
state: "on"
|
|
- condition: state
|
|
entity_id: input_select.time_of_day
|
|
state: Late Morning
|
|
|
|
action:
|
|
- action: input_select.select_option
|
|
data:
|
|
entity_id: input_select.time_of_day
|
|
option: Late Morning
|
|
|
|
# Everyone should be awake by now...
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.clint_home
|
|
state: "on"
|
|
- condition: state
|
|
entity_id: input_boolean.clint_in_bed
|
|
state: "on"
|
|
sequence:
|
|
- action: homeassistant.turn_off
|
|
entity_id: input_boolean.clint_in_bed
|
|
- action: homeassistant.turn_on
|
|
entity_id: input_boolean.clint_is_awake
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.emmett_home
|
|
state: "on"
|
|
- condition: state
|
|
entity_id: input_boolean.emmett_in_bed
|
|
state: "on"
|
|
sequence:
|
|
- action: homeassistant.turn_off
|
|
entity_id: input_boolean.emmett_in_bed
|
|
- action: homeassistant.turn_on
|
|
entity_id: input_boolean.emmett_is_awake
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.bridget_home
|
|
state: "on"
|
|
- condition: state
|
|
entity_id: input_boolean.bridget_in_bed
|
|
state: "on"
|
|
sequence:
|
|
- action: homeassistant.turn_off
|
|
entity_id: input_boolean.bridget_in_bed
|
|
- action: homeassistant.turn_on
|
|
entity_id: input_boolean.bridget_is_awake
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.kristy_home
|
|
state: "on"
|
|
- condition: state
|
|
entity_id: input_boolean.kristy_in_bed
|
|
state: "on"
|
|
sequence:
|
|
- action: homeassistant.turn_off
|
|
entity_id: input_boolean.kristy_in_bed
|
|
- action: homeassistant.turn_on
|
|
entity_id: input_boolean.kristy_is_awake
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.marshall_home
|
|
state: "on"
|
|
- condition: state
|
|
entity_id: input_boolean.marshall_in_bed
|
|
state: "on"
|
|
sequence:
|
|
- action: homeassistant.turn_off
|
|
entity_id: input_boolean.marshall_in_bed
|
|
- action: homeassistant.turn_on
|
|
entity_id: input_boolean.marshall_is_awake
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.tess_home
|
|
state: "on"
|
|
- condition: state
|
|
entity_id: input_boolean.tess_in_bed
|
|
state: "on"
|
|
sequence:
|
|
- action: homeassistant.turn_off
|
|
entity_id: input_boolean.tess_in_bed
|
|
- action: homeassistant.turn_on
|
|
entity_id: input_boolean.tess_is_awake
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.ebin_home
|
|
state: "on"
|
|
- condition: state
|
|
entity_id: input_boolean.ebin_in_bed
|
|
state: "on"
|
|
sequence:
|
|
- action: homeassistant.turn_off
|
|
entity_id: input_boolean.ebin_in_bed
|
|
- action: homeassistant.turn_on
|
|
entity_id: input_boolean.ebin_is_awake
|
|
|
|
- delay: "00:00:30"
|