Closed GitHubxtsnl closed 4 years ago
sonos documentation sonos source (message by IssueLinks)
Hey there @cgtobi, mind taking a look at this issue as its been labeled with an integration (sonos
) you are listed as a codeowner for? Thanks!
(message by CodeOwnersMention)
I'm currently running 0.117.3 and the problem is still there. All my SONOS speakers are unavailable in Home Assistant. this happens after every restart of HA
2020-11-05 13:47:27 DEBUG (SyncWorker_6) [homeassistant.components.sonos.media_player] Reached _discovered_player, soco=<SoCo object at ip 172.16.210.11>
2020-11-05 13:47:27 DEBUG (SyncWorker_6) [homeassistant.components.sonos.media_player] Adding new entity
2020-11-05 13:47:33 DEBUG (SyncWorker_6) [homeassistant.components.sonos.media_player] Tested all hosts
2020-11-05 13:47:33 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/sonos/media_player.py", line 939, in _async_handle_group_event
_async_regroup(group)
File "/usr/src/homeassistant/homeassistant/components/sonos/media_player.py", line 918, in _async_regroup
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 296, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 322, in _async_write_ha_state
attr.update(self.state_attributes or {})
File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 830, in state_attributes
value = getattr(self, attr)
File "/usr/src/homeassistant/homeassistant/components/sonos/media_player.py", line 491, in wrapper
return funct(entity, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/sonos/media_player.py", line 969, in shuffle
return PLAY_MODES[self._play_mode][0]
KeyError: None
2020-11-05 13:47:33 INFO (MainThread) [buienradar.buienradar_json] Parse ws data: latitude: 52.00412052963404, longitude: 5.927727520465852
2020-11-05 13:47:36 WARNING (MainThread) [homeassistant.components.switch] Updating sonos_alarm switch took longer than the scheduled update interval 0:00:30
2020-11-05 13:47:37 DEBUG (Thread-6) [pysonos.discovery] Received discovery response from ('172.16.210.11', 55460): "b'HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age = 1800\r\nEXT:\r\nLOCATION: http://172.16.210.11:1400/xml/device_description.xml\r\nSERVER: Linux UPnP/1.0 Sonos/57.3-81090 (ZPS12)\r\nST: urn:schemas-upnp-org:device:ZonePlayer:1\r\nUSN: uuid:RINCON_7828CA31FD5801400::urn:schemas-upnp-org:device:ZonePlayer:1\r\nX-RINCON-HOUSEHOLD: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo\r\nX-RINCON-BOOTSEQ: 27\r\nX-RINCON-WIFIMODE: 1\r\nX-RINCON-VARIANT: 2\r\nHOUSEHOLD.SMARTSPEAKER.AUDIO: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo.VWPZxT6Cl-qbtrkJLJRP\r\n\r\n'"
2020-11-05 13:47:37 DEBUG (Thread-6) [pysonos.discovery] Sending discovery packets on 172.16.3.5
2020-11-05 13:47:37 DEBUG (Thread-6) [pysonos.discovery] Sending discovery packets on 172.30.32.1
2020-11-05 13:47:37 DEBUG (Thread-6) [pysonos.discovery] Sending discovery packets on 172.17.0.1
2020-11-05 13:47:37 DEBUG (Thread-6) [pysonos.discovery] Received discovery response from ('172.16.210.10', 59232): "b'HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age = 1800\r\nEXT:\r\nLOCATION: http://172.16.210.10:1400/xml/device_description.xml\r\nSERVER: Linux UPnP/1.0 Sonos/57.3-81090 (ZPS1)\r\nST: urn:schemas-upnp-org:device:ZonePlayer:1\r\nUSN: uuid:RINCON_5CAAFD9AC91801400::urn:schemas-upnp-org:device:ZonePlayer:1\r\nX-RINCON-HOUSEHOLD: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo\r\nX-RINCON-BOOTSEQ: 28\r\nX-RINCON-WIFIMODE: 1\r\nX-RINCON-VARIANT: 0\r\nHOUSEHOLD.SMARTSPEAKER.AUDIO: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo.VWPZxT6Cl-qbtrkJLJRP\r\n\r\n'"
2020-11-05 13:47:37 DEBUG (Thread-6) [pysonos.discovery] Received discovery response from ('172.16.210.2', 55349): "b'HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age = 1800\r\nEXT:\r\nLOCATION: http://172.16.210.2:1400/xml/device_description.xml\r\nSERVER: Linux UPnP/1.0 Sonos/57.3-81090 (ZPS3)\r\nST: urn:schemas-upnp-org:device:ZonePlayer:1\r\nUSN: uuid:RINCON_B8E93730F8CE01400::urn:schemas-upnp-org:device:ZonePlayer:1\r\nX-RINCON-HOUSEHOLD: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo\r\nX-RINCON-BOOTSEQ: 259\r\nX-RINCON-PROXY: RINCON_5CAAFDA561C001400\r\nX-RINCON-WIFIMODE: 0\r\nX-RINCON-VARIANT: 0\r\nHOUSEHOLD.SMARTSPEAKER.AUDIO: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo.VWPZxT6Cl-qbtrkJLJRP\r\n\r\n'"
2020-11-05 13:47:37 DEBUG (Thread-6) [pysonos.discovery] Received discovery response from ('172.16.210.10', 36198): "b'HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age = 1800\r\nEXT:\r\nLOCATION: http://172.16.210.10:1400/xml/device_description.xml\r\nSERVER: Linux UPnP/1.0 Sonos/57.3-81090 (ZPS1)\r\nST: urn:schemas-upnp-org:device:ZonePlayer:1\r\nUSN: uuid:RINCON_5CAAFD9AC91801400::urn:schemas-upnp-org:device:ZonePlayer:1\r\nX-RINCON-HOUSEHOLD: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo\r\nX-RINCON-BOOTSEQ: 28\r\nX-RINCON-WIFIMODE: 1\r\nX-RINCON-VARIANT: 0\r\nHOUSEHOLD.SMARTSPEAKER.AUDIO: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo.VWPZxT6Cl-qbtrkJLJRP\r\n\r\n'"
2020-11-05 13:47:37 DEBUG (Thread-6) [pysonos.discovery] Received discovery response from ('172.16.210.2', 34903): "b'HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age = 1800\r\nEXT:\r\nLOCATION: http://172.16.210.2:1400/xml/device_description.xml\r\nSERVER: Linux UPnP/1.0 Sonos/57.3-81090 (ZPS3)\r\nST: urn:schemas-upnp-org:device:ZonePlayer:1\r\nUSN: uuid:RINCON_B8E93730F8CE01400::urn:schemas-upnp-org:device:ZonePlayer:1\r\nX-RINCON-HOUSEHOLD: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo\r\nX-RINCON-BOOTSEQ: 259\r\nX-RINCON-PROXY: RINCON_5CAAFDA561C001400\r\nX-RINCON-WIFIMODE: 0\r\nX-RINCON-VARIANT: 0\r\nHOUSEHOLD.SMARTSPEAKER.AUDIO: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo.VWPZxT6Cl-qbtrkJLJRP\r\n\r\n'"
2020-11-05 13:47:37 DEBUG (Thread-6) [pysonos.discovery] Received discovery response from ('172.16.210.3', 33172): "b'HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age = 1800\r\nEXT:\r\nLOCATION: http://172.16.210.3:1400/xml/device_description.xml\r\nSERVER: Linux UPnP/1.0 Sonos/57.3-81090 (ZP120)\r\nST: urn:schemas-upnp-org:device:ZonePlayer:1\r\nUSN: uuid:RINCON_000E5836DCA001400::urn:schemas-upnp-org:device:ZonePlayer:1\r\nX-RINCON-HOUSEHOLD: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo\r\nX-RINCON-BOOTSEQ: 61\r\nX-RINCON-WIFIMODE: 1\r\nX-RINCON-VARIANT: 0\r\nHOUSEHOLD.SMARTSPEAKER.AUDIO: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo.VWPZxT6Cl-qbtrkJLJRP\r\n\r\n'"
2020-11-05 13:47:37 DEBUG (Thread-6) [pysonos.discovery] Received discovery response from ('172.16.210.9', 45785): "b'HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age = 1800\r\nEXT:\r\nLOCATION: http://172.16.210.9:1400/xml/device_description.xml\r\nSERVER: Linux UPnP/1.0 Sonos/57.3-81090 (ZPS1)\r\nST: urn:schemas-upnp-org:device:ZonePlayer:1\r\nUSN: uuid:RINCON_5CAAFD7980FA01400::urn:schemas-upnp-org:device:ZonePlayer:1\r\nX-RINCON-HOUSEHOLD: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo\r\nX-RINCON-BOOTSEQ: 68\r\nX-RINCON-WIFIMODE: 1\r\nX-RINCON-VARIANT: 1\r\nHOUSEHOLD.SMARTSPEAKER.AUDIO: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo.VWPZxT6Cl-qbtrkJLJRP\r\n\r\n'"
2020-11-05 13:47:38 DEBUG (Thread-6) [pysonos.discovery] Received discovery response from ('172.16.210.1', 49191): "b'HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age = 1800\r\nEXT:\r\nLOCATION: http://172.16.210.1:1400/xml/device_description.xml\r\nSERVER: Linux UPnP/1.0 Sonos/57.3-81090 (ZPS3)\r\nST: urn:schemas-upnp-org:device:ZonePlayer:1\r\nUSN: uuid:RINCON_B8E93730F8BE01400::urn:schemas-upnp-org:device:ZonePlayer:1\r\nX-RINCON-HOUSEHOLD: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo\r\nX-RINCON-BOOTSEQ: 266\r\nX-RINCON-PROXY: RINCON_5CAAFDA561C001400\r\nX-RINCON-WIFIMODE: 0\r\nX-RINCON-VARIANT: 0\r\nHOUSEHOLD.SMARTSPEAKER.AUDIO: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo.VWPZxT6Cl-qbtrkJLJRP\r\n\r\n'"
2020-11-05 13:47:38 DEBUG (Thread-6) [pysonos.discovery] Received discovery response from ('172.16.210.4', 34287): "b'HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age = 1800\r\nEXT:\r\nLOCATION: http://172.16.210.4:1400/xml/device_description.xml\r\nSERVER: Linux UPnP/1.0 Sonos/57.3-81090 (ZP120)\r\nST: urn:schemas-upnp-org:device:ZonePlayer:1\r\nUSN: uuid:RINCON_000E5836694401400::urn:schemas-upnp-org:device:ZonePlayer:1\r\nX-RINCON-HOUSEHOLD: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo\r\nX-RINCON-BOOTSEQ: 13\r\nX-RINCON-WIFIMODE: 1\r\nX-RINCON-VARIANT: 0\r\nHOUSEHOLD.SMARTSPEAKER.AUDIO: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo.VWPZxT6Cl-qbtrkJLJRP\r\n\r\n'"
2020-11-05 13:47:38 DEBUG (Thread-6) [pysonos.discovery] Received discovery response from ('172.16.210.8', 59748): "b'HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age = 1800\r\nEXT:\r\nLOCATION: http://172.16.210.8:1400/xml/device_description.xml\r\nSERVER: Linux UPnP/1.0 Sonos/57.3-81090 (ZPS3)\r\nST: urn:schemas-upnp-org:device:ZonePlayer:1\r\nUSN: uuid:RINCON_B8E937D3655401400::urn:schemas-upnp-org:device:ZonePlayer:1\r\nX-RINCON-HOUSEHOLD: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo\r\nX-RINCON-BOOTSEQ: 87\r\nX-RINCON-WIFIMODE: 1\r\nX-RINCON-VARIANT: 1\r\nHOUSEHOLD.SMARTSPEAKER.AUDIO: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo.VWPZxT6Cl-qbtrkJLJRP\r\n\r\n'"
2020-11-05 13:47:38 DEBUG (Thread-6) [pysonos.discovery] Received discovery response from ('172.16.210.3', 33175): "b'HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age = 1800\r\nEXT:\r\nLOCATION: http://172.16.210.3:1400/xml/device_description.xml\r\nSERVER: Linux UPnP/1.0 Sonos/57.3-81090 (ZP120)\r\nST: urn:schemas-upnp-org:device:ZonePlayer:1\r\nUSN: uuid:RINCON_000E5836DCA001400::urn:schemas-upnp-org:device:ZonePlayer:1\r\nX-RINCON-HOUSEHOLD: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo\r\nX-RINCON-BOOTSEQ: 61\r\nX-RINCON-WIFIMODE: 1\r\nX-RINCON-VARIANT: 0\r\nHOUSEHOLD.SMARTSPEAKER.AUDIO: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo.VWPZxT6Cl-qbtrkJLJRP\r\n\r\n'"
2020-11-05 13:47:38 DEBUG (Thread-6) [pysonos.discovery] Received discovery response from ('172.16.210.7', 43108): "b'HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age = 1800\r\nEXT:\r\nLOCATION: http://172.16.210.7:1400/xml/device_description.xml\r\nSERVER: Linux UPnP/1.0 Sonos/57.3-81090 (ANVIL)\r\nST: urn:schemas-upnp-org:device:ZonePlayer:1\r\nUSN: uuid:RINCON_5CAAFD83734E01400::urn:schemas-upnp-org:device:ZonePlayer:1\r\nX-RINCON-HOUSEHOLD: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo\r\nX-RINCON-BOOTSEQ: 227\r\nX-RINCON-PROXY: RINCON_5CAAFDA561C001400\r\nX-RINCON-WIFIMODE: 0\r\nX-RINCON-VARIANT: 5\r\nHOUSEHOLD.SMARTSPEAKER.AUDIO: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo\r\n\r\n'"
2020-11-05 13:47:38 DEBUG (Thread-6) [pysonos.discovery] Received discovery response from ('172.16.210.7', 37761): "b'HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age = 1800\r\nEXT:\r\nLOCATION: http://172.16.210.7:1400/xml/device_description.xml\r\nSERVER: Linux UPnP/1.0 Sonos/57.3-81090 (ANVIL)\r\nST: urn:schemas-upnp-org:device:ZonePlayer:1\r\nUSN: uuid:RINCON_5CAAFD83734E01400::urn:schemas-upnp-org:device:ZonePlayer:1\r\nX-RINCON-HOUSEHOLD: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo\r\nX-RINCON-BOOTSEQ: 227\r\nX-RINCON-PROXY: RINCON_5CAAFDA561C001400\r\nX-RINCON-WIFIMODE: 0\r\nX-RINCON-VARIANT: 5\r\nHOUSEHOLD.SMARTSPEAKER.AUDIO: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo\r\n\r\n'"
2020-11-05 13:47:38 DEBUG (Thread-6) [pysonos.discovery] Received discovery response from ('172.16.210.2', 52508): "b'HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age = 1800\r\nEXT:\r\nLOCATION: http://172.16.210.2:1400/xml/device_description.xml\r\nSERVER: Linux UPnP/1.0 Sonos/57.3-81090 (ZPS3)\r\nST: urn:schemas-upnp-org:device:ZonePlayer:1\r\nUSN: uuid:RINCON_B8E93730F8CE01400::urn:schemas-upnp-org:device:ZonePlayer:1\r\nX-RINCON-HOUSEHOLD: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo\r\nX-RINCON-BOOTSEQ: 259\r\nX-RINCON-PROXY: RINCON_5CAAFDA561C001400\r\nX-RINCON-WIFIMODE: 0\r\nX-RINCON-VARIANT: 0\r\nHOUSEHOLD.SMARTSPEAKER.AUDIO: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo.VWPZxT6Cl-qbtrkJLJRP\r\n\r\n'"
2020-11-05 13:47:38 DEBUG (Thread-6) [pysonos.discovery] Received discovery response from ('172.16.210.6', 49837): "b'HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age = 1800\r\nEXT:\r\nLOCATION: http://172.16.210.6:1400/xml/device_description.xml\r\nSERVER: Linux UPnP/1.0 Sonos/57.3-81090 (ZPS9)\r\nST: urn:schemas-upnp-org:device:ZonePlayer:1\r\nUSN: uuid:RINCON_5CAAFDA561C001400::urn:schemas-upnp-org:device:ZonePlayer:1\r\nX-RINCON-HOUSEHOLD: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo\r\nX-RINCON-BOOTSEQ: 68\r\nX-RINCON-WIFIMODE: 1\r\nX-RINCON-VARIANT: 2\r\nHOUSEHOLD.SMARTSPEAKER.AUDIO: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo.VWPZxT6Cl-qbtrkJLJRP\r\n\r\n'"
2020-11-05 13:47:38 DEBUG (Thread-6) [pysonos.discovery] Received discovery response from ('172.16.210.3', 33176): "b'HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age = 1800\r\nEXT:\r\nLOCATION: http://172.16.210.3:1400/xml/device_description.xml\r\nSERVER: Linux UPnP/1.0 Sonos/57.3-81090 (ZP120)\r\nST: urn:schemas-upnp-org:device:ZonePlayer:1\r\nUSN: uuid:RINCON_000E5836DCA001400::urn:schemas-upnp-org:device:ZonePlayer:1\r\nX-RINCON-HOUSEHOLD: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo\r\nX-RINCON-BOOTSEQ: 61\r\nX-RINCON-WIFIMODE: 1\r\nX-RINCON-VARIANT: 0\r\nHOUSEHOLD.SMARTSPEAKER.AUDIO: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo.VWPZxT6Cl-qbtrkJLJRP\r\n\r\n'"
2020-11-05 13:47:38 DEBUG (Thread-6) [pysonos.discovery] Received discovery response from ('172.16.210.4', 34291): "b'HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age = 1800\r\nEXT:\r\nLOCATION: http://172.16.210.4:1400/xml/device_description.xml\r\nSERVER: Linux UPnP/1.0 Sonos/57.3-81090 (ZP120)\r\nST: urn:schemas-upnp-org:device:ZonePlayer:1\r\nUSN: uuid:RINCON_000E5836694401400::urn:schemas-upnp-org:device:ZonePlayer:1\r\nX-RINCON-HOUSEHOLD: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo\r\nX-RINCON-BOOTSEQ: 13\r\nX-RINCON-WIFIMODE: 1\r\nX-RINCON-VARIANT: 0\r\nHOUSEHOLD.SMARTSPEAKER.AUDIO: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo.VWPZxT6Cl-qbtrkJLJRP\r\n\r\n'"
2020-11-05 13:47:38 DEBUG (Thread-6) [pysonos.discovery] Received discovery response from ('172.16.210.8', 50848): "b'HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age = 1800\r\nEXT:\r\nLOCATION: http://172.16.210.8:1400/xml/device_description.xml\r\nSERVER: Linux UPnP/1.0 Sonos/57.3-81090 (ZPS3)\r\nST: urn:schemas-upnp-org:device:ZonePlayer:1\r\nUSN: uuid:RINCON_B8E937D3655401400::urn:schemas-upnp-org:device:ZonePlayer:1\r\nX-RINCON-HOUSEHOLD: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo\r\nX-RINCON-BOOTSEQ: 87\r\nX-RINCON-WIFIMODE: 1\r\nX-RINCON-VARIANT: 1\r\nHOUSEHOLD.SMARTSPEAKER.AUDIO: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo.VWPZxT6Cl-qbtrkJLJRP\r\n\r\n'"
2020-11-05 13:47:38 DEBUG (Thread-6) [pysonos.discovery] Received discovery response from ('172.16.210.2', 45648): "b'HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age = 1800\r\nEXT:\r\nLOCATION: http://172.16.210.2:1400/xml/device_description.xml\r\nSERVER: Linux UPnP/1.0 Sonos/57.3-81090 (ZPS3)\r\nST: urn:schemas-upnp-org:device:ZonePlayer:1\r\nUSN: uuid:RINCON_B8E93730F8CE01400::urn:schemas-upnp-org:device:ZonePlayer:1\r\nX-RINCON-HOUSEHOLD: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo\r\nX-RINCON-BOOTSEQ: 259\r\nX-RINCON-PROXY: RINCON_5CAAFDA561C001400\r\nX-RINCON-WIFIMODE: 0\r\nX-RINCON-VARIANT: 0\r\nHOUSEHOLD.SMARTSPEAKER.AUDIO: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo.VWPZxT6Cl-qbtrkJLJRP\r\n\r\n'"
2020-11-05 13:47:38 DEBUG (Thread-6) [pysonos.discovery] Received discovery response from ('172.16.210.7', 54841): "b'HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age = 1800\r\nEXT:\r\nLOCATION: http://172.16.210.7:1400/xml/device_description.xml\r\nSERVER: Linux UPnP/1.0 Sonos/57.3-81090 (ANVIL)\r\nST: urn:schemas-upnp-org:device:ZonePlayer:1\r\nUSN: uuid:RINCON_5CAAFD83734E01400::urn:schemas-upnp-org:device:ZonePlayer:1\r\nX-RINCON-HOUSEHOLD: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo\r\nX-RINCON-BOOTSEQ: 227\r\nX-RINCON-PROXY: RINCON_5CAAFDA561C001400\r\nX-RINCON-WIFIMODE: 0\r\nX-RINCON-VARIANT: 5\r\nHOUSEHOLD.SMARTSPEAKER.AUDIO: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo\r\n\r\n'"
2020-11-05 13:47:38 DEBUG (Thread-6) [pysonos.discovery] Received discovery response from ('172.16.210.4', 34290): "b'HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age = 1800\r\nEXT:\r\nLOCATION: http://172.16.210.4:1400/xml/device_description.xml\r\nSERVER: Linux UPnP/1.0 Sonos/57.3-81090 (ZP120)\r\nST: urn:schemas-upnp-org:device:ZonePlayer:1\r\nUSN: uuid:RINCON_000E5836694401400::urn:schemas-upnp-org:device:ZonePlayer:1\r\nX-RINCON-HOUSEHOLD: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo\r\nX-RINCON-BOOTSEQ: 13\r\nX-RINCON-WIFIMODE: 1\r\nX-RINCON-VARIANT: 0\r\nHOUSEHOLD.SMARTSPEAKER.AUDIO: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo.VWPZxT6Cl-qbtrkJLJRP\r\n\r\n'"
2020-11-05 13:47:38 DEBUG (Thread-6) [pysonos.discovery] Received discovery response from ('172.16.210.1', 33619): "b'HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age = 1800\r\nEXT:\r\nLOCATION: http://172.16.210.1:1400/xml/device_description.xml\r\nSERVER: Linux UPnP/1.0 Sonos/57.3-81090 (ZPS3)\r\nST: urn:schemas-upnp-org:device:ZonePlayer:1\r\nUSN: uuid:RINCON_B8E93730F8BE01400::urn:schemas-upnp-org:device:ZonePlayer:1\r\nX-RINCON-HOUSEHOLD: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo\r\nX-RINCON-BOOTSEQ: 266\r\nX-RINCON-PROXY: RINCON_5CAAFDA561C001400\r\nX-RINCON-WIFIMODE: 0\r\nX-RINCON-VARIANT: 0\r\nHOUSEHOLD.SMARTSPEAKER.AUDIO: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo.VWPZxT6Cl-qbtrkJLJRP\r\n\r\n'"
2020-11-05 13:47:38 DEBUG (Thread-6) [pysonos.discovery] Received discovery response from ('172.16.210.5', 57666): "b'HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age = 1800\r\nEXT:\r\nLOCATION: http://172.16.210.5:1400/xml/device_description.xml\r\nSERVER: Linux UPnP/1.0 Sonos/57.3-81090 (ZPS1)\r\nST: urn:schemas-upnp-org:device:ZonePlayer:1\r\nUSN: uuid:RINCON_5CAAFD7980CE01400::urn:schemas-upnp-org:device:ZonePlayer:1\r\nX-RINCON-HOUSEHOLD: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo\r\nX-RINCON-BOOTSEQ: 42\r\nX-RINCON-WIFIMODE: 1\r\nX-RINCON-VARIANT: 1\r\nHOUSEHOLD.SMARTSPEAKER.AUDIO: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo.VWPZxT6Cl-qbtrkJLJRP\r\n\r\n'"
2020-11-05 13:47:45 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.sonos_alarm_59 is taking over 10 seconds
2020-11-05 13:47:47 ERROR (SyncWorker_5) [custom_components.sonos_alarm.switch] Home Assistant couldnt update the state of the alarm Connection error: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 426, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 421, in _make_request
httplib_response = conn.getresponse()
File "/usr/local/lib/python3.8/http/client.py", line 1347, in getresponse
response.begin()
File "/usr/local/lib/python3.8/http/client.py", line 307, in begin
version, status, reason = self._read_status()
File "/usr/local/lib/python3.8/http/client.py", line 276, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 726, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 410, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/usr/local/lib/python3.8/site-packages/urllib3/packages/six.py", line 734, in reraise
raise value.with_traceback(tb)
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 426, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 421, in _make_request
httplib_response = conn.getresponse()
File "/usr/local/lib/python3.8/http/client.py", line 1347, in getresponse
response.begin()
File "/usr/local/lib/python3.8/http/client.py", line 307, in begin
version, status, reason = self._read_status()
File "/usr/local/lib/python3.8/http/client.py", line 276, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pysonos/services.py", line 472, in send_command
response = requests.post(
File "/usr/local/lib/python3.8/site-packages/requests/api.py", line 119, in post
return request('post', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 498, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/config/custom_components/sonos_alarm/switch.py", line 138, in update
alarms.get_alarms(self._soco)
File "/usr/local/lib/python3.8/site-packages/pysonos/alarms.py", line 270, in get_alarms
response = zone.alarmClock.ListAlarms()
File "/usr/local/lib/python3.8/site-packages/pysonos/services.py", line 210, in _dispatcher
return self.send_command(action, *args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/pysonos/services.py", line 479, in send_command
raise SoCoException('Connection error: ' + str(ex))
pysonos.exceptions.SoCoException: Connection error: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
2020-11-05 13:47:48 DEBUG (Thread-6) [pysonos.discovery] Error handling discovery response, ex=HTTPConnectionPool(host='172.16.210.5', port=1400): Read timed out.
2020-11-05 13:47:48 DEBUG (Thread-6) [pysonos.discovery] Received discovery response from ('172.16.210.1', 53587): "b'HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age = 1800\r\nEXT:\r\nLOCATION: http://172.16.210.1:1400/xml/device_description.xml\r\nSERVER: Linux UPnP/1.0 Sonos/57.3-81090 (ZPS3)\r\nST: urn:schemas-upnp-org:device:ZonePlayer:1\r\nUSN: uuid:RINCON_B8E93730F8BE01400::urn:schemas-upnp-org:device:ZonePlayer:1\r\nX-RINCON-HOUSEHOLD: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo\r\nX-RINCON-BOOTSEQ: 266\r\nX-RINCON-PROXY: RINCON_5CAAFDA561C001400\r\nX-RINCON-WIFIMODE: 0\r\nX-RINCON-VARIANT: 0\r\nHOUSEHOLD.SMARTSPEAKER.AUDIO: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo.VWPZxT6Cl-qbtrkJLJRP\r\n\r\n'"
2020-11-05 13:47:48 DEBUG (Thread-6) [pysonos.discovery] Received discovery response from ('172.16.210.6', 54522): "b'HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age = 1800\r\nEXT:\r\nLOCATION: http://172.16.210.6:1400/xml/device_description.xml\r\nSERVER: Linux UPnP/1.0 Sonos/57.3-81090 (ZPS9)\r\nST: urn:schemas-upnp-org:device:ZonePlayer:1\r\nUSN: uuid:RINCON_5CAAFDA561C001400::urn:schemas-upnp-org:device:ZonePlayer:1\r\nX-RINCON-HOUSEHOLD: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo\r\nX-RINCON-BOOTSEQ: 68\r\nX-RINCON-WIFIMODE: 1\r\nX-RINCON-VARIANT: 2\r\nHOUSEHOLD.SMARTSPEAKER.AUDIO: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo.VWPZxT6Cl-qbtrkJLJRP\r\n\r\n'"
2020-11-05 13:47:48 DEBUG (Thread-6) [pysonos.discovery] Received discovery response from ('172.16.210.6', 51127): "b'HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age = 1800\r\nEXT:\r\nLOCATION: http://172.16.210.6:1400/xml/device_description.xml\r\nSERVER: Linux UPnP/1.0 Sonos/57.3-81090 (ZPS9)\r\nST: urn:schemas-upnp-org:device:ZonePlayer:1\r\nUSN: uuid:RINCON_5CAAFDA561C001400::urn:schemas-upnp-org:device:ZonePlayer:1\r\nX-RINCON-HOUSEHOLD: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo\r\nX-RINCON-BOOTSEQ: 68\r\nX-RINCON-WIFIMODE: 1\r\nX-RINCON-VARIANT: 2\r\nHOUSEHOLD.SMARTSPEAKER.AUDIO: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo.VWPZxT6Cl-qbtrkJLJRP\r\n\r\n'"
2020-11-05 13:47:48 DEBUG (Thread-6) [pysonos.discovery] Received discovery response from ('172.16.210.2', 49898): "b'HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age = 1800\r\nEXT:\r\nLOCATION: http://172.16.210.2:1400/xml/device_description.xml\r\nSERVER: Linux UPnP/1.0 Sonos/57.3-81090 (ZPS3)\r\nST: urn:schemas-upnp-org:device:ZonePlayer:1\r\nUSN: uuid:RINCON_B8E93730F8CE01400::urn:schemas-upnp-org:device:ZonePlayer:1\r\nX-RINCON-HOUSEHOLD: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo\r\nX-RINCON-BOOTSEQ: 259\r\nX-RINCON-PROXY: RINCON_5CAAFDA561C001400\r\nX-RINCON-WIFIMODE: 0\r\nX-RINCON-VARIANT: 0\r\nHOUSEHOLD.SMARTSPEAKER.AUDIO: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo.VWPZxT6Cl-qbtrkJLJRP\r\n\r\n'"
2020-11-05 13:47:48 DEBUG (Thread-6) [pysonos.discovery] Received discovery response from ('172.16.210.8', 37157): "b'HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age = 1800\r\nEXT:\r\nLOCATION: http://172.16.210.8:1400/xml/device_description.xml\r\nSERVER: Linux UPnP/1.0 Sonos/57.3-81090 (ZPS3)\r\nST: urn:schemas-upnp-org:device:ZonePlayer:1\r\nUSN: uuid:RINCON_B8E937D3655401400::urn:schemas-upnp-org:device:ZonePlayer:1\r\nX-RINCON-HOUSEHOLD: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo\r\nX-RINCON-BOOTSEQ: 87\r\nX-RINCON-WIFIMODE: 1\r\nX-RINCON-VARIANT: 1\r\nHOUSEHOLD.SMARTSPEAKER.AUDIO: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo.VWPZxT6Cl-qbtrkJLJRP\r\n\r\n'"
2020-11-05 13:47:48 DEBUG (Thread-6) [pysonos.discovery] Received discovery response from ('172.16.210.3', 33177): "b'HTTP/1.1 200 OK\r\nCACHE-CONTROL: max-age = 1800\r\nEXT:\r\nLOCATION: http://172.16.210.3:1400/xml/device_description.xml\r\nSERVER: Linux UPnP/1.0 Sonos/57.3-81090 (ZP120)\r\nST: urn:schemas-upnp-org:device:ZonePlayer:1\r\nUSN: uuid:RINCON_000E5836DCA001400::urn:schemas-upnp-org:device:ZonePlayer:1\r\nX-RINCON-HOUSEHOLD: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo\r\nX-RINCON-BOOTSEQ: 61\r\nX-RINCON-WIFIMODE: 1\r\nX-RINCON-VARIANT: 0\r\nHOUSEHOLD.SMARTSPEAKER.AUDIO: Sonos_AVIoqKKYMWh2LIHTg0TO9SYtQo.VWPZxT6Cl-qbtrkJLJRP\r\n\r\n'"
custom_components.sonos_alarm.switch
Start by removing this.
I've removed the sonos_alarm integration, will do some testing. Just to let you know, with the previous HA version of 0.116.x and earlier releases this was no issue.
After 4 days of testing and monitoring, it seems this issue with the SONOS media players all going to unavailable is gone since I removed/disabled the SONOS Alarm HACS Integration. I will create an issue on the github page of SONOS Alarm. ticket#11
this ticket can be closed.
Thank you for reporting back.
The problem
All SONOS speakers (entities) (play1, play3, sub, playbar) go unavailable after upgrade to 0.117.1. Unable to control the SONOS speakers.
A restart of HA CORE temporarily fixes the issues, for some minutes, after this all entities go unavailable again.
Environment
Running HomeAssistant CORE 0.117.1 on a Pi4 running HassOS 4.15 last working release was 0.116.4 SONOS integration is causing the issue
Problem-relevant
configuration.yaml
Setup and configuration is done via Configuration \ Integrations, so in my setup no configuration is present for SONOS in configuration.yaml
Traceback/Error logs
Traceback1
Traceback2
I have not tested if this issue is there when adding the SONOS speakers manually to the configuration.yaml. Also good to know all my SONOS speakers get a fixed IP address (reservations) from my DHCP Server and are connected to the same wireless network. All the speakers are pingable.
EDIT: I've removed the Configuration \ Integration \ SONOS and restarted HA with manual setup of SONOS devices in configuration.yaml and the same problem occurs: here is my manual current config: