mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 11:00:14 -04:00
34 lines
839 B
YAML
34 lines
839 B
YAML
alias: Bridget Awake
|
|
id: automation_bridget_awake
|
|
mode: restart
|
|
#description:
|
|
|
|
trigger:
|
|
- platform: state
|
|
entity_id: input_boolean.bridget_in_bed
|
|
to: "off"
|
|
for: "00:05:00"
|
|
action:
|
|
- action: input_boolean.turn_on
|
|
entity_id: input_boolean.bridget_is_awake
|
|
|
|
- action: script.turn_on
|
|
entity_id: script.bridget_travel_sensor
|
|
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.girls_room_asleep
|
|
state: "on"
|
|
- condition: state
|
|
entity_id: binary_sensor.girls_room_occupied
|
|
state: "off"
|
|
sequence:
|
|
- action: input_boolean.turn_on
|
|
entity_id:
|
|
- input_boolean.bridget_in_bed
|
|
|
|
- action: input_boolean.turn_on
|
|
entity_id:
|
|
- input_boolean.bridget_is_awake
|