Hello all, I’m struggling to get Home Assistant to talk to my Sonos Beam Gen2 soundbar. I’m running Home Assistant in microk8s with hostNetwork: true
so that it’s ports are exposed onto my network.
When I look in the HA logs after it fails to connect to the speaker, I find this line:
aiohttp.client_exceptions.ClientResponseError: 412, message='Precondition Failed', url='http://10.0.1.30:1400/ZoneGroupTopology/Event'
To troubleshoot this I connected to an Ubuntu pod in the same microk8s cluster, so that the network connectivity should be equivalent. Here’s what I saw:
root@ubuntu:/# curl -I http://10.0.1.30:1400/ZoneGroupTopology/Event
HTTP/1.1 501 Not Implemented
Server: Linux UPnP/1.0 Sonos/82.2-59204 (ZPS31)
Connection: close
root@ubuntu:/# curl -I http://10.0.1.30:1400/status
HTTP/1.1 200 OK
CONTENT-TYPE: text/html
X-Frame-Options: DENY
Content-Security-Policy: frame-ancestors 'none'
Server: Linux UPnP/1.0 Sonos/82.2-59204 (ZPS31)
Connection: close
This tells me that:
- The Sonos soundbar should be accessible from my HA pod
- The endpoint
/ZoneGroupTopology/Event
is not exposed by the soundbar.
I see the same results when I try those URLs in a browser. Does anyone know why it’s using this URL? Is there something I’m missing here?