mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
42 lines
1011 B
YAML
42 lines
1011 B
YAML
alias: Master Bedroom White Noise On
|
|
id: automation_master_bedroom_white_noise_on
|
|
|
|
trigger:
|
|
- platform: state
|
|
entity_id: input_boolean.master_bedroom_asleep
|
|
to: "on"
|
|
|
|
action:
|
|
#- action: input_select.select_option
|
|
# data:
|
|
# entity_id: input_select.master_bedroom_mode
|
|
# option: 'Off'
|
|
- action: media_player.volume_set
|
|
data:
|
|
volume_level: 0.25
|
|
target:
|
|
entity_id: media_player.ma_master_bedroom_clock
|
|
|
|
#- action: script.goodnight_kids_youtube_music
|
|
|
|
- action: media_player.shuffle_set
|
|
metadata: {}
|
|
data:
|
|
shuffle: false
|
|
target:
|
|
entity_id: media_player.ma_master_bedroom_clock
|
|
- action: media_player.repeat_set
|
|
metadata: {}
|
|
data:
|
|
repeat: "all"
|
|
target:
|
|
entity_id: media_player.ma_master_bedroom_clock
|
|
- action: music_assistant.play_media
|
|
metadata: {}
|
|
data:
|
|
media_id: library://track/101
|
|
media_type: track
|
|
enqueue: replace
|
|
target:
|
|
entity_id: media_player.ma_master_bedroom_clock
|