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

Allow standard multicast discovery to select by household_id #939

Merged
merged 2 commits into from
Dec 21, 2022

Conversation

pwt
Copy link
Contributor

@pwt pwt commented Dec 20, 2022

This resurrects and updates PR #644. It's a neat idea and avoids the requirement to use network scan discovery when multiple Sonos households are present on the network.

The PR adds an optional household_id parameter to discover(). If set, discover() will wait for a multicast discovery response that comes from a player in the selected household. If allow_network_scan is True, it will also use the selected household ID to filter responses.

Credit to @twosky2000 for the idea and initial implementation.

@pwt pwt added this to the v0.29.0 milestone Dec 20, 2022
@pwt pwt linked an issue Dec 20, 2022 that may be closed by this pull request
Makes the function consistent with the behaviour of 'discover()'
@pwt pwt self-assigned this Dec 20, 2022
@pwt pwt changed the title Allow standard multicast discovery to select by Household ID Allow standard multicast discovery to select by household_id Dec 20, 2022
@pwt pwt merged commit 1b9448d into SoCo:master Dec 21, 2022
@pwt pwt deleted the discover_with_household_id branch December 21, 2022 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

discover for multiple household_id's
1 participant