With the death of Google Play Music I needed another way of managing my music library and playing it through our Sonos system. We opted to go with Plex and in general it has been a good experience.
Plex
We have a Mac Mini hooked up to our TV for those times we want to watch something on YouTube or some other service that our not-very-smart TV doesn’t support. This was clearly the logical choice for the Plex server as it is always on and has worked really well.
I keep a copy of my music on my main laptop. Despite not using Music (formerly iTunes) to play music, I use it to manage my music on the filesystem. When I purchase music (now from Bandcamp or Amazon if I can’t find it there), I import it into Music and then run an rsync script to refresh the copy on the Mac Mini. Plex automatically picks up the changes and my music is ready for playing.
After some work I was able to import my playlists from Google Play Music (GPM) into Plex as well. See my GPM playlist reconstructor and Plex playlist importer gists for some python code to help get you going in the right direction.
Now I can access music, including all of my playlists, from my phone and any web browser.
Sonos
Being able to play my music through our Sonos system is one of my primary use cases and one of the reasons why YouTube Music is such a poor substitute for Google Play Music. Plex integrates nicely with Sonos without requiring a Plex Pass.
When I first got Plex and Sonos connected two months ago everything worked perfectly. Then a few weeks ago Sonos stopped reliably finding my music which was incredibly frustrating. When the Sonos couldn’t see the Plex library I was still able to access the library from the Plex mobile app and the web interface. Indeed, everything except Sonos seemed happy to talk to the library.
We did all of the usual things like rebooting the devices. I followed the Plex and Sonos troubleshooting docs both from Plex and from Sonos. I even tried upgrading the Sonos system from S1 to S2 to no avail.
Eventually I found this Plex on Sonos forum post which goes into a lot of details about the nuances of how the two devices connect. We had a 9-year-old Netgear WNDR4500 wireless router that in theory supported UPnP but it didn’t seem to be working to allow Sonos to reliably access the Plex library. I set up a manual port forward which seemed to make things slightly more reliable but didn’t fix the problem.
Eventually out of frustration I bought a brand new TP-Link AX1800 wireless router to replace the Netgear and suddenly everything just started working and has been rock-solid for a week now. No special configuration & no fuss.
So if you’re having trouble getting your Sonos to talk to your Plex library and are using an old wireless router, consider upgrading it.