Roon extension - http APIs

Thank you for your quick response and that you look at it. It would be so nice to have these commands.

Thanks so much
Alex

Hi @AxelF,

I have added the group/ungroup and the transfer zone calls.
For the group/ungroup it is a Post call with an array of the output ids (I have added the readme file on how to call those APIs)

Have a try and let me know if you need help.

thanks,
Bastian

1 Like

Hi @St0g1e,

thank you so much you made my day :+1:. Everything works fine and together with homebridge (http request and sonos multiroom plugin) I can handle everything like I wanted. And I have no more trouble with ungrouping Sonos rooms when I use the created shortcuts.

Thanks
Alex

Awesome!!!

Glad I can help.

Hi !
Great work !
my smarthome with loxone is now working with play, stop, & all other commands…

is there a command to to start play a playlist available ?
i can´t found it…

thanks a lot to all !
best
manfred

Hi @many ,

I’ll take a look and get back to you.
Do you mean to see the list of playlists or to play a selected playlist?

Also. Are you using the http or websocket repository?

Thanks

Hi Bastian !
i want to play a selected playlist on the speaker in the bathroom.

for a more detailed description:
my smart home system loxone has configured an alarm clock, e.g. the blinds are open in the bedroom and the player in the bathroom should start the “alarm clock” playlist

i am using the http repository with command
http://local-roon-ip:3001/…

thanks a lot
best
manfred

That’s excellent Bastian, will give it a shot!

Hi @many,

You can play the playlist to your bathroom speaker by using the following commands:

  1. Get a list of the zones:
    http://localhost:3001/roonAPI/listZones

  2. Get the zone id and call goHome (from the call above I picked zoneId 160117c32998166a9031ff098853aae89d22)
    http://localhost:3001/roonAPI/goHome?zoneId=160117c32998166a9031ff098853aae89d22

  3. Look at the second entry for Playlist, and get the item_key (item_key 1:1)
    http://localhost:3001/roonAPI/listByItemKey?zoneId=160117c32998166a9031ff098853aae89d22&item_key=1:1

  4. Select the playlist you want to play and get the item_key (item_key 2:0)
    http://localhost:3001/roonAPI/listByItemKey?zoneId=160117c32998166a9031ff098853aae89d22&item_key=2:0

  5. Select the first item with title “Play Playlist”, and get the item_key (item_key 3:0)
    http://localhost:3001/roonAPI/listByItemKey?zoneId=160117c32998166a9031ff098853aae89d22&item_key=3:0

  6. Select the first item with title “play now” and get the item_key (item_key 4:0)
    http://localhost:3001/roonAPI/listByItemKey?zoneId=160117c32998166a9031ff098853aae89d22&item_key=4.0

Hope this helps.

Please let me know if you have further questions.

–bastian

Hi @St0g1e - this looks really interesting, thanks for making it!
In your Apple Shortcuts workflow, I get the error “get dictionary value failed because shortcuts couldn’t convert from text to dictionary”. I’m not completely sure what might be causing it, and it doesn’t seem to be covered in the thread, can you help?
Many thanks,
Kit

Hi @klerm,
Apologize for the late reply.
May I know which repository you are talking about and what command did you do?

I remember doing the shortcut and just tried looking for it but couldn’t find it.

Thanks

Thanks for the reply. The Shortcuts workflow was the one you linked at the top: Shortcuts
The plugin is the latest from your github. I was running it from my laptop for testing; core is on a QNAP server. The plugin seems to work fine, I can run some of the examples in the thread; just the Shortcuts workflow seems to be stuck for me. Don’t worry too much if you can’t fix it - I’m just checking it out.

Hi @klerm,
Apologize again for the late reply.
It should work now.
Can you please test and let me know.

– bastian

Hi St0g1e,

I have been an active user of your solution for many years and have never experienced any stability issue till 6-7 weeks ago where the Extension keeps falling over.

Currently I have a heavy reliance with your solution using Node-Red for automations, where it previously stable processing a high number of call to the Roon core (upwards of 8,000 calls per hour on occasions)

Since 6-7 weeks ago the extension will not work in multiple instances - PC, NAS, MiniPC. The results are the same, the service starts and listens at port 3001 then fails when a request is made.

Testing has been done on both Node versions v14.6.0 and v20.12.2. I also been trouble shooting with a new install and my existing version, both are facing the same issues ??

Details

http://localhost:3001/roonAPI/listZones

Any assistance in fixing this issue would be gratefully appreciated as this on a key application for Roon use

Many thanks

Mark