Home assistant: start Plex radio

Hello ,
I successfully created a script in home assistant to start a playlist on my plexamp headless setup (on raspberry).

What I’m not able to make is to create a script to launch a radio.. can you please help?

These are the parameters I used for the playlist:

alias: Avvia Playlist Plexamp
sequence:

  • target:
    entity_id: media_player.plex_plexamp_rotel_plexamp
    data:
    media_content_type: PLAYLIST
    media_content_id: “{ "playlist_name": "mystic rock", "shuffle": "1" }”
    action: media_player.play_media
    mode: single
1 Like

I cannot answer your question but I need to know what is in the mystic rock playlist!

1 Like

Ahaha sure, I have something like:
Wicked game (Chris Isaak)
Bang bang (Nancy Sinatra)
I’m not in love (10cc)
Etc…