nfarina / homebridge-sonos

Sonos plugin for homebridge: https://github.com/nfarina/homebridge
153 stars 52 forks source link

No response when turning off speaker #59

Open mqchen opened 6 years ago

mqchen commented 6 years ago

Hi, I have 2 Sonos One speakers and I can only control one of them with Homebridge. The other shows the status but I can't control it.

The Living Room Speaker is controllable and fine, but the Dining Room Speaker only shows playback status and can't be controlled.

Anyone experience this as well? Any ideas on how to fix it?

config.js

   {
      "accessory": "Sonos",
      "name": "Living Room Speaker",
      "room": "Living Room",
      "mute": false
    },
    {
      "accessory": "Sonos",
      "name": "Dining Room Speaker",
      "room": "Dining Room",
      "mute": false
    }

The log output when I try to turn both off:

[9/19/2018, 9:13:09 PM] [Living Room Speakers] Setting power to true
[9/19/2018, 9:13:09 PM] [Living Room Speakers] Playback attempt with success: true
[9/19/2018, 9:13:10 PM] [Dining Room Speakers] Setting power to false
[9/19/2018, 9:13:10 PM] [Dining Room Speakers] Pause attempt with success: undefined

(From the logfile it seems that Homebridge for some reason tries to pause Living Room Speaker instead of stopping playback.

Home app: img_2148 img_2149

Moskvitch commented 6 years ago

Same problem here, only worse: I also have two Sonos Connect's both became unresponsive about yesterday

Moskvitch commented 6 years ago

Ha! Just "fixed" it - there was simply NOTHING queued to play - open your Sonos app and make sure something is actually on the playlist. As for this: (From the logfile it seems that Homebridge for some reason tries to pause Living Room Speaker instead of stopping playback.) that is the result of your "mute": false setting - if set to true - it will mute (continuing playback in the background, only making your playlist run out of songs sooner :) I just set mine to an Apple station, so there would always be something to play (but not this one time :) )

marcel-burkhalter commented 6 years ago

I have the same issue. Using latest versions of homebridge and homebridge-sonos. Fix from @Open-Elec-RU didn't help for me. Anyone an idea?

Moskvitch commented 5 years ago

Another thing I noiced - if you group two Sonos players, the “secondary”, the one you added when the primary was playing something will display the question mark and be unusable in Homekit. You can still control playback of the group using the primary Sonos switch in Homekit.

dilbert1982 commented 5 years ago

having the same issue, even when something is playing on that speaker it is not possible to pause the music...

cgilis commented 4 years ago

Another thing I noiced - if you group two Sonos players, the “secondary”, the one you added when the primary was playing something will display the question mark and be unusable in Homekit. You can still control playback of the group using the primary Sonos switch in Homekit.

Same here.. @nfarina any ideas?

JohnathonMohr commented 4 years ago

I have a pull request open (just published it tonight) to fix the issue of not being able to control the "secondary" player.