mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
39 lines
824 B
YAML
39 lines
824 B
YAML
alias: Emmett In Bed
|
|
id: automation_emmett_in_bed
|
|
mode: restart
|
|
|
|
trigger:
|
|
- platform: state
|
|
entity_id: binary_sensor.white_bed_occupied
|
|
to: "on"
|
|
for: "00:10:00"
|
|
- platform: state
|
|
entity_id: input_boolean.kids_bedtime
|
|
to: "on"
|
|
- platform: homeassistant
|
|
event: start
|
|
|
|
condition:
|
|
- condition: state
|
|
entity_id:
|
|
- input_boolean.emmett_home
|
|
- input_boolean.kids_bedtime
|
|
state: "on"
|
|
- condition: state
|
|
entity_id:
|
|
- binary_sensor.white_bed_occupied
|
|
state: "on"
|
|
for: "00:10:00"
|
|
- condition: state
|
|
entity_id: input_boolean.emmett_in_bed
|
|
state: "off"
|
|
#- condition: state
|
|
# entity_id: binary_sensor.black_bed_occupied
|
|
# state: 'on'
|
|
# for:
|
|
# minutes: 5
|
|
|
|
action:
|
|
- action: homeassistant.turn_on
|
|
entity_id: input_boolean.emmett_in_bed
|