Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How does group volume controle work #136

Closed
svrooij opened this issue Feb 1, 2021 · 2 comments
Closed

Question: How does group volume controle work #136

svrooij opened this issue Feb 1, 2021 · 2 comments

Comments

@svrooij
Copy link
Owner

svrooij commented Feb 1, 2021

I'm also struggling with this issue. I figured out how to start for example Radio 3FM on my speakers. I do this by sending this message to the coördinator speaker 'wittekast keuken' (sonos/wittekast-keuken/control):
{ "command": "setavtransporturi",
"input": "radio:s6707?sid=254&flags=32"}

This works fine, both the speaker 'wittekast keuken' and 'keuken' (which are in the same group), play 3FM. However, when I want to increase the volume of both speakers it does not work. I send the following message also to the coördinator speaker 'wittekast keuken' (sonos/wittekast-keuken/control):
{ "command": "volumeup",
"input": 5}

Now only the volume of the 'wittekast keuken' is raised by 5. The volume of the member 'keuken' remains unchanged. Do I miss something somewhere?

Originally posted by @viimD in #110 (comment)

@svrooij
Copy link
Owner Author

svrooij commented Feb 1, 2021

Volume is per speaker, but some commands are automatically redirected to the group coordinator.

You can however send a special group command (to the coordinator of that group, else it will return an error).

Send an advanced command to the GroupRenderingControlService.

Topic: sonos/wittekast-keuken/control
Payload:

{
  "command": "adv-command",
  "input": {
    "cmd": "GroupRenderingControlService.SetRelativeGroupVolume",
    "val": {
      "InstanceID": 0,
      "Adjustment": 20
    }
  }
}

This will execute the SetRelativeGroupVolume command. The InstanceID always has to be 0 and the Adjustment can be any number between -100 and +100. This will be the relative adjustment. If the speakers where not at the same volume, the adjustment is also computed for all speakers separate.

@svrooij svrooij closed this as completed Feb 1, 2021
@viimD
Copy link

viimD commented Feb 5, 2021

Thanks Stephan! The use of advanced commands works like a charm!

@svrooij svrooij changed the title Question: How dows gorup volume controle work Question: How does gorup volume controle work Sep 25, 2021
@svrooij svrooij changed the title Question: How does gorup volume controle work Question: How does group volume controle work Sep 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants