Hi Team,
Below is my config to get Spotify to play a playlist upon the scan of an NFC tag. It works fine, but I can’t work out where and how to put the shuffle command? No matter where I add shuffle: true, it seems to error out. Any ideas?
'alias: ‘Sonos Lounge: Play my playlist with with NFC tag scan’
description: ‘’
trigger:
- platform: event
event_type: sonosplaytag
event_data: {}
context:
user_id:
- hidden
condition: []
action: - service: media_player.play_media
target:
entity_id: media_player.sonos_living_room
data:
media_content_id: >-
spotify://965af1fb0590098f59df8130bb92257c/spotify:playlist:27b87GpV00rg4il8vsqwDB
media_content_type: spotify://playlist
metadata:
title: Richards Playlist
thumbnail: >-
https://mosaic.scdn.co/640/ab67616d0000b2732a17e9e73b8a11e8ca81476cab67616d0000b2735a0e1a2ebb21af9aaac4aa3cab67616d0000b27366919acb93950333962467f8ab67616d0000b273bb53ecc4d4e007f8c0464753
media_class: playlist
children_media_class: track
navigateIds:
- {}
- media_content_type: spotify://library
media_content_id: spotify://965af1fb0590098f59df8130bb92257c
- media_content_type: spotify://current_user_playlists
media_content_id: spotify://965af1fb0590098f59df8130bb92257c/current_user_playlists
- media_content_type: spotify://playlist
media_content_id: >-
spotify://965af1fb0590098f59df8130bb92257c/spotify:playlist:27b87GpV00rg4il8vsqwDB
mode: single’