Mulitple urls as media_content_id

I’m trying to play a playlist from Tidal, but apparently I (still) haven’t got any clue how to use YAML :confused:

I have tried to write the media_content_id (list/array/dict) in a lot of different ways, but everytime I get this error:

One of my tries:

service: media_player.play_media
data:
  entity_id: media_player.office
  media_content_id:
    - wimp://76630186.mp4
    - wimp://47836880.mp4
  media_content_type: playlist

When I manually play a playlist, this is what I get (a playlist with 2 songs):

media_content_id: {"index": 0, "urls": [{"url": "wimp://76630186.mp4"}, {"url": "wimp://47836880.mp4"}]}
media_content_type: playlist

Can anyone help me?

Thanks a lot :slight_smile:

The error message tells you that media_content_id expects a string, but you provide a list.

I think you need to create the playlist on the media player side and then call the playlist from HA.

Okay, then I don’t understand the documentation:

I read it as I can pass multiple URLs or an ID.