mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
alias: Nursery White Noise On
|
|
id: automation_nursery_white_noise_on
|
|
|
|
trigger:
|
|
- platform: state
|
|
entity_id: input_boolean.nursery_asleep
|
|
to: "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: media_player.volume_set
|
|
data:
|
|
volume_level: 0.25
|
|
target:
|
|
entity_id: media_player.ma_girls_room_hub
|
|
|
|
#- action: script.goodnight_kids_youtube_music
|
|
|
|
- action: media_player.shuffle_set
|
|
metadata: {}
|
|
data:
|
|
shuffle: false
|
|
target:
|
|
entity_id: media_player.ma_girls_room_hub
|
|
- action: media_player.repeat_set
|
|
metadata: {}
|
|
data:
|
|
repeat: "all"
|
|
target:
|
|
entity_id: media_player.ma_girls_room_hub
|
|
- action: music_assistant.play_media
|
|
metadata: {}
|
|
data:
|
|
media_id: library://track/101
|
|
media_type: track
|
|
enqueue: replace
|
|
target:
|
|
entity_id: media_player.ma_girls_room_hub
|