mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
27 lines
556 B
YAML
27 lines
556 B
YAML
alias: Clint Asleep
|
|
id: automation_clint_asleep
|
|
|
|
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:
|
|
- service: input_boolean.turn_off
|
|
entity_id: input_boolean.clint_is_awake
|
|
|