A request for setup help

Posted on
Thu Nov 06, 2014 12:41 pm
jfeingold offline
Posts: 13
Joined: Nov 06, 2014

A request for setup help

Hi: I followed the directions to the bet of my (limited) abilities, but an so excited to be able to control Sonos from Indigo.

Received the error below: Please let me know what I may have done incorrectly. Regards, John.

Nov 6, 2014, 1:25:14 PM
Sonos Saved Plugin Configuration
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.indigoPlugin/Contents/Server Plugin/Sonos.py", line 161, in runConcurrentThread
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 1304, in getPlaylistsDirect
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 311, in SOAPSend
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/socket.py", line 304, in read
<class 'socket.error'>: (54, 'Connection reset by peer')

Sonos Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
Sonos Manually checking for updates
Sonos Your plugin version, v0.7.1, is current.

Posted on
Thu Nov 06, 2014 12:48 pm
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: A request for setup help

Could you put the plugin in debug mode and restart it? That may give us a better idea as to what is going on. Thanks.

jfeingold wrote:
Hi: I followed the directions to the bet of my (limited) abilities, but an so excited to be able to control Sonos from Indigo.

Received the error below: Please let me know what I may have done incorrectly. Regards, John.

Nov 6, 2014, 1:25:14 PM
Sonos Saved Plugin Configuration
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.indigoPlugin/Contents/Server Plugin/Sonos.py", line 161, in runConcurrentThread
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 1304, in getPlaylistsDirect
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 311, in SOAPSend
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/socket.py", line 304, in read
<class 'socket.error'>: (54, 'Connection reset by peer')

Sonos Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
Sonos Manually checking for updates
Sonos Your plugin version, v0.7.1, is current.

Posted on
Thu Nov 06, 2014 12:53 pm
jfeingold offline
Posts: 13
Joined: Nov 06, 2014

Re: A request for setup help

I checked all 3 debug boxes and restarted. This is my log result upon startup. Likely I'm doing something simple and obvious wrong.

Enabling plugin "Sonos 0.7.1"
Starting plugin "Sonos 0.7.1" (pid 347)
Sonos OSTYPE: 13
Sonos Subscribing on port: 9999
Started plugin "Sonos 0.7.1"
Sonos Your plugin version, v0.7.1, is current.
Sonos Debug Getting Plugin Configuration Settings
Sonos Debug Reference ZP IP: 192.168.1.2
Sonos Debug Publish/Subscribe Port: 9999
Sonos Debug Pandora: False
Sonos Debug Pandora User ID:
Sonos Debug Pandora Email Address:
Sonos Debug SiriusXM: False
Sonos Debug MP3 Path Override: None
Sonos Debug MP3 Path: None
Sonos Debug SMB Path:
Sonos Saved Plugin Configuration
Sonos Debug Loading Playlists...
Sonos Debug zoneIP: 192.168.1.2, soapRoot: /MediaServer, soapBranch: /ContentDirectory, soapAction: Browse
Sonos Debug <?xml version="1.0" encoding="utf-8"?>
<s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<ns0:Browse xmlns:ns0="urn:schemas-upnp-org:service:ContentDirectory:1">
<InstanceID>0</InstanceID>
<ObjectID>SQ:</ObjectID><BrowseFlag>BrowseDirectChildren</BrowseFlag><Filter></Filter><StartingIndex>0</StartingIndex><RequestedCount>1000</RequestedCount><SortCriteria></SortCriteria>
</ns0:Browse>
</s:Body>
</s:Envelope>

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.indigoPlugin/Contents/Server Plugin/Sonos.py", line 161, in runConcurrentThread
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 1304, in getPlaylistsDirect
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 311, in SOAPSend
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/socket.py", line 304, in read
<class 'socket.error'>: (54, 'Connection reset by peer')

Sonos Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
Sonos Debug Method: runConcurrentThread
Sonos Debug Running Concurrent Thread

Posted on
Thu Nov 06, 2014 12:59 pm
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: A request for setup help

Can I ask you to first confirm that the ip address you put in for the reference ZonePlayer is valid. You entered 192.168.1.2. You can verify that the ZonePlayer is reachable by typing the following url in a browser: http://192.168.1.2:1400/status/zp

Posted on
Thu Nov 06, 2014 2:43 pm
jfeingold offline
Posts: 13
Joined: Nov 06, 2014

Re: A request for setup help

Thanks, progress - that was the address of the bridge, my Play1 is at 192.168.1.8, and now the error is gone. (see below) However - I'm still struggling, Ive enclosed a screenshot attached.
The STATE responds with Playing or Stopped, so there is communication -

How do I make a Unit/control to initiate control, etc, did I miss some documentation somewhere? i.e. where is the equivalence of the Sonos IOS controller inIndigo.

Again I appreciate your help. John.


Nov 6, 2014, 3:34:38 PM
Disabling plugin "Sonos 0.7.1"
Stopping plugin "Sonos 0.7.1" (pid 429)
Stopped plugin "Sonos 0.7.1"
Enabling plugin "Sonos 0.7.1"
Starting plugin "Sonos 0.7.1" (pid 455)
Sonos OSTYPE: 13
Sonos Subscribing on port: 9999
Started plugin "Sonos 0.7.1"
Sonos Your plugin version, v0.7.1, is current.
Sonos Saved Plugin Configuration
Sonos Playlist: SQ:0, Broadway, file:///jffs/settings/savedqueues.rsq#0
Sonos RadioTime Favorite Station: R:0/0/2, WHUD, x-sonosapi-stream:s29456?sid=254&flags=32
Sonos Adding ZonePlayer: RINCON_B8E93752646E01400
Sonos SonosEvents Process ID: 470
Script SonosEvents: Publishing on port: 9999
Attachments
Screen Shot 2014-11-06 at 3.38.24 PM.png
Screen Shot 2014-11-06 at 3.38.24 PM.png (196.77 KiB) Viewed 4682 times

Posted on
Thu Nov 06, 2014 3:06 pm
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: A request for setup help

There is no built-in graphical interface for controlling the Sonos. You need to create a control page and add buttons that are associated with actions.

Posted on
Thu Nov 06, 2014 3:18 pm
jfeingold offline
Posts: 13
Joined: Nov 06, 2014

Re: A request for setup help

Thanks, I'll read about control pages tonight - where do I find the buttons, and actions in indigo? and are there instructions anywhere or an example?

I appreciate your help - will report tomorrow, regards, John.

Posted on
Fri Nov 07, 2014 11:18 am
jfeingold offline
Posts: 13
Joined: Nov 06, 2014

Re: A request for setup help

It will take until the weekend to study control pages - is there an easy way to just toggle the Sonos to play/pause - with out control pages, i.e., the equivalent to turn on/turnoff a lamp?
I do not see those boxes when I choose my Play1. Regards, John.

Posted on
Fri Nov 07, 2014 12:32 pm
colinpartridge offline
Posts: 373
Joined: Jan 13, 2014
Location: London, UK

Re: A request for setup help

There is a comprehensive list of sonos actions when you create an action group. You can then use triggers to fire those actions.
Colin
Attachments
sonos-actions.png
sonos-actions.png (170.31 KiB) Viewed 4583 times

Posted on
Fri Nov 07, 2014 2:38 pm
jfeingold offline
Posts: 13
Joined: Nov 06, 2014

Re: A request for setup help

Thank you, the screenshot is really helpful. John

Posted on
Fri Nov 21, 2014 8:56 am
pocster offline
User avatar
Posts: 276
Joined: Nov 15, 2014

Re: A request for setup help

Hey!

A Sonos plugin superb!
I'm a newbie (you don't say) so struggling a bit with this.
I installed 0.8 so I assume I've done it correctly.

I do get:

Sonos Error There was an error reading the plugin preferences. Please check your configuration.

Also I'm trying to setup simple things in a control page like 'play' or to list via albumin/artist + artwork (getting a little ahead of myself there).
Have encountered:

Sonos Error Error in plugin execution ExecuteAction:

Traceback (most recent call last):
File "plugin.py", line 84, in actionPlay
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 557, in actionDirect
<type 'exceptions.KeyError'>: key not found in database

Can someone point me in the right direction?. there appear's too be no documentation for a simple setup. So I think anyone willing to get me started would also benefit many others.
And yes!; once I have some basic functionality with sons via Indigo would be more than glad to donate!

thanks in advance

Posted on
Fri Nov 21, 2014 8:59 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: A request for setup help

Thanks for trying out the plugin. The most important thing to configure is an IP address for the reference ZonePlayer. It can be any one of your Sonos ZonePlayers. Do you know how to get to the plugin configuration screen .. Plugin Menu -> Sonos -> Configure.

Once you save your preferences, you should be good to go.

Good luck!

Posted on
Fri Nov 21, 2014 9:04 am
pocster offline
User avatar
Posts: 276
Joined: Nov 15, 2014

Re: A request for setup help

Hey!

yeah I did that!
I got a publish/scribe port as 9999 (whatever that is).

Also I haven't set the SMB path; because I don't know what it is ! :roll:

Don't thank me for trying it!. Thank-you for writing it!

Your help is appreciated!

Posted on
Fri Nov 21, 2014 9:11 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: A request for setup help

Can you put the plugin in debug mode and restart it. The output should be helpful to us. Thanks.

Posted on
Fri Nov 21, 2014 9:27 am
pocster offline
User avatar
Posts: 276
Joined: Nov 15, 2014

Re: A request for setup help

Sure thing!
Here you go:

Starting plugin "Sonos 0.8.0" (pid 1794)
Sonos Subscribing on port: 9999
Sonos Sonos Ignition... [7]
Sonos Sonos Ignition... [6]
Sonos Sonos Ignition... [5]
Sonos Sonos Ignition... [4]
Sonos Sonos Ignition... [3]
Sonos Sonos Ignition... [2]
Sonos Sonos Ignition... [1]
Started plugin "Sonos 0.8.0"
Sonos Your plugin version, v0.8.0, is current.
Sonos Debug Getting Plugin Configuration Settings
Sonos Debug Reference ZP IP: 192.168.0.2
Sonos Debug Publish/Subscribe Port: 9999
Sonos Debug Pandora: False
Sonos Debug Pandora User ID:
Sonos Debug Pandora Email Address:
Sonos Debug SiriusXM: False
Sonos Debug MP3 Path Override: None
Sonos Debug MP3 Path: None
Sonos Debug SMB Path:
Sonos Saved Plugin Configuration
Sonos Debug Loading Playlists...
Sonos Debug zoneIP: 192.168.0.2, soapRoot: /MediaServer, soapBranch: /ContentDirectory, soapAction: Browse
Sonos Debug ZP: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:BrowseResponse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"><Result><DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"></DIDL-Lite></Result><NumberReturned>0</NumberReturned><TotalMatches>0</TotalMatches><UpdateID>0</UpdateID></u:BrowseResponse></s:Body></s:Envelope>
Sonos Debug Loading RadioTime Favorite Stations...
Sonos Debug zoneIP: 192.168.0.2, soapRoot: /MediaServer, soapBranch: /ContentDirectory, soapAction: Browse
Sonos Debug ZP: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:BrowseResponse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"><Result><DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"></DIDL-Lite></Result><NumberReturned>0</NumberReturned><TotalMatches>0</TotalMatches><UpdateID>0</UpdateID></u:BrowseResponse></s:Body></s:Envelope>
Sonos Debug ZonePlayer: Sonos Kitchen, Enabled: True
Sonos Debug Resetting States for zone: 192.168.0.2
Sonos Debug Updating Device: Sonos Kitchen, State: ZP_ALBUM, Value:
Sonos Debug Updating Device: Sonos Kitchen, State: ZP_ART, Value:
Sonos Debug Updating Device: Sonos Kitchen, State: ZP_ARTIST, Value:
Sonos Debug Updating Device: Sonos Kitchen, State: ZP_CREATOR, Value:
Sonos Debug Updating Device: Sonos Kitchen, State: ZP_CurrentURI, Value:
Sonos Debug Updating Device: Sonos Kitchen, State: ZP_DURATION, Value:
Sonos Debug Updating Device: Sonos Kitchen, State: ZP_INFO, Value:
Sonos Debug Updating Device: Sonos Kitchen, State: ZP_MUTE, Value:
Sonos Debug Updating Device: Sonos Kitchen, State: ZP_STATE, Value:
Sonos Debug Updating Device: Sonos Kitchen, State: ZP_STATION, Value:
Sonos Debug Updating Device: Sonos Kitchen, State: ZP_TRACK, Value:
Sonos Debug Updating Device: Sonos Kitchen, State: ZP_VOLUME, Value:
Sonos Debug Updating Device: Sonos Kitchen, State: ZP_VOLUME_FIXED, Value:
Sonos Debug Updating Device: Sonos Kitchen, State: ZP_ZoneName, Value:
Sonos Debug Updating Device: Sonos Kitchen, State: ZP_LocalUID, Value:
Sonos Debug Updating Device: Sonos Kitchen, State: ZP_AIName, Value:
Sonos Debug Updating Device: Sonos Kitchen, State: ZP_AIPath, Value:
Sonos Debug Updating Device: Sonos Kitchen, State: ZP_NALBUM, Value:
Sonos Debug Updating Device: Sonos Kitchen, State: ZP_NART, Value:
Sonos Debug Updating Device: Sonos Kitchen, State: ZP_NARTIST, Value:
Sonos Debug Updating Device: Sonos Kitchen, State: ZP_NTRACK, Value:
Sonos Debug Updating Device: Sonos Kitchen, State: Q_Crossfade, Value: off
Sonos Debug Updating Device: Sonos Kitchen, State: Q_Repeat, Value: off
Sonos Debug Updating Device: Sonos Kitchen, State: Q_Shuffle, Value: off
Sonos Debug Updating Device: Sonos Kitchen, State: GROUP_Coordinator, Value:
Sonos Debug Updating Device: Sonos Kitchen, State: GROUP_Name, Value:
Sonos Debug Updating Device: Sonos Kitchen, State: ZP_CurrentTrack, Value:
Sonos Debug Updating Device: Sonos Kitchen, State: ZoneGroupID, Value:
Sonos Debug Updating Device: Sonos Kitchen, State: ZoneGroupName, Value:
Sonos Debug Updating Device: Sonos Kitchen, State: ZonePlayerUUIDsInGroup, Value:
Sonos Debug Updating Device: Sonos Kitchen, State: ZP_ZoneName, Value: Kitchen
Sonos Debug Updating Device: Sonos Kitchen, State: ZP_LocalUID, Value: RINCON_000E58DD142401400
Sonos Adding ZonePlayer: RINCON_000E58DD142401400
Sonos Starting ControlPoint...
Sonos Debug SonosEvents: WARN coherence Nov 21 15:26:16 Coherence UPnP framework version 0.6.6.2 starting... (coherence/base.py:283)
Sonos Debug SonosEvents: WARN webserver Nov 21 15:26:16 WebServer on port 52166 ready (coherence/base.py:124)
Sonos Debug SonosEvents: Unhandled Error
Sonos Debug SonosEvents: Traceback (most recent call last):
Sonos Debug SonosEvents: File "./lib/twisted/internet/base.py", line 413, in fireEvent
Sonos Debug SonosEvents: DeferredList(beforeResults).addCallback(self._continueFiring)
Sonos Debug SonosEvents: File "./lib/twisted/internet/defer.py", line 297, in addCallback
Sonos Debug SonosEvents: callbackKeywords=kw)
Sonos Debug SonosEvents: File "./lib/twisted/internet/defer.py", line 286, in addCallbacks
Sonos Debug SonosEvents: self._runCallbacks()
Sonos Debug SonosEvents: File "./lib/twisted/internet/defer.py", line 542, in _runCallbacks
Sonos Debug SonosEvents: current.result = callback(current.result, *args, **kw)
Sonos Debug SonosEvents: --- <exception caught here> ---
Sonos Debug SonosEvents: File "./lib/twisted/internet/base.py", line 426, in _continueFiring
Sonos Debug SonosEvents: callable(*args, **kwargs)
Sonos Debug SonosEvents: File "./lib/twisted/internet/base.py", line 1157, in _reallyStartRunning
Sonos Debug SonosEvents: self._handleSignals()
Sonos Debug SonosEvents: File "./lib/twisted/internet/posixbase.py", line 277, in _handleSignals
Sonos Debug SonosEvents: _SignalReactorMixin._handleSignals(self)
Sonos Debug SonosEvents: File "./lib/twisted/internet/base.py", line 1123, in _handleSignals
Sonos Debug SonosEvents: signal.signal(signal.SIGTERM, self.sigTerm)
Sonos Debug SonosEvents: exceptions.ValueError: signal only works in main thread
Sonos Debug SonosEvents: ./lib/coherence/extern/louie.py:44: UserWarning: extern.louie will soon be deprecated in favor of coherence.dispatcher.
Sonos Debug SonosEvents: warnings.warn("extern.louie will soon be deprecated in favor of coherence.dispatcher.")

Who is online

Users browsing this forum: CliveS and 10 guests