Play a plex playlist

New user trying to get plex to play a playlist. Some googling the below should work but some results say plex integration is broken. Should this work?
When I run this automation nothing happens.

alias: Playlist house
description: ""
trigger:
  - platform: event
    event_type: Playlist house
condition: []
action:
  - service: media_player.play_media
    data:
      media_content_id: "{ \"playlist_name\": \"House\", \"shuffle\": \"1\" }"
      media_content_type: PLAYLIST
    target:
      entity_id:
        - media_player.plex_plex_for_linux_plex
        - media_player.plex_plex_media_player_plex
mode: single

Try doing the service call directly in developer tools / services to see if that works.

It does not.

I have a nas on the local network with music on it and I’m just trying to start playing it in random order from either my HA server or from some other server on my proxmox server. Is there some other way to do this?

I’d do a couple of things.

  1. Are there any errors in the log when you do that service call
  2. Are you able to manually play music? From the media player you should be able to browse and play.
  3. If you are what shows up the the attributes of the media player. Go to developer tools / states. That may give you info for what you need to send.
  4. If the media player is playing can you stop it using a service call?
  1. From Log:
ERROR (MainThread) [homeassistant.components.automation.playlist_house] Error while executing automation automation.playlist_house: Only presets, media from media browser and http URLs are supported
  1. Plex plays fine over amp so I know it works.

  2. Developer tools / states has lots of stuff in it and I dont know what I would be looking for.

  3. Overview page has plex client on another server playing but I cant control it or dont know how.

Unfortunately, it looks like the plex integration is no longer functional. I’ve tried with the plex amp as well and the controls show up but pressing any of them just results in errors in the log.

Can someone recommend a music player that will work with Home Assistant? I have a usb audio device plugged into my proxmox server connected to a monoprice 6 zone amp.

Based on the docs, I think this line is wrong:

      media_content_id: "{ \"playlist_name\": \"House\", \"shuffle\": \"1\" }"

Try removing all those slashes:

      media_content_id: "{ "playlist_name":  "House", "shuffle": "1" }"

The integration does work with the plex amp. The trick to getting the controls to show up was to start media playing on it then click the scan clients button. Regular plex clients are not controllable.