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

Add playbar/beam surround mode support #646

Closed
wants to merge 3 commits into from

Conversation

manugorre
Copy link

@manugorre manugorre commented Nov 7, 2018

Allow turning the surround mode on/off for soundbar speakers.
Closes #461.

@ghcs27
Copy link
Member

ghcs27 commented Nov 8, 2018

Thank you for submitting this PR! Surround mode certainly is an useful feature, we'll try to get this into SoCo as soon as possible.
The beam support part was already solved by #637 in a different way, can you please update your PR to use the new code as the basis?

PS: Don't worry about the failed checks, they are about code you didn't touch.

@manugorre
Copy link
Author

Done 👌
PS: That's my first PR in Open Source world.

@ghcs27
Copy link
Member

ghcs27 commented Nov 9, 2018

I unfortunately don't have a playbar or beam. Can someone with a surround setup please test this?

Copy link
Contributor

@rytilahti rytilahti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this briefly with my setup, the SurroundMode controls the "Music Playback" setting shown in here: https://support.sonos.com/s/article/4804?language=en_US

Here are all the settings available on my beam+play:1 setup:

Surrounds = SurroundEnable (0, 1)

TV level = SurroundLevel (-15 - 15)
Music = MusicSurroundLevel (-15 - 15)

Music Playback = SurroundMode (ambient = 0, full = 1)

Balance left = AudioDelayLeftRear (2 = less than 0,6m, 1 = 0,6-3m, 0 = more than 3m)
Balance right = AudioDelayRightRear (same as above)

edit: I realized that this PR is quite old, @manugorre let me know if you want still to work on this, otherwise I'll make the necessary changes to implement this API :-)


response = self.renderingControl.GetEQ([
('InstanceID', 0),
('EQType', 'SurroundMode')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This eqtype exists on my beam, but the phone app's "surround speaker" setting controls SurroundEnable instead of this (on S2 setup). This value controls the music level setting as shown here https://support.sonos.com/s/article/4804?language=en_US .

def surround_mode(self, surround_mode):
"""Switch on/off the speaker's surround mode.

:param surround_mode: Enable or disable night mode
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong desc.

@pwt
Copy link
Contributor

pwt commented Dec 9, 2020

@manugorre let me know if you want still to work on this, otherwise I'll make the necessary changes to implement this API :-)

@rytilahti: if you'd like to pick this up, I can help with getting it merged.

Note, however, I don't have any kind of Sonos home theatre equipment, so I'm not able to test it.

@rytilahti
Copy link
Contributor

@rytilahti: if you'd like to pick this up, I can help with getting it merged.

Thanks for the offer! I just created a PR to supersede this one here. It's still WIP but I wanted to put it out there for some feedback. Feel free to take a look :-)

@manugorre
Copy link
Author

@rytilahti: if you'd like to pick this up, I can help with getting it merged.

Thanks for the offer! I just created a PR to supersede this one here. It's still WIP but I wanted to put it out there for some feedback. Feel free to take a look :-)

Hey ! i don't use soco anymore, but i still have my home theatre equipment, so i'm able to test your PR, just let me know if you want

@rytilahti
Copy link
Contributor

Hey, feel free to test the linked PR if you wish to do so, knowing that it works for others would be helpful & encouraging :-)

@pwt pwt removed their assignment Apr 2, 2021
@pwt pwt self-assigned this May 19, 2021
@jjlawren
Copy link
Contributor

Looks like this has been implemented and merged in #870.

@pwt
Copy link
Contributor

pwt commented Feb 16, 2022

Looks like this has been implemented and merged in #870.

Agreed. I'll close it.

@pwt pwt closed this Feb 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Surround Sound Mode
5 participants