mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
alias: Teens Asleep
|
|
id: automation_teens_asleep
|
|
mode: queued
|
|
|
|
trigger:
|
|
- platform: homeassistant
|
|
event: start
|
|
- platform: state
|
|
entity_id:
|
|
- input_boolean.marshall_is_awake
|
|
- input_boolean.tess_is_awake
|
|
- input_boolean.asleep
|
|
to: "off"
|
|
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: or
|
|
conditions:
|
|
- condition: and
|
|
conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.marshall_is_awake
|
|
state: "off"
|
|
- condition: state
|
|
entity_id: input_boolean.marshall_home
|
|
state: "on"
|
|
- condition: and
|
|
conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.tess_is_awake
|
|
state: "off"
|
|
- condition: state
|
|
entity_id: input_boolean.tess_home
|
|
state: "on"
|
|
sequence:
|
|
- action: input_boolean.turn_on
|
|
data:
|
|
entity_id: input_boolean.teens_asleep
|
|
|
|
default:
|
|
- action: input_boolean.turn_off
|
|
data:
|
|
entity_id: input_boolean.teens_asleep
|