mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
63 lines
1.4 KiB
YAML
63 lines
1.4 KiB
YAML
alias: Girls Room Bedtime Button
|
|
id: automation_girls_room_bedtime_button
|
|
|
|
trigger:
|
|
- platform: state
|
|
entity_id: input_button.girls_room_bedtime
|
|
|
|
condition: []
|
|
|
|
action:
|
|
- action: input_select.select_option
|
|
data:
|
|
option: Nightlight
|
|
target:
|
|
entity_id: input_select.girls_room_mode
|
|
|
|
# - action: input_select.select_option
|
|
# data:
|
|
# option: Running Rainbow
|
|
# target:
|
|
# entity_id: input_select.girls_room_wled
|
|
|
|
# - action: automation.trigger
|
|
# target:
|
|
# entity_id: automation.girls_room_wled_changed
|
|
|
|
#- condition:
|
|
- alias: "Do not restart the music if it is already playing"
|
|
condition: not
|
|
conditions:
|
|
condition: and
|
|
conditions:
|
|
- condition: state
|
|
entity_id: media_player.ma_girls_room_clock
|
|
state: "playing"
|
|
|
|
- action: media_player.volume_set
|
|
data:
|
|
volume_level: 0.4
|
|
target:
|
|
entity_id: media_player.ma_girls_room_clock
|
|
|
|
#- action: script.goodnight_kids_youtube_music
|
|
- action: media_player.shuffle_set
|
|
data:
|
|
shuffle: false
|
|
target:
|
|
entity_id: media_player.ma_girls_room_clock
|
|
|
|
- action: media_player.repeat_set
|
|
data:
|
|
repeat: all
|
|
target:
|
|
entity_id: media_player.ma_girls_room_clock
|
|
|
|
- action: music_assistant.play_media
|
|
data:
|
|
media_id: library://playlist/5
|
|
media_type: playlist
|
|
enqueue: replace
|
|
target:
|
|
entity_id: media_player.ma_girls_room_clock
|