Sonos

Posted on
Fri Aug 24, 2012 9:57 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Sonos

Ok. Let me know Terry. Outside of a little cleanup, I think this plugin is in decent shape for a while. Hope it's been performing well for you.

Posted on
Fri Aug 24, 2012 10:37 am
terrydew offline
Posts: 258
Joined: Jun 10, 2011

Re: Sonos

Yes it has been working fine. As I was setting up some groups it occurred to me that it would be much easier to setup a group with a listing similar to the announcement action. Is that possible? That way one action would form a group.

I have been away for a while so if this has been covered before just point me in correct direction.

Thanks
Terry

Posted on
Sat Aug 25, 2012 8:56 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Sonos

That is an interesting idea Terry. To play the same exact audio on multiple ZonePlayers would require grouping the controllers prior to issuing a command. I don't think i could have a selector like the announcement action. What I could do is wrap in grouping to an action. Let me think about how to implement this function.

Posted on
Sat Aug 25, 2012 10:12 am
terrydew offline
Posts: 258
Joined: Jun 10, 2011

Re: Sonos

I think I see the difference. If it is required, a zone say the primary zone would always be in any group and if the user did not want to hear the primary zone he could issue a mute command for that zone after the "grouping" action or if possible a checkbox in the grouping action to do this.

Thanks for considering this feature.

Terry

Posted on
Fri Sep 21, 2012 10:15 am
boekweg offline
Posts: 70
Joined: Oct 02, 2010
Location: Netherlands

Re: Sonos

Hi there, thanks a lot for the Sonos plugin. I got it working!
One question: I do get a lot of error messages in my event log, any idea who come?
It makes my eventlog unreadable with an error update every 10 seconds.

By the way, I looked at the other messages with regards to this problem, their solutions didn't help.

Tx Paul


Sonos Error Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
File "plugin.py", line 46, in runConcurrentThread
File "/Library/Application Support/Perceptive Automation/Indigo 5/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 92, in runConcurrentThread
File "/Library/Application Support/Perceptive Automation/Indigo 5/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 197, in checkDirect
File "/Library/Application Support/Perceptive Automation/Indigo 5/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 205, in checkOneDirect
File "/Library/Application Support/Perceptive Automation/Indigo 5/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 172, in SOAPSend
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/socket.py", line 291, 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 Error Error in plugin execution runConcurrentThread:

Posted on
Sat Sep 29, 2012 12:47 pm
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Sonos

boekweg,

These messages indicate some network communication issue between the Indigo server and the ZonePlayer. We will be more sure if you can put the plugin in debug mode and re-run. I'd like to see that there isn't anything else going on.

How many ZonePlayers do you have?

Posted on
Tue Oct 02, 2012 11:58 am
boekweg offline
Posts: 70
Joined: Oct 02, 2010
Location: Netherlands

Re: Sonos

I have two S3 players (one in garden) and one in bathroom and two S5's switched as stereo pair in the living room. It's all connected through a zone bridge. All wireless.
I'm not sure what the reference player is that is mentioned in the several solutions. I have one of the S5's ip adress filled in in this field.

I did what you requested:

The log is down here:


Reloading plugin "Sonos 0.5.1"
Stopping plugin "Sonos 0.5.1" (pid 18502)
Plugin "Sonos" disconnected
Starting plugin "Sonos 0.5.1" (pid 18504)
Plugin "Sonos" connected
Plugin "Sonos 0.5.1" started
Sonos Error exception in deviceStartComm(Sonos play 3 B): (54, 'Connection reset by peer')
Sonos LineIn: RINCON_000E58545D6601400, Line-In
Sonos Debug Getting Plugin Configuration Settings
Sonos Debug Connection Type: Socket
Sonos Debug Reference ZP IP: 10.0.1.3
Sonos Debug Direct Poll: True
Sonos Debug Polling Interval: 10
Sonos Debug Pandora: False
Sonos Debug Pandora User ID:
Sonos Debug Pandora Email Address:
Sonos Debug SiriusXM: False
Sonos Saved Plugin Configuration
Sonos Debug Loading Playlists...
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 Debug <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>&lt;DIDL-Lite xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot; xmlns:upnp=&quot;urn:schemas-upnp-org:metadata-1-0/upnp/&quot; xmlns:r=&quot;urn:schemas-rinconnetworks-com:metadata-1-0/&quot; xmlns=&quot;urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/&quot;&gt;&lt;container id=&quot;SQ:0&quot; parentID=&quot;SQ:&quot; restricted=&quot;true&quot;&gt;&lt;dc:title&gt;Badkamer&lt;/dc:title&gt;&lt;res protocolInfo=&quot;file:*:audio/mpegurl:*&quot;&gt;file:///jffs/settings/savedqueues.rsq#0&lt;/res&gt;&lt;upnp:class&gt;object.container.playlistContainer&lt;/upnp:class&gt;&lt;/container&gt;&lt;container id=&quot;SQ:2&quot; parentID=&quot;SQ:&quot; restricted=&quot;true&quot;&gt;&lt;dc:title&gt;Badkamer2&lt;/dc:title&gt;&lt;res protocolInfo=&quot;file:*:audio/mpegurl:*&quot;&gt;file:///jffs/settings/savedqueues.rsq#2&lt;/res&gt;&lt;upnp:class&gt;object.container.playlistContainer&lt;/upnp:class&gt;&lt;/container&gt;&lt;container id=&quot;SQ:1&quot; parentID=&quot;SQ:&quot; restricted=&quot;true&quot;&gt;&lt;dc:title&gt;Sonos-lijst 1&lt;/dc:title&gt;&lt;res protocolInfo=&quot;file:*:audio/mpegurl:*&quot;&gt;file:///jffs/settings/savedqueues.rsq#1&lt;/res&gt;&lt;upnp:class&gt;object.container.playlistContainer&lt;/upnp:class&gt;&lt;/container&gt;&lt;/DIDL-Lite&gt;</Result><NumberReturned>3</NumberReturned><TotalMatches>3</TotalMatches><UpdateID>0</UpdateID></u:BrowseResponse></s:Body></s:Envelope>
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/"><container id="SQ:0" parentID="SQ:" restricted="true"><dc:title>Badkamer</dc:title><res protocolInfo="file:*:audio/mpegurl:*">file:///jffs/settings/savedqueues.rsq#0</res><upnp:class>object.container.playlistContainer</upnp:class></container><container id="SQ:2" parentID="SQ:" restricted="true"><dc:title>Badkamer2</dc:title><res protocolInfo="file:*:audio/mpegurl:*">file:///jffs/settings/savedqueues.rsq#2</res><upnp:class>object.container.playlistContainer</upnp:class></container><container id="SQ:1" parentID="SQ:" restricted="true"><dc:title>Sonos-lijst 1</dc:title><res protocolInfo="file:*:audio/mpegurl:*">file:///jffs/settings/savedqueues.rsq#1</res><upnp:class>object.container.playlistContainer</upnp:class></container></DIDL-Lite></Result><NumberReturned>3</NumberReturned><TotalMatches>3</TotalMatches><UpdateID>0</UpdateID></u:BrowseResponse></s:Body></s:Envelope>
Sonos Playlist: SQ:0, Badkamer, file:///jffs/settings/savedqueues.rsq#0
Sonos Playlist: SQ:2, Badkamer2, file:///jffs/settings/savedqueues.rsq#2
Sonos Playlist: SQ:1, Sonos-lijst 1, file:///jffs/settings/savedqueues.rsq#1
Sonos Debug Loading RadioTime Favorite Stations...
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>R:0/0</ObjectID><BrowseFlag>BrowseDirectChildren</BrowseFlag><Filter></Filter><StartingIndex>0</StartingIndex><RequestedCount>1000</RequestedCount><SortCriteria></SortCriteria>
</ns0:Browse>
</s:Body>
</s:Envelope>

Sonos Debug <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>&lt;DIDL-Lite xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot; xmlns:upnp=&quot;urn:schemas-upnp-org:metadata-1-0/upnp/&quot; xmlns:r=&quot;urn:schemas-rinconnetworks-com:metadata-1-0/&quot; xmlns=&quot;urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/&quot;&gt;&lt;item id=&quot;R:0/0/4&quot; parentID=&quot;R:0/0&quot; restricted=&quot;false&quot;&gt;&lt;dc:title&gt;100% NL 94.2 (Nederlands)&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.audioItem.audioBroadcast&lt;/upnp:class&gt;&lt;res protocolInfo=&quot;x-rincon-mp3radio:*:*:*&quot;&gt;x-sonosapi-stream:s78123?sid=254&amp;amp;flags=32&lt;/res&gt;&lt;/item&gt;&lt;item id=&quot;R:0/0/2&quot; parentID=&quot;R:0/0&quot; restricted=&quot;false&quot;&gt;&lt;dc:title&gt;3FM 88.6 (Modern Rock)&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.audioItem.audioBroadcast&lt;/upnp:class&gt;&lt;res protocolInfo=&quot;x-rincon-mp3radio:*:*:*&quot;&gt;x-sonosapi-stream:s64999?sid=254&amp;amp;flags=32&lt;/res&gt;&lt;/item&gt;&lt;item id=&quot;R:0/0/5&quot; parentID=&quot;R:0/0&quot; restricted=&quot;false&quot;&gt;&lt;dc:title&gt;BNR Nieuws Radio 89.6 (Nieuws)&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.audioItem.audioBroadcast&lt;/upnp:class&gt;&lt;res protocolInfo=&quot;x-rincon-mp3radio:*:*:*&quot;&gt;x-sonosapi-stream:s45125?sid=254&amp;amp;flags=32&lt;/res&gt;&lt;/item&gt;&lt;item id=&quot;R:0/0/1&quot; parentID=&quot;R:0/0&quot; restricted=&quot;false&quot;&gt;&lt;dc:title&gt;City FM 98.7 (Classic Rock)&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.audioItem.audioBroadcast&lt;/upnp:class&gt;&lt;res protocolInfo=&quot;x-rincon-mp3radio:*:*:*&quot;&gt;x-sonosapi-stream:s17066?sid=254&amp;amp;flags=32&lt;/res&gt;&lt;/item&gt;&lt;item id=&quot;R:0/0/3&quot; parentID=&quot;R:0/0&quot; restricted=&quot;false&quot;&gt;&lt;dc:title&gt;Jack FM&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.audioItem.audioBroadcast&lt;/upnp:class&gt;&lt;res protocolInfo=&quot;x-rincon-mp3radio:*:*:*&quot;&gt;x-sonosapi-stream:s84493?sid=254&amp;amp;flags=32&lt;/res&gt;&lt;/item&gt;&lt;item id=&quot;R:0/0/6&quot; parentID=&quot;R:0/0&quot; restricted=&quot;false&quot;&gt;&lt;dc:title&gt;Q Music 100.4 (Euro Hits)&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.audioItem.audioBroadcast&lt;/upnp:class&gt;&lt;res protocolInfo=&quot;x-rincon-mp3radio:*:*:*&quot;&gt;x-sonosapi-stream:s98595?sid=254&amp;amp;flags=32&lt;/res&gt;&lt;/item&gt;&lt;item id=&quot;R:0/0/0&quot; parentID=&quot;R:0/0&quot; restricted=&quot;false&quot;&gt;&lt;dc:title&gt;Radio 538&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.audioItem.audioBroadcast&lt;/upnp:class&gt;&lt;res protocolInfo=&quot;x-rincon-mp3radio:*:*:*&quot;&gt;x-sonosapi-stream:s6712?sid=254&amp;amp;flags=32&lt;/res&gt;&lt;/item&gt;&lt;item id=&quot;R:0/0/7&quot; parentID=&quot;R:0/0&quot; restricted=&quot;false&quot;&gt;&lt;dc:title&gt;Radio 538 102.2 (Euro Hits)&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.audioItem.audioBroadcast&lt;/upnp:class&gt;&lt;res protocolInfo=&quot;x-rincon-mp3radio:*:*:*&quot;&gt;x-sonosapi-stream:s48118?sid=254&amp;amp;flags=32&lt;/res&gt;&lt;/item&gt;&lt;item id=&quot;R:0/0/8&quot; parentID=&quot;R:0/0&quot; restricted=&quot;false&quot;&gt;&lt;dc:title&gt;Radio Noord 97.5 (TV-Nieuws)&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.audioItem.audioBroadcast&lt;/upnp:class&gt;&lt;res protocolInfo=&quot;x-rincon-mp3radio:*:*:*&quot;&gt;x-sonosapi-stream:s18027?sid=254&amp;amp;flags=32&lt;/res&gt;&lt;/item&gt;&lt;item id=&quot;R:0/0/9&quot; parentID=&quot;R:0/0&quot; restricted=&quot;false&quot;&gt;&lt;dc:title&gt;Radio Veronica 103.2 (Pop)&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.audioItem.audioBroadcast&lt;/upnp:class&gt;&lt;res protocolInfo=&quot;x-rincon-mp3radio:*:*:*&quot;&gt;x-sonosapi-stream:s98513?sid=254&amp;amp;flags=32&lt;/res&gt;&lt;/item&gt;&lt;item id=&quot;R:0/0/10&quot; parentID=&quot;R:0/0&quot; restricted=&quot;false&quot;&gt;&lt;dc:title&gt;Simone FM 92.9 (Variëté)&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.audioItem.audioBroadcast&lt;/upnp:class&gt;&lt;res protocolInfo=&quot;x-rincon-mp3radio:*:*:*&quot;&gt;x-sonosapi-stream:s54833?sid=254&amp;amp;flags=32&lt;/res&gt;&lt;/item&gt;&lt;item id=&quot;R:0/0/12&quot; parentID=&quot;R:0/0&quot; restricted=&quot;false&quot;&gt;&lt;dc:title&gt;Sky Radio&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.audioItem.audioBroadcast&lt;/upnp:class&gt;&lt;res protocolInfo=&quot;x-rincon-mp3radio:*:*:*&quot;&gt;x-sonosapi-stream:s95485?sid=254&amp;amp;flags=32&lt;/res&gt;&lt;/item&gt;&lt;item id=&quot;R:0/0/11&quot; parentID=&quot;R:0/0&quot; restricted=&quot;false&quot;&gt;&lt;dc:title&gt;Sky Radio 101.0 (Top-40-Pop)&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.audioItem.audioBroadcast&lt;/upnp:class&gt;&lt;res protocolInfo=&quot;x-rincon-mp3radio:*:*:*&quot;&gt;x-sonosapi-stream:s95485?sid=254&amp;amp;flags=32&lt;/res&gt;&lt;/item&gt;&lt;item id=&quot;R:0/0/13&quot; parentID=&quot;R:0/0&quot; restricted=&quot;false&quot;&gt;&lt;dc:title&gt;XtraFM&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.audioItem.audioBroadcast&lt;/upnp:class&gt;&lt;res protocolInfo=&quot;x-rincon-mp3radio:*:*:*&quot;&gt;x-sonosapi-stream:s81368?sid=254&amp;amp;flags=32&lt;/res&gt;&lt;/item&gt;&lt;/DIDL-Lite&gt;</Result><NumberReturned>14</NumberReturned><TotalMatches>14</TotalMatches><UpdateID>0</UpdateID></u:BrowseResponse></s:Body></s:Envelope>
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/"><item id="R:0/0/4" parentID="R:0/0" restricted="false"><dc:title>100% NL 94.2 (Nederlands)</dc:title><upnp:class>object.item.audioItem.audioBroadcast</upnp:class><res protocolInfo="x-rincon-mp3radio:*:*:*">x-sonosapi-stream:s78123?sid=254&amp;amp;flags=32</res></item><item id="R:0/0/2" parentID="R:0/0" restricted="false"><dc:title>3FM 88.6 (Modern Rock)</dc:title><upnp:class>object.item.audioItem.audioBroadcast</upnp:class><res protocolInfo="x-rincon-mp3radio:*:*:*">x-sonosapi-stream:s64999?sid=254&amp;amp;flags=32</res></item><item id="R:0/0/5" parentID="R:0/0" restricted="false"><dc:title>BNR Nieuws Radio 89.6 (Nieuws)</dc:title><upnp:class>object.item.audioItem.audioBroadcast</upnp:class><res protocolInfo="x-rincon-mp3radio:*:*:*">x-sonosapi-stream:s45125?sid=254&amp;amp;flags=32</res></item><item id="R:0/0/1" parentID="R:0/0" restricted="false"><dc:title>City FM 98.7 (Classic Rock)</dc:title><upnp:class>object.item.audioItem.audioBroadcast</upnp:class><res protocolInfo="x-rincon-mp3radio:*:*:*">x-sonosapi-stream:s17066?sid=254&amp;amp;flags=32</res></item><item id="R:0/0/3" parentID="R:0/0" restricted="false"><dc:title>Jack FM</dc:title><upnp:class>object.item.audioItem.audioBroadcast</upnp:class><res protocolInfo="x-rincon-mp3radio:*:*:*">x-sonosapi-stream:s84493?sid=254&amp;amp;flags=32</res></item><item id="R:0/0/6" parentID="R:0/0" restricted="false"><dc:title>Q Music 100.4 (Euro Hits)</dc:title><upnp:class>object.item.audioItem.audioBroadcast</upnp:class><res protocolInfo="x-rincon-mp3radio:*:*:*">x-sonosapi-stream:s98595?sid=254&amp;amp;flags=32</res></item><item id="R:0/0/0" parentID="R:0/0" restricted="false"><dc:title>Radio 538</dc:title><upnp:class>object.item.audioItem.audioBroadcast</upnp:class><res protocolInfo="x-rincon-mp3radio:*:*:*">x-sonosapi-stream:s6712?sid=254&amp;amp;flags=32</res></item><item id="R:0/0/7" parentID="R:0/0" restricted="false"><dc:title>Radio 538 102.2 (Euro Hits)</dc:title><upnp:class>object.item.audioItem.audioBroadcast</upnp:class><res protocolInfo="x-rincon-mp3radio:*:*:*">x-sonosapi-stream:s48118?sid=254&amp;amp;flags=32</res></item><item id="R:0/0/8" parentID="R:0/0" restricted="false"><dc:title>Radio Noord 97.5 (TV-Nieuws)</dc:title><upnp:class>object.item.audioItem.audioBroadcast</upnp:class><res protocolInfo="x-rincon-mp3radio:*:*:*">x-sonosapi-stream:s18027?sid=254&amp;amp;flags=32</res></item><item id="R:0/0/9" parentID="R:0/0" restricted="false"><dc:title>Radio Veronica 103.2 (Pop)</dc:title><upnp:class>object.item.audioItem.audioBroadcast</upnp:class><res protocolInfo="x-rincon-mp3radio:*:*:*">x-sonosapi-stream:s98513?sid=254&amp;amp;flags=32</res></item><item id="R:0/0/10" parentID="R:0/0" restricted="false"><dc:title>Simone FM 92.9 (Variëté)</dc:title><upnp:class>object.item.audioItem.audioBroadcast</upnp:class><res protocolInfo="x-rincon-mp3radio:*:*:*">x-sonosapi-stream:s54833?sid=254&amp;amp;flags=32</res></item><item id="R:0/0/12" parentID="R:0/0" restricted="false"><dc:title>Sky Radio</dc:title><upnp:class>object.item.audioItem.audioBroadcast</upnp:class><res protocolInfo="x-rincon-mp3radio:*:*:*">x-sonosapi-stream:s95485?sid=254&amp;amp;flags=32</res></item><item id="R:0/0/11" parentID="R:0/0" restricted="false"><dc:title>Sky Radio 101.0 (Top-40-Pop)</dc:title><upnp:class>object.item.audioItem.audioBroadcast</upnp:class><res protocolInfo="x-rincon-mp3radio:*:*:*">x-sonosapi-stream:s95485?sid=254&amp;amp;flags=32</res></item><item id="R:0/0/13" parentID="R:0/0" restricted="false"><dc:title>XtraFM</dc:title><upnp:class>object.item.audioItem.audioBroadcast</upnp:class><res protocolInfo="x-rincon-mp3radio:*:*:*">x-sonosapi-stream:s81368?sid=254&amp;amp;flags=32</res></item></DIDL-Lite></Result><NumberReturned>14</NumberReturned><TotalMatches>14</TotalMatches><UpdateID>0</UpdateID></u:BrowseResponse></s:Body></s:Envelope>
Sonos RadioTime Favorite Station: R:0/0/4, 100% NL 94.2 (Nederlands), x-sonosapi-stream:s78123?sid=254&flags=32
Sonos RadioTime Favorite Station: R:0/0/2, 3FM 88.6 (Modern Rock), x-sonosapi-stream:s64999?sid=254&flags=32
Sonos RadioTime Favorite Station: R:0/0/5, BNR Nieuws Radio 89.6 (Nieuws), x-sonosapi-stream:s45125?sid=254&flags=32
Sonos RadioTime Favorite Station: R:0/0/1, City FM 98.7 (Classic Rock), x-sonosapi-stream:s17066?sid=254&flags=32
Sonos RadioTime Favorite Station: R:0/0/3, Jack FM, x-sonosapi-stream:s84493?sid=254&flags=32
Sonos RadioTime Favorite Station: R:0/0/6, Q Music 100.4 (Euro Hits), x-sonosapi-stream:s98595?sid=254&flags=32
Sonos RadioTime Favorite Station: R:0/0/0, Radio 538, x-sonosapi-stream:s6712?sid=254&flags=32
Sonos RadioTime Favorite Station: R:0/0/7, Radio 538 102.2 (Euro Hits), x-sonosapi-stream:s48118?sid=254&flags=32
Sonos RadioTime Favorite Station: R:0/0/8, Radio Noord 97.5 (TV-Nieuws), x-sonosapi-stream:s18027?sid=254&flags=32
Sonos RadioTime Favorite Station: R:0/0/9, Radio Veronica 103.2 (Pop), x-sonosapi-stream:s98513?sid=254&flags=32
Sonos RadioTime Favorite Station: R:0/0/10, Simone FM 92.9 (Variëté), x-sonosapi-stream:s54833?sid=254&flags=32
Sonos RadioTime Favorite Station: R:0/0/12, Sky Radio, x-sonosapi-stream:s95485?sid=254&flags=32
Sonos RadioTime Favorite Station: R:0/0/11, Sky Radio 101.0 (Top-40-Pop), x-sonosapi-stream:s95485?sid=254&flags=32
Sonos RadioTime Favorite Station: R:0/0/13, XtraFM, x-sonosapi-stream:s81368?sid=254&flags=32
Sonos Debug Resetting States for zone: 10.0.1.25
Sonos Debug Updating Device: Sonos play 3 B, State: ZP_ALBUM, Value:
Sonos Debug Updating Device: Sonos play 3 B, State: ZP_ART, Value:
Sonos Debug Updating Device: Sonos play 3 B, State: ZP_ARTIST, Value:
Sonos Debug Updating Device: Sonos play 3 B, State: ZP_CLASS, Value:
Sonos Debug Updating Device: Sonos play 3 B, State: ZP_CurrentURI, Value:
Sonos Debug Updating Device: Sonos play 3 B, State: ZP_DURATION, Value:
Sonos Debug Updating Device: Sonos play 3 B, State: ZP_INFO, Value:
Sonos Debug Updating Device: Sonos play 3 B, State: ZP_MUTE, Value:
Sonos Debug Updating Device: Sonos play 3 B, State: ZP_ONNOW, Value:
Sonos Debug Updating Device: Sonos play 3 B, State: ZP_PERCENT, Value:
Sonos Debug Updating Device: Sonos play 3 B, State: ZP_POSITION, Value:
Sonos Debug Updating Device: Sonos play 3 B, State: ZP_STATE, Value:
Sonos Debug Updating Device: Sonos play 3 B, State: ZP_STATION, Value:
Sonos Debug Updating Device: Sonos play 3 B, State: ZP_TRACK, Value:
Sonos Debug Updating Device: Sonos play 3 B, State: ZP_TYPE, Value:
Sonos Debug Updating Device: Sonos play 3 B, State: ZP_VOLUME, Value:
Sonos Debug Updating Device: Sonos play 3 B, State: ZP_VOLUME_FIXED, Value:
Sonos Debug Updating Device: Sonos play 3 B, State: ZP_ZoneName, Value:
Sonos Debug Updating Device: Sonos play 3 B, State: ZP_LocalUID, Value:
Sonos Debug Updating Device: Sonos play 3 B, State: ZP_NALBUM, Value:
Sonos Debug Updating Device: Sonos play 3 B, State: ZP_NART, Value:
Sonos Debug Updating Device: Sonos play 3 B, State: ZP_NARTIST, Value:
Sonos Debug Updating Device: Sonos play 3 B, State: ZP_NTRACK, Value:
Sonos Debug Updating Device: Sonos play 3 B, State: Q_Crossfade, Value: off
Sonos Debug Updating Device: Sonos play 3 B, State: Q_Repeat, Value: off
Sonos Debug Updating Device: Sonos play 3 B, State: Q_Shuffle, Value: off
Sonos Debug Updating Device: Sonos play 3 B, State: GROUP_Coordinator, Value:
Sonos Debug Updating Device: Sonos play 3 B, State: GROUP_Name, Value:
Sonos Debug Updating Device: Sonos play 3 B, State: ZP_ZoneName, Value: Badkamer
Sonos Debug Updating Device: Sonos play 3 B, State: ZP_LocalUID, Value: RINCON_000E5870BE6001400
Sonos Debug Resetting States for zone: 10.0.1.38
Sonos Debug Updating Device: Sonos play 3 T, State: ZP_ALBUM, Value:
Sonos Debug Updating Device: Sonos play 3 T, State: ZP_ART, Value:
Sonos Debug Updating Device: Sonos play 3 T, State: ZP_ARTIST, Value:
Sonos Debug Updating Device: Sonos play 3 T, State: ZP_CLASS, Value:
Sonos Debug Updating Device: Sonos play 3 T, State: ZP_CurrentURI, Value:
Sonos Debug Updating Device: Sonos play 3 T, State: ZP_DURATION, Value:
Sonos Debug Updating Device: Sonos play 3 T, State: ZP_INFO, Value:
Sonos Debug Updating Device: Sonos play 3 T, State: ZP_MUTE, Value:
Sonos Debug Updating Device: Sonos play 3 T, State: ZP_ONNOW, Value:
Sonos Debug Updating Device: Sonos play 3 T, State: ZP_PERCENT, Value:
Sonos Debug Updating Device: Sonos play 3 T, State: ZP_POSITION, Value:
Sonos Debug Updating Device: Sonos play 3 T, State: ZP_STATE, Value:
Sonos Debug Updating Device: Sonos play 3 T, State: ZP_STATION, Value:
Sonos Debug Updating Device: Sonos play 3 T, State: ZP_TRACK, Value:
Sonos Debug Updating Device: Sonos play 3 T, State: ZP_TYPE, Value:
Sonos Debug Updating Device: Sonos play 3 T, State: ZP_VOLUME, Value:
Sonos Debug Updating Device: Sonos play 3 T, State: ZP_VOLUME_FIXED, Value:
Sonos Debug Updating Device: Sonos play 3 T, State: ZP_ZoneName, Value:
Sonos Debug Updating Device: Sonos play 3 T, State: ZP_LocalUID, Value:
Sonos Debug Updating Device: Sonos play 3 T, State: ZP_NALBUM, Value:
Sonos Debug Updating Device: Sonos play 3 T, State: ZP_NART, Value:
Sonos Debug Updating Device: Sonos play 3 T, State: ZP_NARTIST, Value:
Sonos Debug Updating Device: Sonos play 3 T, State: ZP_NTRACK, Value:
Sonos Debug Updating Device: Sonos play 3 T, State: Q_Crossfade, Value: off
Sonos Debug Updating Device: Sonos play 3 T, State: Q_Repeat, Value: off
Sonos Debug Updating Device: Sonos play 3 T, State: Q_Shuffle, Value: off
Sonos Debug Updating Device: Sonos play 3 T, State: GROUP_Coordinator, Value:
Sonos Debug Updating Device: Sonos play 3 T, State: GROUP_Name, Value:
Sonos Debug Updating Device: Sonos play 3 T, State: ZP_ZoneName, Value: Tuin
Sonos Debug Updating Device: Sonos play 3 T, State: ZP_LocalUID, Value: RINCON_000E587398EA01400
Sonos Debug Resetting States for zone: 10.0.1.3
Sonos Debug Updating Device: Sonos play 5, State: ZP_ALBUM, Value:
Sonos Debug Updating Device: Sonos play 5, State: ZP_ART, Value:
Sonos Debug Updating Device: Sonos play 5, State: ZP_ARTIST, Value:
Sonos Debug Updating Device: Sonos play 5, State: ZP_CLASS, Value:
Sonos Debug Updating Device: Sonos play 5, State: ZP_CurrentURI, Value:
Sonos Debug Updating Device: Sonos play 5, State: ZP_DURATION, Value:
Sonos Debug Updating Device: Sonos play 5, State: ZP_INFO, Value:
Sonos Debug Updating Device: Sonos play 5, State: ZP_MUTE, Value:
Sonos Debug Updating Device: Sonos play 5, State: ZP_ONNOW, Value:
Sonos Debug Updating Device: Sonos play 5, State: ZP_PERCENT, Value:
Sonos Debug Updating Device: Sonos play 5, State: ZP_POSITION, Value:
Sonos Debug Updating Device: Sonos play 5, State: ZP_STATE, Value:
Sonos Debug Updating Device: Sonos play 5, State: ZP_STATION, Value:
Sonos Debug Updating Device: Sonos play 5, State: ZP_TRACK, Value:
Sonos Debug Updating Device: Sonos play 5, State: ZP_TYPE, Value:
Sonos Debug Updating Device: Sonos play 5, State: ZP_VOLUME, Value:
Sonos Debug Updating Device: Sonos play 5, State: ZP_VOLUME_FIXED, Value:
Sonos Debug Updating Device: Sonos play 5, State: ZP_ZoneName, Value:
Sonos Debug Updating Device: Sonos play 5, State: ZP_LocalUID, Value:
Sonos Debug Updating Device: Sonos play 5, State: ZP_NALBUM, Value:
Sonos Debug Updating Device: Sonos play 5, State: ZP_NART, Value:
Sonos Debug Updating Device: Sonos play 5, State: ZP_NARTIST, Value:
Sonos Debug Updating Device: Sonos play 5, State: ZP_NTRACK, Value:
Sonos Debug Updating Device: Sonos play 5, State: Q_Crossfade, Value: off
Sonos Debug Updating Device: Sonos play 5, State: Q_Repeat, Value: off
Sonos Debug Updating Device: Sonos play 5, State: Q_Shuffle, Value: off
Sonos Debug Updating Device: Sonos play 5, State: GROUP_Coordinator, Value:
Sonos Debug Updating Device: Sonos play 5, State: GROUP_Name, Value:
Sonos Debug Updating Device: Sonos play 5, State: ZP_ZoneName, Value: Woonkamer (L)
Sonos Debug Updating Device: Sonos play 5, State: ZP_LocalUID, Value: RINCON_000E58545D6601400
Sonos Debug Resetting States for zone: 10.0.1.20
Sonos Debug Updating Device: Sonosplayer bridge, State: ZP_ALBUM, Value:
Sonos Debug Updating Device: Sonosplayer bridge, State: ZP_ART, Value:
Sonos Debug Updating Device: Sonosplayer bridge, State: ZP_ARTIST, Value:
Sonos Debug Updating Device: Sonosplayer bridge, State: ZP_CLASS, Value:
Sonos Debug Updating Device: Sonosplayer bridge, State: ZP_CurrentURI, Value:
Sonos Debug Updating Device: Sonosplayer bridge, State: ZP_DURATION, Value:
Sonos Debug Updating Device: Sonosplayer bridge, State: ZP_INFO, Value:
Sonos Debug Updating Device: Sonosplayer bridge, State: ZP_MUTE, Value:
Sonos Debug Updating Device: Sonosplayer bridge, State: ZP_ONNOW, Value:
Sonos Debug Updating Device: Sonosplayer bridge, State: ZP_PERCENT, Value:
Sonos Debug Updating Device: Sonosplayer bridge, State: ZP_POSITION, Value:
Sonos Debug Updating Device: Sonosplayer bridge, State: ZP_STATE, Value:
Sonos Debug Updating Device: Sonosplayer bridge, State: ZP_STATION, Value:
Sonos Debug Updating Device: Sonosplayer bridge, State: ZP_TRACK, Value:
Sonos Debug Updating Device: Sonosplayer bridge, State: ZP_TYPE, Value:
Sonos Debug Updating Device: Sonosplayer bridge, State: ZP_VOLUME, Value:
Sonos Debug Updating Device: Sonosplayer bridge, State: ZP_VOLUME_FIXED, Value:
Sonos Debug Updating Device: Sonosplayer bridge, State: ZP_ZoneName, Value:
Sonos Debug Updating Device: Sonosplayer bridge, State: ZP_LocalUID, Value:
Sonos Debug Updating Device: Sonosplayer bridge, State: ZP_NALBUM, Value:
Sonos Debug Updating Device: Sonosplayer bridge, State: ZP_NART, Value:
Sonos Debug Updating Device: Sonosplayer bridge, State: ZP_NARTIST, Value:
Sonos Debug Updating Device: Sonosplayer bridge, State: ZP_NTRACK, Value:
Sonos Debug Updating Device: Sonosplayer bridge, State: Q_Crossfade, Value: off
Sonos Debug Updating Device: Sonosplayer bridge, State: Q_Repeat, Value: off
Sonos Debug Updating Device: Sonosplayer bridge, State: Q_Shuffle, Value: off
Sonos Debug Updating Device: Sonosplayer bridge, State: GROUP_Coordinator, Value:
Sonos Debug Updating Device: Sonosplayer bridge, State: GROUP_Name, Value:
Sonos Error Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
File "plugin.py", line 46, in runConcurrentThread
File "/Library/Application Support/Perceptive Automation/Indigo 5/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 88, in runConcurrentThread
File "/Library/Application Support/Perceptive Automation/Indigo 5/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 143, in initZones
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'findtext'

Sonos Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)

Posted on
Sat Oct 06, 2012 7:39 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Sonos

Apologies for the delay in reply. Did you create a device for the ZoneBridge (10.0.1.20)? If so, that is what is causing the plugin to crash - it is not required.

The reference ZonePlayer can be any ZonePlayer in your setup. It is used as the master device to pull data from the matrix.

I will keep digging through this to see if there is anything else that looks off.

Thanks for your patience.

Posted on
Sat Oct 06, 2012 3:57 pm
boekweg offline
Posts: 70
Joined: Oct 02, 2010
Location: Netherlands

Re: Sonos

No problem, I have patience. Thank you for your reply. Your suggestion was the exact solution! I do not have an error message now and it works perfectly.
One question though. I have two S5 (or Play5) mounted as a stereo pair. In the device list one of them states paused, the other states playing when their both paused.
Any idea? no rush and not important, I was just wandering. Thanks a lot for your help and the Sonos plugin!

Regards from Holland.

Paul Boekweg

Posted on
Sun Oct 14, 2012 5:30 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Sonos

I think you can remove one of the two in the stereo pair. As a test, if you make a change to the pair from the Sonos Controller, I'd like to understand which device updates accurately. If you can do some experimenting here, it can help me clear up any confusion in the plugin.

Thanks.

Posted on
Sun Oct 28, 2012 6:12 am
dgburton offline
Posts: 6
Joined: Oct 28, 2012

Re: Sonos

Hi Nick,

Thanks for the Sonos plugin - works great!

Could I ask how easy it would be to modify the Group Announcement action so it can play a sound file rather than just do Text to Speech.

The scenario I've got is, when the doorbell is pressed, run a Group Announcement that plays a doorbell chime MP3 file through the Sonos.

I was thinking perhaps the easiest way to do it would be to just play the sound from the Indigo Server, which is connected to a Sonos Line-in?

Love to hear your thoughts!

cheers

Posted on
Sun Oct 28, 2012 7:08 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Sonos

I think there would be two ways to have do this:

1. Trigger iTunes to play the track.
2. Play the track from Sonos directly.

I think the second method is probably cleaner. In either case, the plugin would have to know when the track ended and switch back to the prior source. I'll have to do some research to see how this can be accomplished.

I've also got an outstanding request from terrydew as well relating to grouping that I need to dig in to.

Glad the plugin is useful to you. I enjoyed this one.

Posted on
Sun Oct 28, 2012 7:15 am
dgburton offline
Posts: 6
Joined: Oct 28, 2012

Re: Sonos

Thanks Nick!

Yep - agree that the 2nd route is cleaner - if you want any help testing this just let me know!

Posted on
Sun Oct 28, 2012 8:08 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Sonos

I will. This will be very different than the line-in announcement since I do not actually group devices. I don't need synchronization with line-in, but will if an mp3 file is played. I'd want all Zone Players to start and stop at the same time.

So give me a little time and will let you know what can be done.

Posted on
Sun Oct 28, 2012 8:10 am
dgburton offline
Posts: 6
Joined: Oct 28, 2012

Re: Sonos

Understood - thanks Nick!!

Who is online

Users browsing this forum: No registered users and 16 guests