Skip to content
This repository has been archived by the owner on Dec 27, 2021. It is now read-only.

SonosDevice::getZoneName is actually SonosDevice::getRoomName #24

Open
mguntli opened this issue Nov 13, 2017 · 5 comments
Open

SonosDevice::getZoneName is actually SonosDevice::getRoomName #24

mguntli opened this issue Nov 13, 2017 · 5 comments
Assignees
Milestone

Comments

@mguntli
Copy link
Contributor

mguntli commented Nov 13, 2017

As far as I understood the Sonos system, every speaker can have a name.
Example with three speakers:

  • Living Room (Living Room L + Living Room R joined as stereo pair)
  • Bedroom

A) GetZoneGroupAttributes / CurrentZoneGroupName
If all three speakers are joined together, the "CurrentZoneGroupName" returns "Living Room + 1".

B) http:https://sonosip:1400/status/zp

  • Living Room L
  • Living Room R
  • Bedroom

C) http:https://sonosip:1400/device_description.xml

  • Living Room
  • Living Room
  • Bedroom

Proposal:
Rename "getZoneName" to "getRoomName", get the room name from device_description.xml

@vmichalak vmichalak added this to Backlog in Sonos-Controller via automation Nov 13, 2017
@vmichalak vmichalak moved this from Backlog to To do for next version in Sonos-Controller Nov 13, 2017
@vmichalak vmichalak moved this from To do for next version to Doing in Sonos-Controller Nov 13, 2017
@vmichalak vmichalak self-assigned this Nov 13, 2017
@vmichalak vmichalak added this to the v.0.2 milestone Nov 13, 2017
@vmichalak
Copy link
Owner

vmichalak commented Nov 13, 2017

I'm ok with the idea to rename getZoneName to getRoomName but it seems strange to loose the position information no ? Perhaps a third method ?

In the configuration :

  • Living Room (Living Room L + Living Room R joined as stereo pair)
  • Bedroom

where Living Room and Bedroom are joined.

  • getZoneName() returns "Kitchen + 1"
  • getRoomName() returns "Kitchen"
  • getDeviceName() returns "Kitchen (L)"

It's better no ?

@vmichalak
Copy link
Owner

This night i gonna implement it on another branch to test it.

@mguntli
Copy link
Contributor Author

mguntli commented Nov 13, 2017

Correct, I think your solution is the best one (Zone / Room / Device).
The Sonos App basically just lists the Rooms to choose from, which is I think the easiest to understand for the users.

@vmichalak
Copy link
Owner

Also, I gonna rename setZoneName() to setRoomName().

vmichalak added a commit that referenced this issue Nov 13, 2017
@vmichalak
Copy link
Owner

@mguntli can you check on feature/24-get-room-name branch ?

@vmichalak vmichalak moved this from Doing to In Review in Sonos-Controller Nov 14, 2017
vmichalak added a commit that referenced this issue Feb 16, 2018
vmichalak added a commit that referenced this issue Feb 16, 2018
@vmichalak vmichalak moved this from In Review to Done for this release in Sonos-Controller Feb 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Sonos-Controller
  
Done for this release
Development

No branches or pull requests

2 participants