mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
54 lines
1.5 KiB
YAML
54 lines
1.5 KiB
YAML
alias: Continue Nursery Noise
|
|
id: automation_continue_nursery_noise
|
|
trigger:
|
|
- platform: state
|
|
entity_id: media_player.nursery_hub
|
|
from: "playing"
|
|
condition:
|
|
- condition: state
|
|
entity_id: input_boolean.nursery_asleep
|
|
state: 'on'
|
|
- condition: or
|
|
conditions:
|
|
- condition: and
|
|
conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.emmett_in_bed
|
|
state: 'on'
|
|
- condition: state
|
|
entity_id: input_boolean.emmett_home
|
|
state: 'on'
|
|
- condition: and
|
|
conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.bridget_in_bed
|
|
state: 'on'
|
|
- condition: state
|
|
entity_id: input_boolean.bridget_home
|
|
state: 'on'
|
|
- condition: and
|
|
conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.ebin_in_bed
|
|
state: 'on'
|
|
- condition: state
|
|
entity_id: input_boolean.ebin_home
|
|
state: 'on'
|
|
- condition: state
|
|
entity_id: input_select.nursery_mode
|
|
state: 'Night on'
|
|
action:
|
|
- service: input_select.select_option
|
|
data:
|
|
entity_id: input_select.google_home
|
|
option: 'Nursery'
|
|
- service: input_select.select_option
|
|
data:
|
|
entity_id: input_select.ambient_sound
|
|
option: 'Random White Noise'
|
|
- service: input_number.set_value
|
|
data:
|
|
entity_id: input_number.volume_ambientsounds
|
|
value: '0.35'
|
|
- service: script.ambientsounds
|