home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
74.16k stars 31.14k forks source link

0.117.1 SONOS integration all speakers go unavailable after restart #42633

Closed GitHubxtsnl closed 4 years ago

GitHubxtsnl commented 4 years ago

The problem

All SONOS speakers (entities) (play1, play3, sub, playbar) go unavailable after upgrade to 0.117.1. Unable to control the SONOS speakers. image

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

Logger: homeassistant.components.media_player
Source: components/sonos/media_player.py:699
Integration: Media player (documentation, issues)
First occurred: 1:37:45 PM (1 occurrences)
Last logged: 1:37:45 PM

Error adding entities for domain media_player with platform sonos
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 159, in _new_conn
    conn = connection.create_connection(
  File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 84, in create_connection
    raise err
  File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 74, in create_connection
    sock.connect(sa)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

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 392, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/local/lib/python3.8/http/client.py", line 1255, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/local/lib/python3.8/http/client.py", line 1301, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/local/lib/python3.8/http/client.py", line 1250, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/local/lib/python3.8/http/client.py", line 1010, in _send_output
    self.send(msg)
  File "/usr/local/lib/python3.8/http/client.py", line 950, in send
    self.connect()
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 187, in connect
    conn = self._new_conn()
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 164, in _new_conn
    raise ConnectTimeoutError(
urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPConnection object at 0xa1deb268>, 'Connection to 172.16.210.3 timed out. (connect timeout=3)')

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 446, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='172.16.210.3', port=1400): Max retries exceeded with url: /MediaServer/ContentDirectory/Event (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0xa1deb268>, 'Connection to 172.16.210.3 timed out. (connect timeout=3)'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 314, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 505, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 530, in add_to_platform_finish
    await self.async_added_to_hass()
  File "/usr/src/homeassistant/homeassistant/components/sonos/media_player.py", line 550, in async_added_to_hass
    await self.async_seen(self.soco)
  File "/usr/src/homeassistant/homeassistant/components/sonos/media_player.py", line 639, in async_seen
    done = await self.hass.async_add_executor_job(self._attach_player)
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/sonos/media_player.py", line 705, in _attach_player
    subscribe(player.contentDirectory, self.update_content)
  File "/usr/src/homeassistant/homeassistant/components/sonos/media_player.py", line 699, in subscribe
    sub = sonos_service.subscribe(auto_renew=True, event_queue=queue)
  File "/usr/local/lib/python3.8/site-packages/pysonos/services.py", line 598, in subscribe
    return subscription.subscribe(
  File "/usr/local/lib/python3.8/site-packages/pysonos/events.py", line 295, in subscribe
    return self._wrap(subscribe, strict, requested_timeout, auto_renew)
  File "/usr/local/lib/python3.8/site-packages/pysonos/events.py", line 433, in _wrap
    method(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/pysonos/events_base.py", line 477, in subscribe
    return self._request(
  File "/usr/local/lib/python3.8/site-packages/pysonos/events.py", line 389, in _request
    response = requests.request(
  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 504, in send
    raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: HTTPConnectionPool(host='172.16.210.3', port=1400): Max retries exceeded with url: /MediaServer/ContentDirectory/Event (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0xa1deb268>, 'Connection to 172.16.210.3 timed out. (connect timeout=3)'))

Traceback2

Logger: homeassistant.components.media_player
Source: components/sonos/media_player.py:699
Integration: Media player (documentation, issues)
First occurred: 1:38:09 PM (1 occurrences)
Last logged: 1:38:09 PM

Error adding entities for domain media_player with platform sonos
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 426, in _make_request
    six.raise_from(e, None)
  File "<string>", 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 268, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/local/lib/python3.8/socket.py", line 669, in readinto
    return self._sock.recv_into(b)
socket.timeout: timed out

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 735, in reraise
    raise value
  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 428, in _make_request
    self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 335, in _raise_timeout
    raise ReadTimeoutError(
urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='172.16.210.6', port=1400): Read timed out. (read timeout=3)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 314, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 505, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 530, in add_to_platform_finish
    await self.async_added_to_hass()
  File "/usr/src/homeassistant/homeassistant/components/sonos/media_player.py", line 550, in async_added_to_hass
    await self.async_seen(self.soco)
  File "/usr/src/homeassistant/homeassistant/components/sonos/media_player.py", line 639, in async_seen
    done = await self.hass.async_add_executor_job(self._attach_player)
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/sonos/media_player.py", line 702, in _attach_player
    subscribe(player.avTransport, self.update_media)
  File "/usr/src/homeassistant/homeassistant/components/sonos/media_player.py", line 699, in subscribe
    sub = sonos_service.subscribe(auto_renew=True, event_queue=queue)
  File "/usr/local/lib/python3.8/site-packages/pysonos/services.py", line 598, in subscribe
    return subscription.subscribe(
  File "/usr/local/lib/python3.8/site-packages/pysonos/events.py", line 295, in subscribe
    return self._wrap(subscribe, strict, requested_timeout, auto_renew)
  File "/usr/local/lib/python3.8/site-packages/pysonos/events.py", line 433, in _wrap
    method(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/pysonos/events_base.py", line 477, in subscribe
    return self._request(
  File "/usr/local/lib/python3.8/site-packages/pysonos/events.py", line 389, in _request
    response = requests.request(
  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 529, in send
    raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='172.16.210.6', port=1400): Read timed out. (read timeout=3)

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:

sonos:
  media_player:
    interface_addr: !secret ha_ip
    advertise_addr: !secret ha_ip
    hosts:
        - 172.16.210.1 # SONOS-WK-PLAY3-R
        - 172.16.210.2 # SONOS-WK-PLAY3-L
        - 172.16.210.3 # SONOS-WK-AMP
        - 172.16.210.4 # SONOS-OFFICE-AMP
        - 172.16.210.5 # SONOS-SK1-PLAY1
        - 172.16.210.6 # SONOS-WK-PLAYBAR
        - 172.16.210.7 # SONOS-WK-SUB
        - 172.16.210.8 # SONOS-KEUKEN-PLAY3
        - 172.16.210.9 # SONOS-ZO-PLAY1
        - 172.16.210.10 # SONOS-SK4-PLAY1
        - 172.16.210.11 # SONOS-SK5-PLAY1
probot-home-assistant[bot] commented 4 years ago

sonos documentation sonos source (message by IssueLinks)

probot-home-assistant[bot] commented 4 years ago

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)

GitHubxtsnl commented 4 years ago

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'"
amelchio commented 4 years ago

custom_components.sonos_alarm.switch

Start by removing this.

GitHubxtsnl commented 4 years ago

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.

GitHubxtsnl commented 4 years ago

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.

amelchio commented 4 years ago

Thank you for reporting back.