Could someone help build out a component for Audio Station on running on a Synology NAS? I have HASS.io running on a rPi, but also use Audio Station. I have several airport expresses attached to speakers throughout the house, and I’d like to make a simple selector to pick a playlist to play on a remote player. Similar to this for Chromcast - Chromecast Radio with station and player selection
There are a couple random forum threads and projects related to controlling Audio Station, but I don’t know where to start in HA:
https://www.synology.com/en-us/support/developer#tool
https://forum.synology.com/enu/viewtopic.php?t=102647
https://1drv.ms/f/s!AhSV8BnLHqYImitlCFD5B-CMn9w0
The following links work when typed directly in a browser:
Authenticate: https://IP:Port/webapi/auth.cgi?api=SYNO.API.Auth&method=Login&version=1&account=USER&passwd=PWD
List Players: https://IP:Port/webapi/AudioStation/remote_player.cgi?api=SYNO.AudioStation.RemotePlayer&version=2&method=list
List Playlists: https://IP:Port/webapi/AudioStation/playlist.cgi?api=SYNO.AudioStation.Playlist&version=2&method=list
Play: https://IP:Port/webapi/AudioStation/remote_player.cgi?api=SYNO.AudioStation.RemotePlayer&method=control&id=PLAYERID&version=2&action=play
Stop: https://IP:Port/webapi/AudioStation/remote_player.cgi?api=SYNO.AudioStation.RemotePlayer&method=control&id=PLAYERID&version=2&action=stop
Set playlist: https://IP:Port/webapi/AudioStation/remote_player.cgi?api=SYNO.AudioStation.RemotePlayer&method=updateplaylist&library=shared&id=PLAYERID&offset=0&limit=0&play=true&version=2&containers_json=%5B%7B%22type%22%3A%22playlist%22%2C%22id%22%3A%22PLAYLISTID%22%7D%5D