I am building a home automation controller, repurposing a B&O Beosound 5 as the control unit, which is driven by a Pi with a python backend and angular UI.
I am using v1 sonos connect as my music players. Apple music is setup and working correctly via the sonos app.
I am able to enumerate albums/playlists etc using the Apple music rest API, with a dev & user token. If I send a play with a URI for a single track, it works. I am using soco as the library to send the play command.
If I send a URI for a playlist or Album from my library, it succeeds in sending it, but then nothing plays and the App shows the URI with a message that there is an issue.
uri = f"x-rincon-cpcontainer:1004206capple:libraryalbum:{library_album_id}sid=204&flags=8300&sn=1"
Question
What is the correct URI format for playlists & albums for Apple Music?
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
