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

Feature: Stereo Balance Presets #64

Closed
turbidWaters opened this issue Mar 10, 2019 · 3 comments
Closed

Feature: Stereo Balance Presets #64

turbidWaters opened this issue Mar 10, 2019 · 3 comments

Comments

@turbidWaters
Copy link

@ebaauw Thanks a million tons for this plug-in!!!

Would it be possible to add a feature to include 2 or 3 balance presents for a stereo pair?

Why I need this: I have two different listening positions in my living room.

I know this can be tricky given the fact that stereo pairs can be created and separated dynamically, plus it may require complicated changes in the config.json, and I see that you are (rightly) averse to changes/additions to the config.json. So, I am making this request hoping youll be able to come up with something sometime! and solve this annoying process, to have to change the balance every time I shift listening position, in the sonos app. Perhaps a siri command or scene would be stereo nirvana!

ebaauw added a commit that referenced this issue Mar 10, 2019
Support _Balance_ for stereo pairs and for Sonos Connect, see #64.
@ebaauw
Copy link
Owner

ebaauw commented Mar 10, 2019

I've been wanting to support Balance for a long time, see #7, but it's quite challenging:

  1. There isn't a Balance endpoint on the zoneplayers. Instead they seem to expose three Volume "channels", Master, RF and LF. The Sonos app adjusts the RF and/or LF channel volume when changing the Balance. A balance of 0% (middle) sets both channels to 100%; a balance of -100% (left) sets the right channel to 0%; and a balance of 100% (right) sets the left channel to 0%.;
  2. I still haven't been able to figure out how to determine if a zone supports Balance. All zones seem to report the three Volume channels, irrespective of whether they support Balance. It's not just supported for stereo pairs, but also for the Connect. Counter-intuitively, it's not supported for the Playbar.

Ad 1) In line with the Sonos app, I've exposed Balance in the Speaker service as a percentage from -100% to 100%, in steps of 5%. As this is a custom characteristic, neither Apple's Home app nor Siri support this. However, you should be able to include this in a HomeKit scene using Eve, and then recall the scene from Siri.

Ad 2) I added logic to see if a zone is has slave zoneplayers. Afaik this is only the case for stereo pairs and home theatre setups. I already whitelisted the home theatre players (like PlayBase and PlayBar), so I won't expose Balance for home theatre setups. Also, I added a whitelist for zoneplayers that natively support stereo channels, like the Sonos Connect.

@ebaauw
Copy link
Owner

ebaauw commented Mar 10, 2019

In v0.3.14.

@ebaauw ebaauw closed this as completed Mar 22, 2019
@turbidWaters
Copy link
Author

@ebaauw, thank you for the patient response and for pointing me in the right direction. Apologies for not writing in earlier.

I haven't tried any other home app except the one from apple. Will give it a try and report back.

And thanks for this great plugin!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants