Sonos : UPnP Error 501 and Large Sonos Installations
See original GitHub issueThe problem
I have 20+ Sonos devices that always work great via the Sonos applications. However, they almost never work via the HA Sonos integration. I am constantly receiving this error in the HA logs:
Failed to request visible zones from IP ADDRESS: UPnP Error 501 received: Action Failed from IP ADDRESS
Very rarely, I see the devices show up as working in HA… but, they usually start throwing the above 501 error and/or go unavailable within a few minutes of interacting with them via HA. They continue to work fine in the Sonos apps before, during, and after these errors occur.
I’m happy to provide logs and try anything to resolve the issue.
I seem to be having the same issue as #70194… That issue describes all of the issues and my environment pretty well. I also have a lot of Sonos devices and UniFi network equipment. I have tried everything from that thread including the adjustments to STP within the UniFi environment.
#61003 and #43190 also seem to be similar issues which were never fully resolved.
#70194 is the closest to what I am experiencing where we both have a large Sonos system on a UniFi network architecture… but all of these issues seem to revolve around having a large Sonos installation.
I also found this thread in the HA forums which is describing similar issues. Some of the more recent comments mention UniFi network components and large Sonos networks.
It’s also worth mentioning that the Sonos Cloud integration always seems to work fine as well, but obviously doesn’t have the full Sonos functionality. Thanks @jjlawren !!
What version of Home Assistant Core has the issue?
core-2022.11.4
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Sonos
Link to integration documentation on our website
https://www.home-assistant.io/integrations/sonos/
Diagnostics information
config_entry-sonos-347495fd55deaa8ed6ce64fc5992d3ee.json.txt
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Logger: homeassistant.components.sonos
Source: components/sonos/__init__.py:191
Integration: Sonos (documentation, issues)
First occurred: 7:58:43 PM (1296 occurrences)
Last logged: 9:28:31 PM
Failed to request visible zones from 10.10.10.111: UPnP Error 501 received: Action Failed from 10.10.10.111
Failed to request visible zones from 10.10.10.139: UPnP Error 501 received: Action Failed from 10.10.10.139
Failed to request visible zones from 10.10.10.250: UPnP Error 501 received: Action Failed from 10.10.10.250
Failed to request visible zones from 10.10.10.192: UPnP Error 501 received: Action Failed from 10.10.10.192
Failed to request visible zones from 10.10.10.128: UPnP Error 501 received: Action Failed from 10.10.10.128
Additional information
No response
Issue Analytics
- State:
- Created 10 months ago
- Reactions:1
- Comments:31 (9 by maintainers)
Top GitHub Comments
Thank you! For the first time, all of my Sonos devices are available on startup
I posted my theory on what’s happening over here. I have a rough idea on how to address this in HA (no library changes necessary), but it’s not a super trivial change as it requires a bit of redesign. I hope to find time over the holidays but no promises.