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

Automatically detect zoneplayer capabilities and setup #75

Closed
ebaauw opened this issue May 31, 2019 · 10 comments
Closed

Automatically detect zoneplayer capabilities and setup #75

ebaauw opened this issue May 31, 2019 · 10 comments

Comments

@ebaauw
Copy link
Owner

ebaauw commented May 31, 2019

Rather than whitelisting zoneplayer models, homebridge-zp should detect automatically, whether a zoneplayer supports AirPlay 2, Line-In, TV-input, or stereo channels. Also it should detect automatically whether a zoneplayer is part of a home theatre setup or a stereo pair.

v0.3.20 and v0.4.0 subscribe to the DeviceProperties events, attempting to do this. While it works for the zoneplayer models I own, I'm not sure it does for all models. On startup, v0.3.20 issues two amber messages per zoneplayer:

[5/31/2019, 8:46:50 AM] [Sonos] Living Room Sonos: detected ZPS9 capabilities (please report if wrong): AirPlay: false, audio input: false, TV input: true
[5/31/2019, 8:46:50 AM] [Sonos] Living Room Sonos: detected setup (please report if wrong): Home Theatre: true, Stereo Pair: false

v0.4.0 also retrieves the model name:

[6/3/2019, 8:56:37 PM] [Sonos] Living Room Sonos: detected Sonos Playbar (ZPS9) capabilities (please report if wrong): AirPlay: false, audio input: false, TV input: true
[6/3/2019, 8:56:37 PM] [Sonos] Living Room Sonos: detected setup (please report if wrong): Home Theatre: true, Stereo Pair: false

Please report here if the detection for your zoneplayer is correct or fails. I'm particularly curious about the PlayBase, the Play:5 and (zoneplayers linked to) the Sub. Also, who knows if the Sonos app shows Balance for a standalone Play:5 (with Line-In) in the EQ Settings?

@robertlandes
Copy link

robertlandes commented Jun 1, 2019

I can confirm that detections for my Sonos setup are working properly for ZPS12 and ZPS13 devices.

Regarding Sonos Sub: I have a Sub connected to my stereo pair of ZPS13 in my living room. This is however not mentioned in your log messages (I don't know if it should though)

EDIT: Living room = Wohnzimmer

  • v0.3.20

Her are the associated log lines:

Jun  1 11:28:47 homebridge homebridge[31404]: [6/1/2019, 11:28:47 AM] [Sonos] Wohnzimmer Sonos: detected ZPS13 capabilities (please report if wrong): AirPlay: true, audio input: false, TV input: false
Jun  1 11:28:47 homebridge homebridge[31404]: [6/1/2019, 11:28:47 AM] [Sonos] Wohnzimmer Sonos: detected setup (please report if wrong): Home Theatre: false, Stereo Pair: true
Jun  1 11:28:47 homebridge homebridge[31404]: [6/1/2019, 11:28:47 AM] [Sonos] Küche Sonos: detected ZPS13 capabilities (please report if wrong): AirPlay: true, audio input: false, TV input: false
Jun  1 11:28:47 homebridge homebridge[31404]: [6/1/2019, 11:28:47 AM] [Sonos] Küche Sonos: detected setup (please report if wrong): Home Theatre: false, Stereo Pair: false
Jun  1 11:28:47 homebridge homebridge[31404]: [6/1/2019, 11:28:47 AM] [Sonos] Bad Sonos: detected ZPS13 capabilities (please report if wrong): AirPlay: true, audio input: false, TV input: false
Jun  1 11:28:47 homebridge homebridge[31404]: [6/1/2019, 11:28:47 AM] [Sonos] Bad Sonos: detected setup (please report if wrong): Home Theatre: false, Stereo Pair: false
Jun  1 11:28:47 homebridge homebridge[31404]: [6/1/2019, 11:28:47 AM] [Sonos] Schlafzimmer Sonos: detected ZPS12 capabilities (please report if wrong): AirPlay: false, audio input: false, TV input: false
Jun  1 11:28:47 homebridge homebridge[31404]: [6/1/2019, 11:28:47 AM] [Sonos] Schlafzimmer Sonos: detected setup (please report if wrong): Home Theatre: false, Stereo Pair: false

@ebaauw
Copy link
Owner Author

ebaauw commented Jun 1, 2019

Thanks @robertlandes.

v0.3.20 only lists the capabilities and setup for the master zoneplayer for each zone (room). The latest beta (see https://github.com/ebaauw/homebridge-zp/releases) should also report discovered (stereo pair) slave and (home theatre) satellite zoneplayers, when homebridge is started with -D.

[6/1/2019, 1:17:43 PM] [Sonos] 192.x.x.73: RINCON_5CAAFD7C940401400: Sonos Play:1 (ZPS1) v10.2 in Living Room (slave)
[6/1/2019, 1:17:43 PM] [Sonos] 192.x.x.72: RINCON_5CAAFD7C941401400: Sonos Play:1 (ZPS1) v10.2 in Living Room (slave)
[6/1/2019, 1:17:43 PM] [Sonos] 192.x.x.71: RINCON_5CAAFD1FA0D701400: Sonos Playbar (ZPS9) v10.2 in Living Room
[6/1/2019, 1:17:43 PM] [Sonos] Living Room Sonos: new ZoneGroupTopology subscription uuid:RINCON_5CAAFD1FA0D701400_sub0000001388 (timeout Second-1800)
[6/1/2019, 1:17:43 PM] [Sonos] Living Room Sonos: new DeviceProperties subscription uuid:RINCON_5CAAFD1FA0D701400_sub0000001389 (timeout Second-1800)
[6/1/2019, 1:17:43 PM] [Sonos] Living Room Sonos: ZoneGroupTopology event
[6/1/2019, 1:17:43 PM] [Sonos] Living Room Sonos: found RINCON_949F3E0E142C01400 at 192.x.x.77 in Bathroom
[6/1/2019, 1:17:43 PM] [Sonos] Living Room Sonos: found RINCON_5CAAFD9EAFD401400 at 192.x.x.79 in Bedroom (slave)
[6/1/2019, 1:17:43 PM] [Sonos] Living Room Sonos: found RINCON_5CAAFD9EAF0A01400 at 192.x.x.78 in Bedroom
[6/1/2019, 1:17:43 PM] [Sonos] Living Room Sonos: found RINCON_5CAAFD1FA0D701400 at 192.x.x.71 in Living Room
[6/1/2019, 1:17:43 PM] [Sonos] Living Room Sonos: found RINCON_5CAAFD7C941401400 at 192.x.x.72 in Living Room (satellite)
[6/1/2019, 1:17:43 PM] [Sonos] Living Room Sonos: found RINCON_5CAAFD7C940401400 at 192.x.x.73 in Living Room (satellite)
[6/1/2019, 1:17:43 PM] [Sonos] Living Room Sonos: found RINCON_B8E937DF892C01400 at 192.x.x.75 in Dining Room
[6/1/2019, 1:17:43 PM] [Sonos] Living Room Sonos: found RINCON_B8E937DFD0A201400 at 192.x.x.76 in Dining Room (slave)
[6/1/2019, 1:17:43 PM] [Sonos] Living Room Sonos: found RINCON_000E58A8171201400 at 192.x.x.70 in Home
[6/1/2019, 1:17:43 PM] [Sonos] Living Room Sonos: DeviceProperties event
[6/1/2019, 1:17:43 PM] [Sonos] Living Room Sonos: detected Sonos Playbar (ZPS9) capabilities (please report if wrong): AirPlay: false, audio input: false, TV input: true
[6/1/2019, 1:17:43 PM] [Sonos] Living Room Sonos: detected setup (please report if wrong): Home Theatre: true, Stereo Pair: false

@robertlandes
Copy link

robertlandes commented Jun 1, 2019

@ebaauw Okay, done! Didn't see a difference to the output of v0.3.20

  • v0.4.0-1

EDIT2: @ebaauw as clarification:

[6/1/2019, 3:22:38 PM] [Sonos] Wohnzimmer Sonos: found RINCON_7828CA0AC04801400 at 192.168.178.29 in Wohnzimmer
[6/1/2019, 3:22:38 PM] [Sonos] Wohnzimmer Sonos: found RINCON_7828CA0ABFD601400 at 192.168.178.28 in Wohnzimmer (slave)
[6/1/2019, 3:22:38 PM] [Sonos] Wohnzimmer Sonos: found RINCON_949F3E907F5001400 at 192.168.178.27 in Wohnzimmer (slave)
  • RINCON_7828CA0AC04801400 is stereo pair left
  • RINCON_7828CA0ABFD601400 is stereo pair right
  • RINCON_949F3E907F5001400 is subwoofer

Logs are attached:
sonos-zp-debug.log

EDIT: P.S.: I don't have a Play5 myself, but I asked a frind of mine to send me screenshots of his standalone Play5 (equalizer).

@robertlandes
Copy link

@ebauuw regarding Sonos Play:5... I can confirm that a single speaker doesn't show balance as an option.

@ebaauw
Copy link
Owner Author

ebaauw commented Jun 1, 2019

OK, so Balance is unrelated to Line-In. Figures, since it actually applies to the Line-Out. I have no clue how the Sonos app knows to display Balance in the EQ Settings for the Sonos Connect. Maybe it just whitelists the Model IDs, but that seems atypical. I suppose the Amp and the Connect:Amp also support Balance, so there's likely a clue hidden somewhere in the API and/or XML files.

ebaauw added a commit that referenced this issue Jun 1, 2019
Re-introduce whitelist for stereo models like Sonos Connect, since it's unrelated to Audio In.  See #75.
@ebaauw
Copy link
Owner Author

ebaauw commented Jun 2, 2019

And if the Gen 1 Play:5 supports Audio-In?

@robertlandes
Copy link

robertlandes commented Jun 2, 2019

@cewatts My friend sent me a screenshot of his Play:5 equalizer settings and no balance was shown there. Don't know if it is a Gen1 or Gen2, but he just bought it some weeks ago. Still might be a Gen1... I've asked him... Will post feedback, when i get an update.

EDIT: balance is shown in the Sonos app

@robertlandes
Copy link

@ebaauw @cewatts I feel stupid (again!). So my friend has a Gen2 Play:5 and yes using Android Sonos app there is a Balance slider, although not a stereo pair. (I was just about to write the opposite and attach the screenshot, but while opening it I saw the Balance slider... No words needed :) )

ec006ad4-b983-4bb7-b653-bf665a302b30

@ebaauw
Copy link
Owner Author

ebaauw commented Jun 3, 2019

Thanks. So we’re back at assuming that zoneplayers with Audio-In support Balance.

@ebaauw
Copy link
Owner Author

ebaauw commented Jul 26, 2019

@robertlandes May I bother you once again?

When you've updated to homebridge-zp v1.0.x, could you please run zpinfo -H 192.168.178.29 eventlog and capture the output. I want to see how the Sub is configured in combination with the stereo pair, see #92 (comment).

Also, how does the Sonos app display the room in the EQ settings: Living Room (SW+L+R) or something?

Thanks!

@ebaauw ebaauw closed this as completed Aug 11, 2019
@ebaauw ebaauw unpinned this issue Aug 11, 2019
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