mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 11:00:14 -04:00
35 lines
724 B
YAML
35 lines
724 B
YAML
alias: Bridget In Bed
|
|
id: automation_bridget_in_bed
|
|
mode: restart
|
|
#description:
|
|
|
|
trigger:
|
|
- trigger: state
|
|
entity_id: binary_sensor.black_bed_occupied
|
|
to: "on"
|
|
for: "00:10:00"
|
|
- trigger: state
|
|
entity_id: input_boolean.kids_bedtime
|
|
to: "on"
|
|
- trigger: homeassistant
|
|
event: start
|
|
|
|
condition:
|
|
- condition: state
|
|
entity_id:
|
|
- input_boolean.bridget_home
|
|
- input_boolean.kids_bedtime
|
|
state: "on"
|
|
- condition: state
|
|
entity_id:
|
|
- binary_sensor.black_bed_occupied
|
|
state: "on"
|
|
for: "00:05:00"
|
|
- condition: state
|
|
entity_id: input_boolean.bridget_in_bed
|
|
state: "off"
|
|
|
|
action:
|
|
- action: homeassistant.turn_on
|
|
entity_id: input_boolean.bridget_in_bed
|