#Starting a movie on Plex on Roku TV

1 messages · Page 1 of 1 (latest)

onyx moon
#

For the life of me, I cannot get this to work. I've been able to get youtube and spotify to trigger specific videos / songs with this sort of thing :

      entity_id: "{{ mp_entity }}"
      extra:
        content_id: https://open.spotify.com/{{media_type}}/{{ media_id }}
        content_type:
          "[object Object]": null
      media:
        media_content_id: 22297
        media_content_type: app
        metadata: {}
    action: media_player.play_media```

and am looking for an equivalent for plex but outside of being able to boot plex up, I can't get it to start a specific piece of media.

What compounds the issue is that we have multiple accounts so ideally, the solution can choose a username.

I've tried linking to a specific id
        ```media_content_id: plex://[redacted_server_id]/31452
        media_content_type: movie```

also tried this type of syntax
           ``` - media_content_type: movie
              media_content_id:
                library_name: Movies
                title: aMovieName
                username: myUserName```

or this sort of thing as well    data:
      ```media:
        media_content_id: "{ \"library_name\": \"Movies\", \"title\": \"Rocky\")"
        media_content_type: movie```

Not sure what's up but none of these work 🙁

Any help appreciated!
unborn viper
#

Did you try the UI editor for media_player.play_media ?

onyx moon
#

the plex server is run remotely so I don't have access to it's contents as media directly through the UI editor with home assistant while sending the command to the roku tv.

I do get it if I try via a plex entity but that also doesn't work sadly 🙁

#

it's how I got the above plex id

unborn viper
#

hm, not sure then.

#

I would assume if roku could do this it would provide the files through the media library

#

but this seems pretty hacky, not that familiar with it, sorry

onyx moon
#

the youtube or spotify examples work via deeplinks

#

but I can't seem to get that to work w/ plex. The account log in screen isn't helping cause I might have something that would otherwise work and I don't know cause of that :/ Would love a functional example of someone getting something similar working, would reduce the scope of what I need to try out lol