Sonos - The Beginning

Posted on
Sat Aug 16, 2014 8:59 am
farberm offline
Posts: 393
Joined: Feb 24, 2008

Re: Sonos - The Beginning

Problem with Playbar

Nick: I have six zones and 5 of the 6 update fine without issues. The only one not working is a playbar. Any suggestions? I have rebooted it and switched the reference player without success. It plays fine just no updating in indigo? The player name is not listed. Living Room Playbar. Any suggestions?

Sonos Adding ZonePlayer: RINCON_B8E937709B6C01400
Sonos Adding ZonePlayer: RINCON_000E5811190001400
Sonos Adding ZonePlayer: RINCON_000E58148DFA01400
Sonos Adding ZonePlayer: RINCON_000E58A6B72201400
Sonos Adding ZonePlayer: RINCON_000E58A92C4E01400
Sonos Adding ZonePlayer: RINCON_000E58122B2001400
Sonos SonosEvents Process ID: 68002
Script SonosEvents: Publishing on port: 9999
Script SonosEvents: MediaRenderer subscription: uuid:RINCON_000E58A6B72201400_MR
Script SonosEvents: ZonePlayer subscription: uuid:RINCON_000E58A6B72201400
Sonos LineIn: Removed: RINCON_000E58A6B72201400, Audio Component:Media Room
Sonos LineIn: RINCON_000E58A6B72201400, Audio Component:Media Room
Script SonosEvents: ZonePlayer subscription: uuid:RINCON_B8E937709B6C01400
Script SonosEvents: MediaRenderer subscription: uuid:RINCON_000E5811190001400_MR
Script SonosEvents: ZonePlayer subscription: uuid:RINCON_000E5811190001400
Sonos LineIn: Removed: RINCON_000E5811190001400, Audio Component:Kitchen
Sonos LineIn: RINCON_000E5811190001400, Audio Component:Kitchen
Script SonosEvents: MediaRenderer subscription: uuid:RINCON_000E58148DFA01400_MR
Script SonosEvents: MediaRenderer subscription: uuid:RINCON_000E58122B2001400_MR
Script SonosEvents: ZonePlayer subscription: uuid:RINCON_000E58148DFA01400
Sonos LineIn: Removed: RINCON_000E58148DFA01400, Mic:Master Bedroom
Sonos LineIn: RINCON_000E58148DFA01400, Mic:Master Bedroom
Script SonosEvents: ZonePlayer subscription: uuid:RINCON_000E58122B2001400
Sonos LineIn: Removed: RINCON_000E58122B2001400, Audio Component:Workout Room
Sonos LineIn: RINCON_000E58122B2001400, Audio Component:Workout Room
Script SonosEvents: MediaRenderer subscription: uuid:RINCON_000E58A92C4E01400_MR
Script SonosEvents: ZonePlayer subscription: uuid:RINCON_000E58A92C4E01400
Sonos LineIn: Removed: RINCON_000E58A92C4E01400, Audio Component:Outside/Pool
Sonos LineIn: RINCON_000E58A92C4E01400, Audio Component:Outside/Pool

Posted on
Sat Aug 16, 2014 10:14 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Sonos - The Beginning

I just bought a PlayBar myself. Will have to unpack it and see what is going on.

Posted on
Sat Aug 16, 2014 10:22 am
farberm offline
Posts: 393
Joined: Feb 24, 2008

Re: Sonos - The Beginning

I got it to work about 30 minutes ago by reseting all players and then linking to another player and then it has started to show the status in indigo. Do not know what the issue was since all the other players were working

Posted on
Sun Oct 05, 2014 4:57 am
evansgo offline
Posts: 223
Joined: Nov 29, 2013

Re: Sonos - The Beginning

Just installed v x.22 and get this (and announcement doesn't work) I have seven zones all wired.

Sonos Adding ZonePlayer: RINCON_000E5812003C01400
Sonos Error Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
File "plugin.py", line 58, in runConcurrentThread
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos-2.indigoPlugin/Contents/Server Plugin/Sonos.py", line 159, in runConcurrentThread
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos-2.indigoPlugin/Contents/Server Plugin/Sonos.py", line 245, in initZones
<type 'exceptions.KeyError'>: key model not found in dict

Sonos Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
Trigger G welcome home kitchen Door
Sonos Error Error in plugin execution ExecuteAction:

Traceback (most recent call last):
File "plugin.py", line 162, in actionZP_announcementMP3
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos-2.indigoPlugin/Contents/Server Plugin/Sonos.py", line 923, in actionAnnouncement
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos-2.indigoPlugin/Contents/Server Plugin/Sonos.py", line 908, in actionStates
<type 'exceptions.KeyError'>: key model not found in dict

Sonos Error SOAPSend warning: waiting for command execution [192.168.10.7:0]


Posted on
Sun Oct 05, 2014 5:02 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Sonos - The Beginning

Please edit each ZonePlayer device in Indigo and select a model. I just added this to deal with differences with the Playbar.

Thanks.

Posted on
Sun Oct 05, 2014 5:12 am
evansgo offline
Posts: 223
Joined: Nov 29, 2013

Re: Sonos - The Beginning

:) I was just going to add that I deleted them all and re-added and that fixed most of the errors...

But I have still got this coming up, after a successful announcement

Sonos Announcement Length: 1.836
Sonos Error SOAPSend warning: waiting for command execution [192.168.10.7:0]
Sonos Error SOAPSend warning: waiting for command execution [192.168.10.7:1]
Sonos Error SOAPSend warning: waiting for command execution [192.168.10.7:2]

Just to add to this, this is on the Internet announcement option - none of the others work for me. But the message for the Internet streaming seems to get chopped off and then a second or so later the last half second of it comes through the speaker, most odd.

I have also tried the mp3 folder option, but this seems to stop things, no log entries after I do a test. I have entered "/Volumes/1TB HDD/Files/" but no files gets created and no sound, is this correct?

Thanks
Gareth

Posted on
Sun Oct 05, 2014 5:48 am
Seeker offline
Posts: 440
Joined: Aug 05, 2013

Re: Sonos - The Beginning

I know this is probably mentioned before, but every time i try to upgrade from 5 to 6, I get the following error when playing announcements.

Traceback (most recent call last):
File "plugin.py", line 162, in actionZP_announcementMP3
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 923, in actionAnnouncement
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 908, in actionStates
<type 'exceptions.KeyError'>: key model not found in dict


how do i fix this?

Posted on
Sun Oct 05, 2014 5:59 am
evansgo offline
Posts: 223
Joined: Nov 29, 2013

Re: Sonos - The Beginning

Look about three answers up...

Go into each device and enter its type

Posted on
Sun Oct 05, 2014 6:19 am
evansgo offline
Posts: 223
Joined: Nov 29, 2013

Re: Sonos - The Beginning

OK my mp3 playing is working again - I had to turn guest access off and then back on again - go figure.....

But still seeing these.

Sonos Announcement Length: 1.404
Sonos Error SOAPSend warning: waiting for command execution [192.168.10.7:0]
Sonos Error SOAPSend warning: waiting for command execution [192.168.10.7:1]

Posted on
Sun Oct 05, 2014 6:44 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Sonos - The Beginning

These are warnings .. and somewhat ok. If the count gets to 5, then we have a problem. The ZonePlayers are sometimes a little slow to respond.

evansgo wrote:
OK my mp3 playing is working again - I had to turn guest access off and then back on again - go figure.....

But still seeing these.

Sonos Announcement Length: 1.404
Sonos Error SOAPSend warning: waiting for command execution [192.168.10.7:0]
Sonos Error SOAPSend warning: waiting for command execution [192.168.10.7:1]

Posted on
Sun Oct 05, 2014 7:59 am
Seeker offline
Posts: 440
Joined: Aug 05, 2013

Re: Sonos - The Beginning

evansgo wrote:
Look about three answers up...

Go into each device and enter its type


Thanks, that fixed it.

1. TTS stream works, but it seems to chop off the last part of the last word. "now is the time for all good men" is played as "now is the time for all good me".

2. if I use TTS streaming does that mean that the SMB shares are no longer required?

3. my zone player states are now empty. how can i fix this? [edit: a reload of plugin fixed the states]

Posted on
Tue Oct 14, 2014 5:44 pm
kennybroh offline
Posts: 531
Joined: Dec 13, 2009
Location: Baltimore

Re: Sonos - The Beginning

I've got a few questions/enhancement requests. Maybe these have been discussed before, but I didn't see anything when I did a search.

First,, as Sonos makes their system more flexible and adds other music sources, if the plug-in doesn't allow access to them it becomes less useful for other than basic control. Is there any plan to expand support for things like Spotify (which is in many ways superior to Pandora,) a local music library, or a connected device? These would be very useful to add.

I notice that when I use the Sonos app to play music from my iPhone it works properly with the Sonos hardware, and the track information/album art displays properly in the Sonos app, but it does not display at all in the plug-in. The players do not reflect any state information or album art, and they don't show as playing on the control pages.

Second, for users like me who have a number of Sonos devices (I have 7 players and a pair of Play 3's) and want to have a single control page that can be used to manage multiple players, having to hard code a specific device to every button ends up with duplicating a number of controls which could be handled by one set of controls if the device could be set by a variable. For instance, if I want to select a channel or a source or volume, etc., I have to have individual controls for each player. is there any thought to making that more flexible? For example, when defining an action, one seemingly easy solution would be to allow the entry of a variable name in addition to selecting from a list of devices. (The same technique might be used for other things, like a music source.)

Another solution,, which may exist now but if it does I've missed it, is the ability to call your functions from a script, That would probably require some additional documentation from you, but it would provide the ultimate in flexibility. It might also be an easier way to enable people to add music sources themselves rather than continuing to hard code it into the plugin.

Am I asking about things that already exist, or if not, are any of them possible?

Thanks.

Posted on
Tue Oct 14, 2014 8:30 pm
DU Lou offline
Posts: 279
Joined: Mar 08, 2012
Location: Florida

Re: Sonos - The Beginning

Hi Nick,
In your announcement you had mentioned:
Do not feel compelled to install this update unless you installed v0.6.21 or have a PlayBar and want to test for me!

Is there any particular functionality you would like us to test with respect to the Playbar? I am running v0.6.22 and so far it works great! But I am just doing some basic playback and volume up/down stuff.

Thanks,
~Lou

Posted on
Wed Nov 19, 2014 2:48 pm
wysinawyg offline
Posts: 45
Joined: Oct 11, 2013

Re: Sonos - The Beginning

kennybroh wrote:
Another solution,, which may exist now but if it does I've missed it, is the ability to call your functions from a script, That would probably require some additional documentation from you, but it would provide the ultimate in flexibility. It might also be an easier way to enable people to add music sources themselves rather than continuing to hard code it into the plugin.


Kenny, I couldn't find this anywhere either so am sticking it here for posterity.

Script to start playing on a device number 123:

sonosId = "com.ssi.indigoplugin.Sonos"
sonosPlugin = indigo.server.getPlugin(sonosId)
sonosPlugin.executeAction("actionPlay", deviceId=123)

action names can be found in the Actions.xml file inside the Sonos plugin package, not tested yet but e.g.

actionTogglePlay
actionPause
actionStop
actionPrevious
actionNext

Yet to have a play for how to set the extra parameter for e.g. volume, playlist but I assume that just goes in the brackets after the device id.

Posted on
Thu Nov 20, 2014 12:55 am
wysinawyg offline
Posts: 45
Joined: Oct 11, 2013

Re: Sonos - The Beginning

Not quite that simple then but I've cracked it. More complex actions need the "props" setting, which props again can be worked out from Actions.xml.

So volume needs a "setting" from 1-100, e.g.:

sonosPlugin.executeAction("actionVolume", deviceId=123, props={"setting":"20"})

But trust me to have started with ZP_LIST (to set a playlist) which left me stuck for ages until I realised I might not know the right description for the playlist...

A check through indigo's main database (just using textedit) and I found my existing playlist action group commands and that indeed the "setting" value was a bit random. For me (though should be universal?) its as below with rsq#0, rsq#1 and rsq#2 being my 3 playlists which aren't named anything like that:

sonosPlugin.executeAction("actionZP_LIST", deviceId=123, props={"setting":"file:///jffs/settings/savedqueues.rsq#1", "mode":"Replace Queue"})

Page 24 of 37 1 ... 21, 22, 23, 24, 25, 26, 27 ... 37

Who is online

Users browsing this forum: No registered users and 2 guests

cron