summaryrefslogtreecommitdiffstats
path: root/custom/scripts/play-playlist.yaml
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2023-06-23 04:44:16 +0400
committerSuren A. Chilingaryan <csa@suren.me>2023-06-23 04:44:16 +0400
commit2674a5226e13a68b1ee570aef552e78b7a7337b8 (patch)
treecaf3b55045249cd124717109a652506576ff2cfc /custom/scripts/play-playlist.yaml
parent756a33999df9255deb1c08a443a5621d94da0126 (diff)
downloadhass-2674a5226e13a68b1ee570aef552e78b7a7337b8.tar.gz
hass-2674a5226e13a68b1ee570aef552e78b7a7337b8.tar.bz2
hass-2674a5226e13a68b1ee570aef552e78b7a7337b8.tar.xz
hass-2674a5226e13a68b1ee570aef552e78b7a7337b8.zip
Massive update: Few fixes, more new integrations & extensions
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 }}'