-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[sonos] Full support for SONOS arc features #9874
Comments
The support for this new model was apparently not yet added. |
Yes. It‘s a ZonePlayer thing. |
To support this new model, I will need few information. I will tell you later how to retrieve them. |
I'm happy to help. :) Having the options for a soundbar with Nightmode and SpeechEnhancement would be a cool option for the ARC. I'm using the Arc together with the Sub and 2x Sonos One's as a 5.1 System. The full list of features that would be the 100% solution for such configurations would be: (I guess it would be the same for surround systems using the PLAYBASE or PLAYBAR; however there could be configurations without surround speakers as well as with 2 subs as far as I know):
There's even more with LipSync settings etc. but I try to divide into features that I use regularly where I use OpenHAB instead of opening the App. The other options are things I rarely use and could get back to the app (other people may consider them as essential). |
Please run this URL using the IP of your ARC device: http://192.168.x.xx:1400/xml/device_description.xml Other additional features could require more reverse engineering, which is something more or less impossible without owning the model. |
Here we go.
Get the other point. Coding with no testing possibilities is totally annoying. If I can provide any more data (XML etc.) just let me know. |
As well as a list of all the other settings that could be changed: http://192.168.x.x:1400/xml/RenderingControl1.xml |
Bass, trebble and loundness are settings available on all models. I could try to add them as new channels. |
Thank you so much! I reviewed the device as well through DeviceSpy and the other options are there as state variables only with no get or set methods. Was playing around and saw that I could invoke commands quite easily through Device Spy. |
If methods are there, the binding could be certainly enhanced. What has to be found is how to retrieve the data from SSE events too. With your help, it should be doable. 1.Add the support of Arc with already implemented channels I will propose a PR for 1 tomorrow. |
Let me know what I can help you with and I'll try to do my best. E.g. I could collect the envelope's for the get / set commands of the respective components I guess. :) Assuming what you would need to know: From what I could see it's using the following types all following the same function (GetEQ / SetEQ) The variables are:
Get-EQ:
Set-EQ:
|
Please link your channel named "URI Transport AV" to an item and select with the Sonos app as input your TV. |
With HDMI in on TV: |
In DeviceSpy, do you see a service named AudioIn or HTControl ? |
Ok it was the most probable and the one expected. |
TOSLinkConnected is 1 in the HTControl and no AudioIn found. interesting. I am only on HDMI. |
Perfect. I submit the PR... |
Thank you so much!! :) |
Related to openhab#9874 Signed-off-by: Laurent Garnier <[email protected]>
Related to openhab#9874 Signed-off-by: Laurent Garnier <[email protected]>
Related to openhab#9874 Signed-off-by: Laurent Garnier <[email protected]>
Related to openhab#9874 Signed-off-by: Laurent Garnier <[email protected]>
How did you determine the different values of EQType parameter ? In DeviceSpy, can you right click on the RenderingControl service and then click on "Subscribe to Events". Then copy/paste the event to see how it looks. I assume I will find inside all your key SubEnabled , SubGain, ... |
Basically I tried to invoke the method for GetEQ and SetEQ with the variable names and parameters and watched what happened in the Sonos App. I subscribed and went to the App. Then I enabled/disabled SurroundEnabled, switched SurroundMode back and forth and changed volumes for SurroundLevel, as well as MusicSurroundLevel. Here are the results:
|
Here are the events when changing the SubEnable and SubGain:
|
So yes it is doable to add these controls as new channels. It just require some time. I will try to do it during the weekend |
@TomMarg : the new settings for the Arc are now all implemented in the Arc PR. As I have two different PRs, a "fusion" will be required to have bass/treble/loudness controls for the Arc. Do you know if the surround/sub settings are available for other models ? I guess they are probably on few other models. Do you have a setting to set the output level to "fixed" ? If you have, can you tell me what of all these controls are disabled in the Sonos app when you set it to "fixed" ? |
The fix is unfortunately not yet merged but with the snapshot built this morning, you can now test bass/treble/loudness. |
Regarding the surround level, maybe the problem is not the UPnP action but the handling of the item command. |
Related to #9874 Signed-off-by: Laurent Garnier <[email protected]>
Bass / Treble / Loudness work!!! You are right. The Number Item worked; I had it configured as Dimmer item... So my fault. Will upgrade to snapshot and will provide detailed testing results. |
The last fix is now merged so normally everything should be ok for you in the next snapshot... tomorrow morning. |
Dimmer is for range 0℅ - 100℅, not really adapted to our ranges -15 / 15 or -10 / 10. |
Unfortunately the build of bindings failed this night. |
Snapshot 1269 should include all the last changes. |
I can hereby confirm all switches are working - feedback is directly represented in the App. |
…und speakers (openhab#9916) * [sonos] Add support for Sonos Arc/Arc SL + new controls for sub/surround speakers Related to openhab#9874 Signed-off-by: Laurent Garnier <[email protected]> * Use OnOffType.from Signed-off-by: Laurent Garnier <[email protected]> Signed-off-by: John Marshall <[email protected]>
* [sonos] Add bass/treble/loudness controls Related to openhab#9874 Disable these controls when the output level is fixed * Review suggestion: use OnOffType.from * Add bass/treble/loudness channels to Arc and Arc SL models * Review comment: remove usage of keySet Factorize code Define constants * Use Map.of to simplify the code * Review comments considered Signed-off-by: Laurent Garnier <[email protected]> Signed-off-by: John Marshall <[email protected]>
Related to openhab#9874 Signed-off-by: Laurent Garnier <[email protected]> Signed-off-by: John Marshall <[email protected]>
I hope it is okay to re-open this thread; otherwise I could start a new one. However - every information required would be here. In DeviceSpy I subscribed to the RenderincControl Events and whatched the new value change when I controlled it in the App:
In this post I listed the level in the menus. The new one is here (added on the end)
The value is set through the SetEQ method with variable name HeightChannelLevel and a value between -10 and 10. Maybe it's as easy as before to add this one value/channel? I am frequently using these channels you added before - so thanks again for the implementations in this thread. It's really way easier to build an own interface than jumping around in the Sonos App. |
Fix openhab#9874 Signed-off-by: Laurent Garnier <[email protected]>
Fix #9874 Signed-off-by: Laurent Garnier <[email protected]>
…0759) Fix openhab#9874 Signed-off-by: Laurent Garnier <[email protected]>
…0759) Fix openhab#9874 Signed-off-by: Laurent Garnier <[email protected]>
…und speakers (openhab#9916) * [sonos] Add support for Sonos Arc/Arc SL + new controls for sub/surround speakers Related to openhab#9874 Signed-off-by: Laurent Garnier <[email protected]> * Use OnOffType.from Signed-off-by: Laurent Garnier <[email protected]>
* [sonos] Add bass/treble/loudness controls Related to openhab#9874 Disable these controls when the output level is fixed * Review suggestion: use OnOffType.from * Add bass/treble/loudness channels to Arc and Arc SL models * Review comment: remove usage of keySet Factorize code Define constants * Use Map.of to simplify the code * Review comments considered Signed-off-by: Laurent Garnier <[email protected]>
Related to openhab#9874 Signed-off-by: Laurent Garnier <[email protected]>
…0759) Fix openhab#9874 Signed-off-by: Laurent Garnier <[email protected]>
…und speakers (openhab#9916) * [sonos] Add support for Sonos Arc/Arc SL + new controls for sub/surround speakers Related to openhab#9874 Signed-off-by: Laurent Garnier <[email protected]> * Use OnOffType.from Signed-off-by: Laurent Garnier <[email protected]>
* [sonos] Add bass/treble/loudness controls Related to openhab#9874 Disable these controls when the output level is fixed * Review suggestion: use OnOffType.from * Add bass/treble/loudness channels to Arc and Arc SL models * Review comment: remove usage of keySet Factorize code Define constants * Use Map.of to simplify the code * Review comments considered Signed-off-by: Laurent Garnier <[email protected]>
Related to openhab#9874 Signed-off-by: Laurent Garnier <[email protected]>
…0759) Fix openhab#9874 Signed-off-by: Laurent Garnier <[email protected]>
The newer soundbar Sonos Arc is recognized and controls work correct. However some channels are not exposed that are available for older soundbars like the PLAYBAR or PLAYBASE. I am specifically interested in support for the channel / switch for the nightmode and speechenhancement.
I am currently using OH3 on OpenHabian on a RPi 4 2GB.
....and I love it. :)
The text was updated successfully, but these errors were encountered: