Plex playlists media_player not playing

I’ve tried getting something to play on Plex (Android client) using the code below:

{
“entity_id”: “media_player.plex_aec1a5408e7cfeae_com_plexapp_android”,
“media_content_id”: “{/“library_name/” : /“Music/”, /“artist_name/” : /“OneRepublic/”, /“album_name/” : /“Native/”, /“track_name/” : /“Preacher/”, /“shuffle/”: /“0/” }”,
“media_content_type”: “MUSIC”
}
… removing the " before the 2nd { gives an error message about the / – which is what I understood the syntax should be?

This variation also does not work:
{
“entity_id”: “media_player.plex_aec1a5408e7cfeae_com_plexapp_android”,
“media_content_id”: {
“library_name”: “Music”,
“artist_name”: “OneRepublic”,
“album_name”: “Native”,
“track_name”: “Preacher”,
“shuffle”: “0”
},
“media_content_type”: “MUSIC”
}
… no errors, just doesn’t do anything.

Does anyone use this and could you possibly post a working example thereof please?

Related

I’m trying to do the same thing. My first error was using the wrong quote marks. When I copied from the example from https://home-assistant.io/components/media_player.plex/ some quote marks were upside down. So this is my code:

https://pastebin.com/qfungTb6

It seems to work but I get other errors…
https://pastebin.com/wXBEqVFa

I wish I knew, I’m struggling with Plex clients and nothing seems to work.
My media_player configuration :

  • platform: plex
    entity_namespace: ‘plex’
    include_non_clients: true
    use_episode_art: true
    show_all_controls: true
    use_custom_entity_ids: true

entity_id keeps on changing for the same machine (web browser or android app)
android app doesn’t register as a client but as sessions, so I can’t see it…

There must be something wrong I do with my conf but what ???

Nobody has a clue about this ?

Is there someone using a (fake-)Android TV box with the plex Android Client ? And made it work as a client and not only opening sessions ?