mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
blue_room to boys_room
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
alias: Nursery Bedtime Button
|
||||
id: automation_nursery_bedtime_button
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_button.nursery_bedtime
|
||||
|
||||
condition: []
|
||||
|
||||
action:
|
||||
- action: input_select.select_option
|
||||
data:
|
||||
option: Nightlight
|
||||
target:
|
||||
entity_id: input_select.nursery_mode
|
||||
|
||||
# - action: input_select.select_option
|
||||
# data:
|
||||
# option: Running Rainbow
|
||||
# target:
|
||||
# entity_id: input_select.nursery_wled
|
||||
|
||||
# - action: automation.trigger
|
||||
# target:
|
||||
# entity_id: automation.nursery_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_hub
|
||||
state: "playing"
|
||||
|
||||
- action: media_player.volume_set
|
||||
data:
|
||||
volume_level: 0.4
|
||||
target:
|
||||
entity_id: media_player.ma_girls_room_hub
|
||||
|
||||
#- action: script.goodnight_kids_youtube_music
|
||||
- action: media_player.shuffle_set
|
||||
data:
|
||||
shuffle: false
|
||||
target:
|
||||
entity_id: media_player.ma_girls_room_hub
|
||||
|
||||
- action: media_player.repeat_set
|
||||
data:
|
||||
repeat: all
|
||||
target:
|
||||
entity_id: media_player.ma_girls_room_hub
|
||||
|
||||
- action: music_assistant.play_media
|
||||
data:
|
||||
media_id: library://playlist/5
|
||||
media_type: playlist
|
||||
enqueue: replace
|
||||
target:
|
||||
entity_id: media_player.ma_girls_room_hub
|
||||
Reference in New Issue
Block a user