No ZonePlayers found?

Posted on
Wed Feb 17, 2021 2:56 pm
Flenser offline
Posts: 46
Joined: Dec 28, 2004

No ZonePlayers found?

I'm trying to trigger one of my Sonos players to play a doorbell sound when a UniFi doorbell is pressed. I've gotten the "when the doorbell is pressed" part set up, thanks to help in the MQTT portion of this forum.

When setting up the Sonos action, there are no ZPs available to choose from the popup.

In the plugin configuration, I've used both "auto" and the IP address of the ZP I'd like to play the doorbell sound, and from the debugging output there's no problem connecting to either the auto-chosen one, or the IP-specified one, but when I go to edit the action, there are no ZPs available in the popup menu.

I tried checking the "Group Coordinator Only" checkbox, but I still get an error when executing the action:
Sonos Error Error in plugin execution ExecuteAction:

Traceback (most recent call last):
File "", line 198, in actionZP_announcementMP3
File "/Library/Application Support/Perceptive Automation/Indigo 7.5/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/", line 1896, in actionAnnouncement
KeyError: key not found in database

That line of code is trying to get the first ZP, I'm assuming from the popup.
dev = indigo.devices[int(pluginAction.props.get("zp1"))]

When I reload the plugin, this is the end up the startup logging:
Sonos Loaded RadioTime Favorite Stations... [12]
Sonos Debug Sound File: Doorbell-ring-chime.mp3
Sonos Loaded Sound Files... [1]
Sonos [Wed Feb 17 15:47:36 2021] Processed plugin preferences.
Sonos Loaded Apple Voices.. [48]
Sonos SSDP Listener Started...
Sonos Debug Method: runConcurrentThread
Sonos Debug Running Concurrent Thread
Sonos SoCo Reactor Ignition...
Sonos Serving HTTP Streamer on [], port 8888

I think SSDP is the discovery protocol that should be finding ZPs. Is there supposed to be some logging there if/when it finds them?

Does anyone have any idea what I should be doing?
Screen Shot 2021-02-17 at 3.55.51 PM.png
Screen Shot 2021-02-17 at 3.55.51 PM.png (78.08 KiB) Viewed 164 times

Posted on
Wed Feb 17, 2021 3:16 pm
Flenser offline
Posts: 46
Joined: Dec 28, 2004

Re: No ZonePlayers found?

Of course, a further five minutes of thought revealed the solution: create a Sonos "device" in Indigo.

I'll leave this hear, in case it helps someone out at some point.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest