Core: Sonos component enhancements

Created on 17 Oct 2015  路  6Comments  路  Source: home-assistant/core

Found that the Sonos component doesn't handle well on

  • "Play" when nothing is (pre)selected to play
  • Is disconnected

    • I have only one Sonos. I don't know if this is the case for _any_ sonos or _the last_ sonos on the network.

Not sure yet if the python module is at fault or that some alive tests should be used for discovered devices.

enhancement

Most helpful comment

Is it conceivable to support further features like play something from the sonos favorites or selecting groups/rooms for playing?

All 6 comments

I can test this out in roughly an hour. I've got a small fortune in sonos components.

I can test this out in roughly an hour. I've got a small fortune in sonos components.

So basically 2 components? :trollface:

@maddox No, 9 of them :moneybag: , now I'm poor. Sorry, reading this on my mobile originally, I was thinking this was a PR boo.

@tomduijf what exactly do you mean "is disconnected" you mean when there are no sonos speakers on the network? In that case, it will pick up in the next discovery, which defaults to every 10 seconds. If that isn't fast enough and you're getting tracebacks of sorts, can you post the actual errors you're getting please? I know that discovery with no speakers returns gracefully as I wrote #355

One of other areas the sonos component needs a lot of love is around sonos's concept of grouping speakers. I've seen this a few times when grouping things and trying to hit play (via HA) on speakers that aren't the primary:

soco.exceptions.SoCoSlaveException: The method or property "pause" can only be called/used on the coordinator in a group

We'll use this issue to track some of those issues so they can be fixed.

Is it conceivable to support further features like play something from the sonos favorites or selecting groups/rooms for playing?

Any word on this enhancement?

Sonos got a bunch of improvements over the last couple of weeks.

Was this page helpful?
0 / 5 - 0 ratings