I had some code which would store the current player queue, then it would flip over to Radio 4 for the news, and then reload the queue and carry on.
It seems that after the MA update, this is now no longer working and I’m bashing my head against a brick wall.
The original project as I noted it is here so you can see what it did - Michelle Knight's Home Assistant Pages
Initially, it seemed that the API needed authentication so I changed the yaml file to the following, but it seems to only be reporting the current and next track, and that’s it.
OK - so from what I’m reading, this is now behaviour which is by design. There is now no way to return the whole queue, all I will ever get from the calls is current and next track… and that’s it.
There is no way to “save” or “pause” the queue in order to do something else, and then return to it.
My thinking is now to create a dummy player somehow, but the player will have to be WITHIN music assistant in order to respect the transfer queue option. An empty group player queue fails because there aren’t any players in it.
WHY?!?!?! This is a complete pain that breaks a completely legitimate use case.
The script has been updated. It does away with the restapi, but requires a “dummy” player to shift the queue to. I’ve included instructions to turn a Pi Zero PiCorePlayer into a dumb player if needed. If you’ve seen the page before, you might need to do a hard refresh. https://msknight.com/ha/automation-9.html