Is it possible to play a playlist locally or from another server?

For several days I have been reading on the forum and I find nothing. I use Plex, Logitech Squeezebox and Mopidy. I would like the playlist to be made from .mp3 files. I can play a local file.
THX.

Are the mp3s scanned into lms?

Yes.
I have several mp3 files in LMS.

OK then go to the LMS web interface and make them into a playlist. Then you can play the playlist from HA.

Thanks for the quick response.
They are on a playlist but I don’t know how to play the playlist from HA.

I think from my playing around, something like (assuming this is an action in an automation):

action:
  service: media_player.play_media
    data:  
      entity_id: media_player.kitchen
      media_content_id: Caravan 
      media_content_type: playlist

where Caravan is the name of my playlist.

Not working. I think it should be a link to LMS at media_content_id. How does automation know that Caravan is an LMS playlist?

It doesn’t. It sends the command to LMS, and LMS knows what it’s playlists are.

It works for me in a service call from the services tab in the dev tools of HA.

I think it can’t work that way.

To play a song I use this:

image

media_player.squeezelite is the media player that uses the squeezebox platform. It does not work on another player (google home, chromecast, mopidy).

I can also play a local file (saved in HA).
But in no case can I play a playlist.

What is your playlist named in the LMS ui?

There are several: Like a Virgin, Classic, Rock, Best Ballads …

@ nickrout

action:
  service: media_player.play_media
    data:  
      entity_id: media_player.kitchen
      media_content_id: Caravan 
      media_content_type: playlist

It really works. With the mention that the media player using the squeezebox platform must be used.
Is it possible for an LMS album to be played on another media player?

1 Like

There is a chromecast addon for LMS I think, if you add that to LMS your chromecast device will look just like a squeezeplayer. At least I believe so, I haven’t actually tried it myself.

Other than that you’ll need to google.

1 Like

This works with Vera. I hope it works with HA too.

Chromecast, Google Home devices (other than native ones; for example for a Chromecat there will be two media players, only the one created in the LMS can play the media from the LMS) appear as media players in the HA and can play the media on the LMS.
There are also media players using the DLNA protocol.

Any computer and/or android device can be a squeezebox player if you want it to be. Just run squeezelite on windows/linux MacOS and https://play.google.com/store/apps/details?id=de.bluegaspode.squeezeplayer on android.

I’m having problems getting this to work. I have a Logitech Media Server playlist called “Compilation”. I can play it manually on media_player.lounge_speaker (a Google Home Speaker), using the LMS web UI, but when I execute the action below I only get a chime from the speaker (indicating that it’s about to play something), but nothing is played.
If I try the same action on a Squeezebox Boom nothing gets played either.

action:
  - service: media_player.play_media
    data:
      media_content_id: Compilation
      media_content_type: playlist
    target:
      entity_id:
        - media_player.lounge_speaker

Any ideas??

try this:

service: squeezebox.call_method
data:
  command: playlist
  entity_id: media_player.lounge_speaker
  parameters:
    - resume
    - Compilation

Many thanks - that works!

Another question - is there a command which will play a random mix on a specific squeezebox player?