Plex MEDIA_PLAYER.PLAY_MEDIA

I’m trying out the MEDIA_PLAYER.PLAY_MEDIA service on plex media server.

I have a script set up like this:

start_plex:
  alias: Start plex
  sequence:
  - service: plex.scan_for_clients
  - delay:
      hours: 0
      minutes: 0
      seconds: 10
      milliseconds: 0
  - service: media_player.play_media
    data:
      media_content_id: '{ "library_name": "Movies", "title": "No Time to Die" }'
      media_content_type: movie
    target:
      entity_id: media_player.plex_plex_for_samsung_tv_2020
  mode: single

But when I try to run it I only get:

script/start_plex Service not found

Anyone done this?

How are you calling this script? The syntax is usually script.start_plex instead of using a slash.

Right now I’m just calling it from the script page. I figured out the service not found - as my !include script.yaml in configuration was pointing to the wrong file location.

Now it starts - but it does not start a movie on plex. Is it just possible with local server and players maybe?

As of now the HA host must be able to reach the Plex client directly on the network. This usually implies it must be local.

I see :slight_smile: I will give it a go locally then :slight_smile: