mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
27 lines
586 B
YAML
27 lines
586 B
YAML
alias: Clint Asleep
|
|
id: automation_clint_asleep
|
|
#description:
|
|
|
|
initial_state: "on"
|
|
trigger:
|
|
- platform: state
|
|
entity_id: input_boolean.clint_in_bed
|
|
to: "on"
|
|
for:
|
|
minutes: 15
|
|
condition:
|
|
- condition: and
|
|
conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.clint_is_awake
|
|
state: "on"
|
|
- condition: state
|
|
entity_id: input_boolean.clint_home
|
|
state: "on"
|
|
- condition: time
|
|
after: "21:00:00"
|
|
before: "04:00:00"
|
|
action:
|
|
- action: input_boolean.turn_off
|
|
entity_id: input_boolean.clint_is_awake
|