Closed rytilahti closed 2 years ago
sonos documentation sonos source (message by IssueLinks)
Hey there @cgtobi, @jjlawren, mind taking a look at this issue as it has been labeled with an integration (sonos
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
When grouped Sonos speakers are missing their coordinator
What are some scenarios where this situation could be expected?
What are some scenarios where this situation could be expected?
To be honest, I just encountered this while testing other parts of my setup. In this case, my television, soundbar (which is connected to rear speakers) et al. are plugged into a smart plug, which was left turned off as I wasn't using it.
Considering that the sonos app itself cannot handle the missing controller amicably (showing Beam (?+LS+RS) +1
being non-configured), I'm not sure there is much to do besides having a cleaner warning & avoid spamming the logs.
I think this is still valid.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
This is still valid, at least partially. The solution would be suppressing the repeated warnings.
I just spotted this as my rear speakers have suddenly jumped from their original network to another one. I suppose this caused them to be discovered & they are now being polled even when they are hidden:
Room/Zone Name IP Address Device Model Visibility SW Version
---------------- --------------- ------------------- ------------ ------------
Beam 192.168.100.xxx Play:1 Hidden 14.2
Beam 192.168.100.xxx Play:1 Hidden 14.2
Beam 192.168.220.xx Beam Visible 14.2
This is the (repeated) log spam that I'm seeing every 30 seconds for both of those hidden speakers:
[homeassistant.components.sonos] Failed to connect to discovered player '192.168.100.xxx': UPnP Error 1024 received: from 192.168.100.xxx
I think the warning should be just suppressed (the "log a warning once when unavailable" rule per https://developers.home-assistant.io/docs/integration_quality_scale_index/#silver-) and call it a day :-)
uid
or volume
which should work for every speaker, even satellites. Are you able to test this more with this speaker using soco
directly?Yes, the network topology indeed changed in an unexpected way! Here's step-wise what I think happened in this most recent case:
soco-cli
etc., and also responding UPnP errors on most of UPnP commands I tested. While calls to some services succeeded (like those to ZoneGroupTopology), some were failing (including querying RenderingControl and AVTransport).
The problem
When grouped Sonos speakers are missing their coordinator, the connected devices are still discoverable but commands are not getting through, causing repeated logger warnings on requests.
Maybe this special case should be handled more gracefully, by having a more explicit warnings and only reporting this once? Or in the best case, the speakers could keep functioning even if their coordinator is missing, but that is probably something that is out of control of the integration.
What is version of Home Assistant Core has the issue?
2021.10.0.dev0
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Core
Integration causing the issue
sonos
Link to integration documentation on our website
https://www.home-assistant.io/integrations/sonos/
Example YAML snippet
No response
Anything in the logs that might be useful for us?