Sonos: Disable auto-discovery for specific speakers

Hello there,

I am trying to ignore some Sonos speakers in the Home Assistant Sonos integration by adding the following configuration entries provided by the official documentation to my configuration.yaml:

sonos:
  media_player:
    hosts:
      - 192.168.178.33

My problem is that no matter what I define in the configuration.yaml and after several reinstallations of the sonos integration and/or restarts of Home Assistant all speakers in my netwerk are being auto-discovered.

Does anyone has the same problem or a possible solution?

Thanks in advance

Put them in a separate subset. Solved! :slight_smile:

You can disable the entities on each speaker you want to ignore, but there’s no way to disable discovery for specific Sonos devices. What is the use case where this is necessary?

Haven’t we been through this… :stuck_out_tongue:

I already know this, but then I wonder why the Home Assistant documentation states the following:

You can disable auto-discovery by specifying the Sonos IP addresses

See Sonos integration - Advanced use

Is this configuration option deprecated or am I missing an important detail?

This is definitely a possible solution, but I would like to avoid creating a subnet just to ignore a few speakers.

What is the use case for ignoring players?

I you have a sub or rear paired speakers, then these are not actually players anymore and make up “features” on the primary speaker they are configured with (in my case an Arc with sub and two rear left/right speakers).

These speakers are showing up in the logs as failed attempts to connect to them “homeassistant.components.sonos] Failed to connect to discovered player ‘192.168.xxx.xxx’” and ideally we should be able to ignore them as there is no actual play associated with them, hence the failed connection attempts.

Those are considered “invisible” devices and should already be ignored. Can you create a github issue with logs that show these failed attempts?