philippe44 / AirConnect

Use AirPlay to stream to UPnP/Sonos & Chromecast devices
Other
3.46k stars 217 forks source link

Ignore Speakers Already Enabled with Airplay or Airplay 2 #303

Closed tyehill closed 3 years ago

tyehill commented 3 years ago

My network has a mixture of Airplay enabled Sonos Speakers and non-Airplay enabled speakers. If I run AirConnect, then some of my speakers show up twice.

Is there any way to specifically ignore some speakers? I looked through the configuration, but I didn't see anything about excluding speakers other than just setting a max limit.

pwt commented 3 years ago

Start airupnp with the -o option. Specifically, use:

-o S1,S3,S5,S9,S12,ZP80,ZP90,S15,ZP100,ZP120

to include any instances of Sonos speakers that don't natively support AirPlay 2, but none that do.

There are other ways to achieve the same thing (e.g., editing the config.xml file to disable specific zones), but the method above is the most general, and works for all Sonos environments.

tyehill commented 3 years ago

Well - that worked perfectly. Now I need to figure out how to generate/edit a config file so I don't have to start it over ssh every time. Thanks!