mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
53 lines
1.4 KiB
YAML
53 lines
1.4 KiB
YAML
initial_state: "on"
|
|
alias: "Bedtime"
|
|
id: automation_bedtime
|
|
trigger:
|
|
# - platform: homeassistant
|
|
# event: start
|
|
|
|
- platform: state
|
|
entity_id:
|
|
- input_boolean.kristy_in_bed
|
|
- input_boolean.clint_in_bed
|
|
to: "on"
|
|
condition:
|
|
- condition: and
|
|
conditions:
|
|
- condition: or
|
|
conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.kristy_home
|
|
state: "off"
|
|
- condition: and
|
|
conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.kristy_in_bed
|
|
state: "on"
|
|
- condition: state
|
|
entity_id: input_boolean.kristy_home
|
|
state: "on"
|
|
- condition: or
|
|
conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.clint_home
|
|
state: "off"
|
|
- condition: and
|
|
conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.clint_in_bed
|
|
state: "on"
|
|
- condition: state
|
|
entity_id: input_boolean.clint_home
|
|
state: "on"
|
|
action:
|
|
- action: input_boolean.turn_on
|
|
entity_id:
|
|
- input_boolean.bedtime
|
|
- input_boolean.teens_bedtime
|
|
- input_boolean.kids_bedtime
|
|
- action: input_select.select_option
|
|
target:
|
|
entity_id: input_select.automatic_light_profile
|
|
data:
|
|
option: Nightlight
|