ebaauw / homebridge-zp

Homebridge plugin for Sonos ZonePlayer
Apache License 2.0
243 stars 20 forks source link

Assign music selection where there is none #196

Closed JSVarga closed 2 years ago

JSVarga commented 2 years ago

Issue

Rarely a zone will have [no music selected] as shown in the Sonos S1 app. When trying to set the input and play anything, typically via a scene the accessory will come on for a few seconds then go off again without playing anything. Once a selection is made in the Sonos app everything works correctly.

Log Messages

NOTE: First attempt is to set selection to Magic Soul from the Home app, when the Sonos amp turns itself off, then the second attempt is a response to a change initiated in the Sonos app. [6/3/2022, 11:06:26 PM] [Sonos] Lounge Sonos: set Track from "Magic Soul" to "Out Of Reach - Gabrielle" [6/3/2022, 11:06:42 PM] [Sonos] Lounge TV: set Active Identifier to "Magic Radio" [6/3/2022, 11:06:43 PM] [Sonos] Lounge TV: warning: set Active Identifier: timed out [6/3/2022, 11:06:44 PM] [Sonos] Lounge Sonos: set On from true to false [6/3/2022, 11:06:44 PM] [Sonos] Lounge TV: set Active from 1 to 0 [6/3/2022, 11:06:44 PM] [Sonos] Lounge Sonos: set Track from "Out Of Reach - Gabrielle" to "Magic Radio" [6/3/2022, 11:06:44 PM] [Sonos] Lounge Sonos: set Active Identifier from 24 to 23 [6/3/2022, 11:06:46 PM] [Sonos] Lounge Sonos: set On from false to true [6/3/2022, 11:06:46 PM] [Sonos] Lounge TV: set Active from 0 to 1 [6/3/2022, 11:06:51 PM] [Sonos] Lounge Sonos: set Track from "Magic Radio" to "STOP ADBREAK 3"

ebaauw commented 2 years ago

I don’t think I can do much about this. A zone player won’t accept Play when no input is selected, and a HomeKit television accessory won’t accept input change when it’s off. I’m using HomeKit scenes for my favourite radio stations, setting both On and Active Identifier from the Sonos service. Most times they work, but sometimes I need to revert to the Sonos app.

JSVarga commented 2 years ago

Thanks and understood, way of the world sometimes.