#Finding URL for playlist for use in automation

1 messages · Page 1 of 1 (latest)

royal pawn
#

I have an m3u playlist in SMB storage linked in to Music Assistant. I have succeeded in automating various youtube and radio channels, but I can't get the playlists to automate. I have button card, tap behaviour "perform action" and the action being "Media Player: Play Media" the target is set to my office speakers. I've tried various Content ID settings and the content type I've put as playlist. Various suggestions have included...

smb://LBAprYaX/track/0-playlists/Alan%20Parsons.m3u
Or
content://filesystem_smb--LBAprYaX/track/0-playlists/Alan%20Parsons.m3u
Or
media://filesystem_smb--LBAprYaX/track/0-playlists/Alan%20Parsons.m3u

Error received on pushing the button is - "Failed to perform the action media_player/play_media. [50@0] {load} No such playlist"

#

Finding URL for playlist for use in automation

rugged jewel
#

Did you manage to find an answer to this question?

twilit steppe
#

with music asssistant platlists you can use
music_assistant.play_media set to playlist with just the platlist name

target:
  entity_id: media_player.YOUR_MEDIA_PLAYER
data:
  media_type: playlist
  media_id: YOUR_PLAYLIST_NAME

as long as music assistant sees it as a playlist then it should find it

rugged jewel
#

Nice thanks! Does the media player have to be one in Music Assistant, or can it be a Home Assistant one?

twilit steppe
#

you should use the music assistant media player

rugged jewel
#

Alright, thanks! What's the action id to stop the media after?

twilit steppe
#

media_player.media_stop does that fine

metadata: {}
data: {}
target:
  entity_id: media_player.YOUR_MEDIA_PLAYER