summaryrefslogtreecommitdiffstats
path: root/custom/scripts/play-playlist.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'custom/scripts/play-playlist.yaml')
-rw-r--r--custom/scripts/play-playlist.yaml39
1 files changed, 27 insertions, 12 deletions
diff --git a/custom/scripts/play-playlist.yaml b/custom/scripts/play-playlist.yaml
index 719958c..0823878 100644
--- a/custom/scripts/play-playlist.yaml
+++ b/custom/scripts/play-playlist.yaml
@@ -91,6 +91,15 @@ play_playlist:
target:
entity_id: '{{ current }}'
+ - service: media_player.shuffle_set
+ data:
+ shuffle: true
+ entity_id: '{{ media_player }}'
+# - service: media_player.repeat_set
+# data:
+# repeat: all
+# entity_id: '{{ media_player }}'
+
- conditions:
- condition: template
value_template: '{{ list == "asgard" }}'
@@ -105,6 +114,15 @@ play_playlist:
enqueue: play
media_content_id: "upnp://4d696e69-444c-164e-9d41-3c7c3f4af5b0/64%240%246%243/"
+ - service: media_player.shuffle_set
+ data:
+ shuffle: true
+ entity_id: '{{ media_player }}'
+# - service: media_player.repeat_set
+# data:
+# repeat: all
+# entity_id: '{{ media_player }}'
+
- conditions:
- condition: template
value_template: '{{ list == "download" }}'
@@ -119,6 +137,15 @@ play_playlist:
enqueue: play
media_content_id: "upnp://4d696e69-444c-164e-9d41-3c7c3f4af5b0/64%240%241%240/"
+ - service: media_player.shuffle_set
+ data:
+ shuffle: false
+ entity_id: '{{ media_player }}'
+# - service: media_player.repeat_set
+# data:
+# repeat: off
+# entity_id: '{{ media_player }}'
+
- conditions:
- condition: template
value_template: '{{ list == "custom" }}'
@@ -130,15 +157,3 @@ play_playlist:
- '{{ media_player }}'
data: '{{ custom }}'
-
- - service: media_player.shuffle_set
- data:
- shuffle: true
- target:
- entity_id: '{{ media_player }}'
-
- - service: media_player.repeat_set
- data:
- repeat: true
- target:
- entity_id: '{{ media_player }}'