Protocol Specs

The following response provides example when the speaker is playing a station.
{
"heos": {
"command": "player/get_now_playing_media",
"result": "success",
"message": "pid='player_id'"
},
"payload": {
"type" : "'station'",
"song": "'song name'",
"station": "'station name'",
"album": "'album name'",
"artist": "'artist name'",
"image_url": "'image url'",
"mid": "'media id'",
"qid": "'queue id'",
"sid": source_id
}
"options": [
{
"play": [
{
"id": 19,
"name": "Add to HEOS Favorites"
}
]
}
]
}
Example: heos://player/get_now_playing_media?pid=1
4.2.6 Get Volume
Command: heos://player/get_volume?pid='player_id'
Attribute Description Enumeration
pid Player id returned by 'get_players' or 'get_groups' command N/A
Response:
{
"heos": {
"command": " player/ get_volume ",
"result": "success",
"message": "pid='player_id'&level='vol_level'"
}
}
Example: heos://player/get_volume?pid=1
4.2.7 Set Volume
Command: heos://player/set_volume?pid=player_id&level=vol_level
Attribute Description Enumeration
pid Player id returned by 'get_players' or 'get_groups' command N/A
level Player volume level 0 to 100
Response:
{
"heos": {