Music Assistant Queue not coming back

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.

input_number:
  office_player_current_index:
    name: office_player_current_index
    initial: 0
    min: 0
    max: 5000
    step: 1

rest_command:
  ma_get_full_office_queue:
    url: "http://192.168.0.9:8095/api?token=token key"
    method: POST
    headers:
      accept: "application/json, text/html"
    payload: >
      {
        "message_id": "1",
        "command": "player_queues/items",
        "args": {
          "queue_id": "{{ state_attr('media_player.office_music_player', 'active_queue') }}",
          "limit": 1000,
          "offset": {{ states('input_number.office_player_current_index') }}
        }
      }
    content_type:  'application/json; charset=utf-8'

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.

What happened here? Did a developer think, “You know what, users can’t be trusted with their own stack sizes, so we’ll tie them down.” ???

I’m really going full on Howard Beale here. I don’t understand the reasoning behind this at all.

1 Like

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