How to select speakers on Sony receiver with songpal

I have a Sony STR-AN1000 receiver. I’ve installed the songpal integration which works OK, but my main use case is to be able to use HA to switch the speakers between my main listening room and the speakers in a second room using my phone with Siri (using the homekit bridge) - “Siri, turn on the kitchen speakers". The HA songpal integration does not currently support this. I can do it with the Sony Music Center app, but it is a pain - open the app, scroll down to Settings, select Speakers, then select Speaker A or B. I would like to be able to do this with a simple CURL command from HA but I can’t figure out the syntax. I found the documentation for the sony API but could not work out the syntax for the post.

I installed the songpal CLI and i can switch the speakers with e.g.:
$ songpal speaker speakerSelection speakerB

I can post to the receiver’s API - this curl command works to get the system info:

curl -i -d  ‘{
    "method": “getSystemInformation”,
    "id": 1,
    "params": [],
    "version": “1.4”
   }' http://10.0.1.18:10000/sony/system

What i can’t figure out is the syntax of the curl post to do the speaker selection.
Any help would be appreciated!

It would be even better if the songpal integration supported this, but if i can do it with a simple command-line switch in HA that would be the next best thing.

My current workaround is a node server that exposes a REST API that calls a shell script that calls the songpal CLI commands to get or set the speakers :-). I call this via a command-line switch in HA.

There must be an easier way :-).

I tried

curl -i -d  ‘{
    "method": “speaker”,
    "id": 2,
    "params": [
      { "value": "speakerSelection” },
      { "target": "speakerA” }
    ],
    "version": “1.4”
   }' http://10.0.1.18:10000/sony/system

but i get error 12, no such method.