Plex Automation - Start Movie After Motion Detected

I’m creating a series of routines that will be enabled when the family goes on vacation.

The different steps in the routine are:

  1. When motion is detected on one of the external house cameras
  2. Then turn on the TV
  3. Play a movie on plex
  4. Set volume high on the TV
  5. After 20 minutes, turn off plex and the TV

YAML at this point

- id: basementTVonMotion
  alias: "Turn on Basement TV when detect motion"
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.front_porch_motion
        - binary_sensor.backyard_east_motion
        - binary_sensor.backyard_west_motion
        - binary_sensor.southeast_corner_motion
      from: "off"
      to: "on"
  condition:
    - condition: time
      after: "21:00:00"
      before: "05:00:00"
  action:
    - service: media_player.select_source
      target:
        entity_id: media_player.fire_tv_192_168_1_184
        media_content_type: movie
        media_content_id: '{ "library_name: "Movies", "title": "Jobs" }'

I’m getting a couple of errors around the last couple of lines but I’m following the docs so I’m confused.

Have I done something incorrectly?

I dont know if it will help, but I am using node red to trigger a random Seinfeld episode. Heres what works for me

That’s cool. I’ll give it a try.

I’m ashamed to say it, but I haven’t spent time learning Node Red.

Thanks for the response.

Oh and I am sending that using the media_player.play_media service.