mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 02:50:12 -04:00
More Sectionals!
This commit is contained in:
@@ -7,6 +7,8 @@ trigger:
|
||||
to: "off"
|
||||
|
||||
action:
|
||||
- service: media_player.media_stop
|
||||
entity_id: media_player.master_bedroom_clock
|
||||
- action: media_player.media_stop
|
||||
data: {}
|
||||
target:
|
||||
device_id: d534ab473e271021b537397cbc6fe700
|
||||
|
||||
|
||||
@@ -11,29 +11,33 @@ action:
|
||||
# data:
|
||||
# entity_id: input_select.master_bedroom_mode
|
||||
# option: 'Off'
|
||||
- service: media_player.volume_set
|
||||
- action: media_player.volume_set
|
||||
data:
|
||||
volume_level: 0.4
|
||||
volume_level: 0.3
|
||||
target:
|
||||
entity_id: media_player.master_bedroom_clock
|
||||
device_id: d534ab473e271021b537397cbc6fe700
|
||||
|
||||
- choose:
|
||||
- conditions:
|
||||
condition: state
|
||||
entity_id: input_boolean.kristy_home
|
||||
state: 'on'
|
||||
sequence:
|
||||
- service: media_player.play_media
|
||||
target:
|
||||
entity_id: media_player.master_bedroom_clock
|
||||
data:
|
||||
media_content_id: media-source://media_source/local/Sounds/relaxing/thunderstorm/thunderstorm.mp3
|
||||
media_content_type: audio/mpeg
|
||||
default:
|
||||
- service: media_player.play_media
|
||||
target:
|
||||
entity_id: media_player.master_bedroom_clock
|
||||
data:
|
||||
media_content_id: media-source://media_source/local/Sounds/relaxing/thunderstorm/thunderstorm.mp3
|
||||
media_content_type: audio/mpeg
|
||||
|
||||
#- service: script.goodnight_kids_youtube_music
|
||||
|
||||
- action: media_player.shuffle_set
|
||||
metadata: {}
|
||||
data:
|
||||
shuffle: false
|
||||
target:
|
||||
device_id: d534ab473e271021b537397cbc6fe700
|
||||
- action: media_player.repeat_set
|
||||
metadata: {}
|
||||
data:
|
||||
repeat: all
|
||||
target:
|
||||
device_id: d534ab473e271021b537397cbc6fe700
|
||||
- action: music_assistant.play_media
|
||||
metadata: {}
|
||||
data:
|
||||
media_id: library://track/101
|
||||
media_type: track
|
||||
enqueue: replace
|
||||
target:
|
||||
device_id: d534ab473e271021b537397cbc6fe700
|
||||
|
||||
|
||||
@@ -31,16 +31,14 @@ action:
|
||||
condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: media_player.ytube_music_player
|
||||
entity_id: media_player.ma_nursery_hub
|
||||
state: "playing"
|
||||
- condition: state
|
||||
entity_id: media_player.ytube_music_player
|
||||
attribute: remote_player_id
|
||||
state: "media_player.nursery_hub"
|
||||
- condition: state
|
||||
entity_id: media_player.ytube_music_player
|
||||
attribute: current_playlist_title
|
||||
state: "Kid's Goodnight Songs"
|
||||
|
||||
- action: media_player.volume_set
|
||||
data:
|
||||
volume_level: 0.4
|
||||
target:
|
||||
device_id: be28c87a729c28b9b27b540589895e20
|
||||
|
||||
#- service: script.goodnight_kids_youtube_music
|
||||
- action: media_player.shuffle_set
|
||||
@@ -57,7 +55,7 @@ action:
|
||||
|
||||
- action: music_assistant.play_media
|
||||
data:
|
||||
media_id: library://playlist/3
|
||||
media_id: library://playlist/5
|
||||
media_type: playlist
|
||||
enqueue: replace
|
||||
target:
|
||||
|
||||
@@ -8,5 +8,5 @@ trigger:
|
||||
|
||||
action:
|
||||
- service: media_player.turn_off
|
||||
entity_id: media_player.nursery_hub
|
||||
entity_id: media_player.ma_nursery_hub
|
||||
|
||||
|
||||
@@ -10,16 +10,12 @@ action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: media_player.ytube_music_player
|
||||
entity_id: media_player.ma_nursery_hub
|
||||
state: "playing"
|
||||
- condition: state
|
||||
entity_id: media_player.ytube_music_player
|
||||
attribute: remote_player_id
|
||||
state: "media_player.nursery_hub"
|
||||
sequence:
|
||||
- service: media_player.media_stop
|
||||
target:
|
||||
entity_id: media_player.ytube_music_player
|
||||
entity_id: media_player.ma_nursery_hub
|
||||
|
||||
#- service: input_select.select_option
|
||||
# data:
|
||||
|
||||
Reference in New Issue
Block a user