No SONOS Speakers Found

Hello

I’m running Home Assistant 0.85.0 (hass.io 1.13) on a Pi 3B+ on a basic home network. Home Assistant is not discovering my SONOS system, although clearly knows its there! I have discovery turned on and no manual configuration defined for SONOS.

SONOS is reported as ‘Configured’ in Configuration Integrations, but that “This integration has no devices”.

After restart, the developers info tab shows:
No Sonos speakers found
components/media_player/sonos.py (WARNING).

The log includes the following. I’m not sure why spotify_connect is discovered, as I do not use Spotify. I’ve no idea what the dlna_dms / dmr items are either!

2019-01-15 03:32:47 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: spotify_connect {'host': '192.168.1.209', 'port': 1400, 'hostname': 'sonos000E58B007F9.local.', 'properties': {'VERSION': '1.0', 'CPath': '/spotifyzc'}} 2019-01-15 03:32:47 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: spotify_connect {'host': '192.168.1.213', 'port': 1400, 'hostname': 'sonosB8E93788EB66.local.', 'properties': {'VERSION': '1.0', 'CPath': '/spotifyzc'}} 2019-01-15 03:32:47 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: spotify_connect {'host': '192.168.1.205', 'port': 1400, 'hostname': 'sonos000E582008C6.local.', 'properties': {'VERSION': '1.0', 'CPath': '/spotifyzc'}} 2019-01-15 03:32:47 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: dlna_dms {'host': '192.168.1.205', 'port': 1400, 'ssdp_description': 'http://192.168.1.205:1400/xml/device_description.xml', 'name': '192.168.1.205 - Sonos ZP80', 'model_name': 'Sonos ZP80', 'model_number': 'ZP80', 'serial': None, 'manufacturer': 'Sonos, Inc.', 'udn': 'uuid:RINCON_000E582008C601400', 'upnp_device_type': 'urn:schemas-upnp-org:device:ZonePlayer:1'} 2019-01-15 03:32:47 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: dlna_dms {'host': '192.168.1.209', 'port': 1400, 'ssdp_description': 'http://192.168.1.209:1400/xml/device_description.xml', 'name': '192.168.1.209 - Sonos Playbar', 'model_name': 'Sonos Playbar', 'model_number': 'S9', 'serial': None, 'manufacturer': 'Sonos, Inc.', 'udn': 'uuid:RINCON_000E58B007F901400', 'upnp_device_type': 'urn:schemas-upnp-org:device:ZonePlayer:1'} 2019-01-15 03:32:47 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: dlna_dms {'host': '192.168.1.212', 'port': 1400, 'ssdp_description': 'http://192.168.1.212:1400/xml/device_description.xml', 'name': '192.168.1.212 - Sonos Play:1', 'model_name': 'Sonos Play:1', 'model_number': 'S1', 'serial': None, 'manufacturer': 'Sonos, Inc.', 'udn': 'uuid:RINCON_B8E93788EB2E01400', 'upnp_device_type': 'urn:schemas-upnp-org:device:ZonePlayer:1'} 2019-01-15 03:32:47 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: dlna_dms {'host': '192.168.1.213', 'port': 1400, 'ssdp_description': 'http://192.168.1.213:1400/xml/device_description.xml', 'name': '192.168.1.213 - Sonos Play:1', 'model_name': 'Sonos Play:1', 'model_number': 'S1', 'serial': None, 'manufacturer': 'Sonos, Inc.', 'udn': 'uuid:RINCON_B8E93788EB6601400', 'upnp_device_type': 'urn:schemas-upnp-org:device:ZonePlayer:1'} 2019-01-15 03:32:47 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: dlna_dmr {'host': '192.168.1.205', 'port': 1400, 'ssdp_description': 'http://192.168.1.205:1400/xml/device_description.xml', 'name': '192.168.1.205 - Sonos ZP80', 'model_name': 'Sonos ZP80', 'model_number': 'ZP80', 'serial': None, 'manufacturer': 'Sonos, Inc.', 'udn': 'uuid:RINCON_000E582008C601400', 'upnp_device_type': 'urn:schemas-upnp-org:device:ZonePlayer:1'} 2019-01-15 03:32:47 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: dlna_dmr {'host': '192.168.1.209', 'port': 1400, 'ssdp_description': 'http://192.168.1.209:1400/xml/device_description.xml', 'name': '192.168.1.209 - Sonos Playbar', 'model_name': 'Sonos Playbar', 'model_number': 'S9', 'serial': None, 'manufacturer': 'Sonos, Inc.', 'udn': 'uuid:RINCON_000E58B007F901400', 'upnp_device_type': 'urn:schemas-upnp-org:device:ZonePlayer:1'} 2019-01-15 03:32:47 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: dlna_dmr {'host': '192.168.1.210', 'port': 1400, 'ssdp_description': 'http://192.168.1.210:1400/xml/device_description.xml', 'name': '192.168.1.210 - Sonos Sub', 'model_name': 'Sonos Sub', 'model_number': 'Sub', 'serial': None, 'manufacturer': 'Sonos, Inc.', 'udn': 'uuid:RINCON_000E589800B601400', 'upnp_device_type': 'urn:schemas-upnp-org:device:ZonePlayer:1'} 2019-01-15 03:32:47 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: dlna_dmr {'host': '192.168.1.212', 'port': 1400, 'ssdp_description': 'http://192.168.1.212:1400/xml/device_description.xml', 'name': '192.168.1.212 - Sonos Play:1', 'model_name': 'Sonos Play:1', 'model_number': 'S1', 'serial': None, 'manufacturer': 'Sonos, Inc.', 'udn': 'uuid:RINCON_B8E93788EB2E01400', 'upnp_device_type': 'urn:schemas-upnp-org:device:ZonePlayer:1'} 2019-01-15 03:32:47 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: dlna_dmr {'host': '192.168.1.213', 'port': 1400, 'ssdp_description': 'http://192.168.1.213:1400/xml/device_description.xml', 'name': '192.168.1.213 - Sonos Play:1', 'model_name': 'Sonos Play:1', 'model_number': 'S1', 'serial': None, 'manufacturer': 'Sonos, Inc.', 'udn': 'uuid:RINCON_B8E93788EB6601400', 'upnp_device_type': 'urn:schemas-upnp-org:device:ZonePlayer:1'} 2019-01-15 03:32:47 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: dlna_dmr {'host': '192.168.1.215', 'port': 1400, 'ssdp_description': 'http://192.168.1.215:1400/xml/device_description.xml', 'name': '192.168.1.215 - Sonos Play:1', 'model_name': 'Sonos Play:1', 'model_number': 'S12', 'serial': None, 'manufacturer': 'Sonos, Inc.', 'udn': 'uuid:RINCON_7828CAA4165601400', 'upnp_device_type': 'urn:schemas-upnp-org:device:ZonePlayer:1'} 2019-01-15 03:32:47 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: dlna_dmr {'host': '192.168.1.216', 'port': 1400, 'ssdp_description': 'http://192.168.1.216:1400/xml/device_description.xml', 'name': '192.168.1.216 - Sonos Play:1', 'model_name': 'Sonos Play:1', 'model_number': 'S12', 'serial': None, 'manufacturer': 'Sonos, Inc.', 'udn': 'uuid:RINCON_7828CAA4153401400', 'upnp_device_type': 'urn:schemas-upnp-org:device:ZonePlayer:1'}

I have tried multiple restarts of both Home Assistant and SONOS to no avail.

Any suggestions please? Thanks!

Home Assistant 0.86 has fixed this problem. Curious about the release notes though as they say “Update pysonos to 0.0.6, fixing discovery with some uncommon network setups” - my network is very basic! I am however on a beta version of SONOS - can’t say anymore on that. Anyhow, great news that its fixed.

Thanks!

Being on a beta is a bit uncommon :slight_smile:

If you want more information, the problem is discussed in issue #18782.

this looks broken on 0.87 again

I also have lost my previous SONOS speakers. Running 0.90.2.

I lost all (7) my previously configured SONOS speakers.

Home Assistant 0.92.1 running on RPI 3.

From my log file

File “/usr/local/lib/python3.7/site-packages/homeassistant/components/sonos/media_player.py”, line 181, in _setup_platform
all_households=True)
File “/usr/local/lib/python3.7/site-packages/pysonos/discovery.py”, line 92, in discover
_sockets[interface_addr] = create_socket(interface_addr)
File “/usr/local/lib/python3.7/site-packages/pysonos/discovery.py”, line 69, in create_socket
socket.inet_aton(interface_addr))

If you want fixes, file GitHub issues and fill in the entire template. Thanks.