Collapse stereo pairs into a single leader-controlled speaker#6
Merged
Conversation
|
gaelsimon
added a commit
that referenced
this pull request
Jun 19, 2026
gaelsimon
added a commit
that referenced
this pull request
Jun 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



A HEOS stereo pair came back as two players plus a group, shown as two separate rows. This treats a pair as one leader-controlled speaker, while keeping genuine multi-room groups expanded.
How it tells them apart: the HEOS CLI gives no signal, but the AIOS GroupControl UPnP service reports each member's audio channel (LEFT/RIGHT for a stereo/surround bond, NORMAL for a plain group). After groups load we read those channels per member (best-effort, non-blocking) and expand only the confirmed all-NORMAL groups. Any failed or missing read leaves the group collapsed, so a stereo pair never regresses to two rows.
Fixes #3 and #4 (one row per pair; consistent codec/bitrate since metadata reads off the leader).
Note: validated with mocked UPnP responses built from the real device SCPD; the exact live response of an actual pair couldn't be captured (single device on hand), so the safe fallback is collapse.
Closes #3
Closes #4