i'd like to be able to toggle the play/pause state of the local zone from a keypad button. (by "local" i mean from a certain keypad, i would like to control the state of the ZonePlayer in the same same room as the keypad). if the local zone happens to be part of a group, i'd like to toggle the play/pause state of the entire group.
i'd also like to be able to change the state of a button when the local Sonos zone changes state. when the zone's state is PLAYING, i would like the button to be on (i.e., LED is on). when the zone's state is not PLAYING, i would like the button LED to be off.
so that's what i'm trying to do. i think i've got it working ok in the case where there are no groups.
when groups come into the picture, however, i'm not having success. here are some issues/questions i've run into:
- i expected the value of Zone Coordinator to be true for exactly one zone in a group. instead, i see it is true for all zones. what is this value used for?
- i expected that the State of a zone would reflect what it is actually doing (i.e. "PLAYING" IFF it is playing music), irrespective of whether it happened to be playing as part of a group. instead, i observe that when my zone is part of a group, the state can be PLAYING even when the zone (and it's group) are paused. in fact, i observe that this zone's state is PLAYING even after i send it a Pause command.
- in the IOS or MacOSX Sonos apps, there is the concept of a group but there is not anything the interface that makes apparent a "leader" zone. instead, all actions you can perform are performed on the group. in using the Sonos Indigo plugin, i have observed some dependence on a (hidden) state based on whether a given zone is the leader.
- is there a way for example to tell a zone to pause itself if it is a singleton or the leader of its group, and otherwise to instead tell the leader of the group to pause? i'm guessing a snipped of python code is probably needed for this. is there any other way that i'm missing to achieve this via the standard actions? shouldn't commands like Play/Pause be passed transparently from a zone to it's group leader by default?
thanks in advance for any help or pointers to a wiki or places in the forum where this topic might have been discussed. (it's getting a bit hard to keep track of the various long Sonos Plugin threads).