Hi everyone,
Is anybody aware of any resolutions for Sonos suddenly stating that “the connection to HASSIP:8123 was lost”?
I’ve been trying to figure out what happened but recently I am in no way able to play any sounds through our hallway speaker anymore. We used it for the doorbell and alarm, but it recently stopped working.
Since it worked the following changes did happen:
- Ubiquiti Cloud Key gen2 stopped working due to Hard drive issues. removed
- Doorbell removed due to removal of the prior.
- Moved network management to a Docker container.
From here on, no more sound came through so I started troubleshooting and trying different resolutions:
I Checked configuration on PFSense, LAN rules are set to:
1st rule: any source connecting to a specific LAN address on port 6443,80 or 22 is allowed to pass to that specific endpoint.
2nd rule: Any source connecting to HASS on port 1399 - 1500 is allowed to pass.
3rd rule: Any source connecting to any endpoint is allowed to pass.
These rules work top-down. 1st rule applies, it passes and stops. 1st rule doesn’t but second does, it passes and stops. 1st rule doesn’t apply nor does the second, pass and stop.
Please note this is for testing the environment and seeing if it’s stopped by my firewall or not.
None of these seem to apply. There are no denied logs for the Sonos speaker internally.
So instead I started looking into Unifi to see what could be the issue.
Initially I thought maybe it was the subnet (used multiple subnets previously). changed my whole setup to have everything on 1 subnet except for guest devices.
Didn’t make any difference.
Tried to change RSTP to STP. No difference.
Added the advertise_addr to my config, no difference:
Now the weirdest part (for me at least):
Hass is connected to the device. It found the device, it can control the device (play, pause, vol etc), and shows exactly what I told it to play from the app. I can hear the music playing.
However, when I run a script to play a sound from hass to it, it confirms.
But then when I open the app (because I hear nothing in this case) I get the error stating it can not connect.
Does anybody have an idea on what could still be causing this?
Anything I missed?