mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
38 lines
897 B
YAML
38 lines
897 B
YAML
alias: Girls Room White Noise On
|
|
id: automation_girls_room_white_noise_on
|
|
|
|
trigger:
|
|
- platform: state
|
|
entity_id: input_boolean.girls_room_asleep
|
|
to: "on"
|
|
|
|
- platform: state
|
|
entity_id: media_player.ma_girls_room_hub
|
|
to: "idle"
|
|
for: 00:00:05
|
|
|
|
condition:
|
|
- alias: "Is the girls' room asleep?"
|
|
condition: state
|
|
entity_id: input_boolean.girls_room_asleep
|
|
state: "on"
|
|
|
|
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: media_player.ma_girls_room_hub
|
|
state: "playing"
|
|
sequence:
|
|
- action: media_player.media_stop
|
|
target:
|
|
entity_id: media_player.ma_girls_room_hub
|
|
|
|
- action: script.search_and_play_playlist
|
|
data:
|
|
speaker: media_player.ma_girls_room_hub
|
|
search_term: Clever Kids Goodnight Songs
|
|
volume: 0.25
|
|
repeat: all
|
|
shuffle: false |