mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 11:00:14 -04:00
26 lines
578 B
YAML
26 lines
578 B
YAML
alias: Kristy Asleep
|
|
id: automation_kristy_asleep
|
|
|
|
initial_state: "on"
|
|
trigger:
|
|
- platform: state
|
|
entity_id: input_boolean.kristy_in_bed
|
|
to: "on"
|
|
for:
|
|
minutes: 15
|
|
condition:
|
|
- condition: and
|
|
conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.kristy_is_awake
|
|
state: "on"
|
|
- condition: state
|
|
entity_id: input_boolean.kristy_home
|
|
state: "on"
|
|
- condition: time
|
|
after: "20:30:00"
|
|
before: "04:00:00"
|
|
action:
|
|
- action: input_boolean.turn_off
|
|
entity_id: input_boolean.kristy_is_awake
|