Sonos - The Beginning

Posted on
Sat Apr 04, 2015 9:36 am
mlooss offline
Posts: 184
Joined: Sep 05, 2013

Re: Sonos - The Beginning

Here is the log after enabling XML logging:

Sonos Debug
Sonos Debug zoneIP: 10.0.1.208, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: GetPositionInfo
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:GetPositionInfo xmlns:ns0="urn:schemas-upnp-org:service:AVTransport:1">
<InstanceID>0</InstanceID>

</ns0:GetPositionInfo>
</s:Body>
</s:Envelope>

Sonos Error Error in plugin execution ExecuteAction:

Traceback (most recent call last):
File "plugin.py", line 172, in actionZP_announcementMP3
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 1052, in actionAnnouncement
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 1040, in actionStates
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 437, in SOAPSend
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/socket.py", line 348, in read
<class 'socket.error'>: [Errno 54] Connection reset by peer


nlagaros wrote:
Please turn on the event debugging as well and include the startup events that show each ZonePlayer getting the first batch of state updates. Thanks!

nlagaros wrote:
Can you turn on the XML debug in the Plugin options and try the action again. Thanks.

Posted on
Thu Apr 09, 2015 7:56 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Sonos - The Beginning

I'm pulling my hair out on this one. Can you turn all debugging options on and send me the log. I'd like to see everything from the point the plugin starts up. Need to make sure all ZonePlayer devices are initializing properly.

Posted on
Fri Apr 10, 2015 8:20 am
mlooss offline
Posts: 184
Joined: Sep 05, 2013

Re: Sonos - The Beginning

Nick,

you can stop pulling your hair out, announcements started to work after I deleted both PLAY 1's configured in surround sound with my Playbar and the Sub from INDIGO. I had deleted them before and re-created them and even disabled communication in INDIGO, but never though of removing them.

I guess it makes sense that selecting the Playbar will also play the announcements through the Play 1's and there is no need to create an INDIGO device for it.

You might want add this to your documentation.

Thanks for your help and this great plug-in.

Posted on
Thu Apr 16, 2015 7:34 am
DrLove offline
Posts: 260
Joined: Dec 12, 2014
Location: Sweden

Re: Sonos - The Beginning

What happened to unicode support?
I upgraded from 0.8.8 to 0.8.12 and everything crashes if I have ÅÄÖ in the zone name, it worked before but not now :(

Started plugin "Sonos 0.8.12"
Sonos Your plugin version, v0.8.12, is current.
Sonos Saved Plugin Configuration
Sonos Sonos Favorites: FV:2/0, P3, x-sonosapi-stream:s25681?sid=254&flags=32
Sonos Playlist: SQ:2, 50-60, file:///jffs/settings/savedqueues.rsq#2
Sonos Playlist: SQ:46, Eddie, file:///jffs/settings/savedqueues.rsq#46
Sonos Playlist: SQ:47, Jonas, file:///jffs/settings/savedqueues.rsq#47
Sonos Playlist: SQ:48, Lise, file:///jffs/settings/savedqueues.rsq#48
Sonos Playlist: SQ:22, Metallica master of, file:///jffs/settings/savedqueues.rsq#22
Sonos Playlist: SQ:1, Mighty mixes, file:///jffs/settings/savedqueues.rsq#1
Sonos Playlist: SQ:45, Nytt och gammalt, file:///jffs/settings/savedqueues.rsq#45
Sonos Playlist: SQ:52, P3 Mys, file:///jffs/settings/savedqueues.rsq#52
Sonos Playlist: SQ:21, SCQueue-Kök-KokBadrum1, file:///jffs/settings/savedqueues.rsq#21
Sonos Playlist: SQ:0, Sonos-spellista 1, file:///jffs/settings/savedqueues.rsq#0
Sonos Playlist: SQ:49, Sonos-spellista 2, file:///jffs/settings/savedqueues.rsq#49
Sonos Playlist: SQ:50, Sonos-spellista 3, file:///jffs/settings/savedqueues.rsq#50
Sonos Playlist: SQ:51, Sonos-spellista 5, file:///jffs/settings/savedqueues.rsq#51
Sonos RadioTime Favorite Station: R:0/0/1, P3, x-sonosapi-stream:s25681?sid=254&flags=32
Sonos RadioTime Favorite Station: R:0/0/9, TTS, x-rincon-mp3radio://HA-mini:8888/announcement.mp3
Sonos Sound File: 03 MFG - Project Genesis.mp3
Sonos Adding ZonePlayer: RINCON_000E58C27C4001400
Sonos Adding ZonePlayer: RINCON_000E58A10E0A01400
Sonos Adding ZonePlayer: RINCON_000E5884B0C801400
(Missing 3 players here, non of the above have unicode chars in the name)
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 212, in runConcurrentThread
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 358, in initZones
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 1377, in updateStateOnServer
<type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)

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


If I change the name on my Connect:Amp + SUB to something non unicode friendly it works, even if I have other players w/ unicode chars. Strange...

Love Kull (yes it's my name)
Blog (in Swedish)
Sweden

Posted on
Fri Apr 17, 2015 6:56 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Sonos - The Beginning

I found the issue .. and will be posting an update shortly.

DrLove wrote:
What happened to unicode support?
I upgraded from 0.8.8 to 0.8.12 and everything crashes if I have ÅÄÖ in the zone name, it worked before but not now :(

Started plugin "Sonos 0.8.12"
Sonos Your plugin version, v0.8.12, is current.
Sonos Saved Plugin Configuration
Sonos Sonos Favorites: FV:2/0, P3, x-sonosapi-stream:s25681?sid=254&flags=32
Sonos Playlist: SQ:2, 50-60, file:///jffs/settings/savedqueues.rsq#2
Sonos Playlist: SQ:46, Eddie, file:///jffs/settings/savedqueues.rsq#46
Sonos Playlist: SQ:47, Jonas, file:///jffs/settings/savedqueues.rsq#47
Sonos Playlist: SQ:48, Lise, file:///jffs/settings/savedqueues.rsq#48
Sonos Playlist: SQ:22, Metallica master of, file:///jffs/settings/savedqueues.rsq#22
Sonos Playlist: SQ:1, Mighty mixes, file:///jffs/settings/savedqueues.rsq#1
Sonos Playlist: SQ:45, Nytt och gammalt, file:///jffs/settings/savedqueues.rsq#45
Sonos Playlist: SQ:52, P3 Mys, file:///jffs/settings/savedqueues.rsq#52
Sonos Playlist: SQ:21, SCQueue-Kök-KokBadrum1, file:///jffs/settings/savedqueues.rsq#21
Sonos Playlist: SQ:0, Sonos-spellista 1, file:///jffs/settings/savedqueues.rsq#0
Sonos Playlist: SQ:49, Sonos-spellista 2, file:///jffs/settings/savedqueues.rsq#49
Sonos Playlist: SQ:50, Sonos-spellista 3, file:///jffs/settings/savedqueues.rsq#50
Sonos Playlist: SQ:51, Sonos-spellista 5, file:///jffs/settings/savedqueues.rsq#51
Sonos RadioTime Favorite Station: R:0/0/1, P3, x-sonosapi-stream:s25681?sid=254&flags=32
Sonos RadioTime Favorite Station: R:0/0/9, TTS, x-rincon-mp3radio://HA-mini:8888/announcement.mp3
Sonos Sound File: 03 MFG - Project Genesis.mp3
Sonos Adding ZonePlayer: RINCON_000E58C27C4001400
Sonos Adding ZonePlayer: RINCON_000E58A10E0A01400
Sonos Adding ZonePlayer: RINCON_000E5884B0C801400
(Missing 3 players here, non of the above have unicode chars in the name)
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 212, in runConcurrentThread
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 358, in initZones
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 1377, in updateStateOnServer
<type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)

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


If I change the name on my Connect:Amp + SUB to something non unicode friendly it works, even if I have other players w/ unicode chars. Strange...

Posted on
Sat May 16, 2015 2:55 pm
shapa offline
Posts: 483
Joined: Sep 08, 2014
Location: Swindon

Re: Sonos - The Beginning

For some reason Favorites not working

Schedule Master Bedroom Sonos
Sonos Favorite Play: x-sonosapi-stream:s231678?sid=254&flags=32&sn=0
Sonos Error Error in plugin execution ExecuteAction:

Traceback (most recent call last):
File "plugin.py", line 145, in actionZP_SonosFavorites
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 1024, in actionDirect
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 910, in actionDirect
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'get'

Posted on
Sat May 16, 2015 2:57 pm
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Sonos - The Beginning

I think I fixed this in v0.8.13 - it had to do with grouping.

nlagaros wrote:
I found the issue .. and will be posting an update shortly.

DrLove wrote:
What happened to unicode support?
I upgraded from 0.8.8 to 0.8.12 and everything crashes if I have ÅÄÖ in the zone name, it worked before but not now :(

Started plugin "Sonos 0.8.12"
Sonos Your plugin version, v0.8.12, is current.
Sonos Saved Plugin Configuration
Sonos Sonos Favorites: FV:2/0, P3, x-sonosapi-stream:s25681?sid=254&flags=32
Sonos Playlist: SQ:2, 50-60, file:///jffs/settings/savedqueues.rsq#2
Sonos Playlist: SQ:46, Eddie, file:///jffs/settings/savedqueues.rsq#46
Sonos Playlist: SQ:47, Jonas, file:///jffs/settings/savedqueues.rsq#47
Sonos Playlist: SQ:48, Lise, file:///jffs/settings/savedqueues.rsq#48
Sonos Playlist: SQ:22, Metallica master of, file:///jffs/settings/savedqueues.rsq#22
Sonos Playlist: SQ:1, Mighty mixes, file:///jffs/settings/savedqueues.rsq#1
Sonos Playlist: SQ:45, Nytt och gammalt, file:///jffs/settings/savedqueues.rsq#45
Sonos Playlist: SQ:52, P3 Mys, file:///jffs/settings/savedqueues.rsq#52
Sonos Playlist: SQ:21, SCQueue-Kök-KokBadrum1, file:///jffs/settings/savedqueues.rsq#21
Sonos Playlist: SQ:0, Sonos-spellista 1, file:///jffs/settings/savedqueues.rsq#0
Sonos Playlist: SQ:49, Sonos-spellista 2, file:///jffs/settings/savedqueues.rsq#49
Sonos Playlist: SQ:50, Sonos-spellista 3, file:///jffs/settings/savedqueues.rsq#50
Sonos Playlist: SQ:51, Sonos-spellista 5, file:///jffs/settings/savedqueues.rsq#51
Sonos RadioTime Favorite Station: R:0/0/1, P3, x-sonosapi-stream:s25681?sid=254&flags=32
Sonos RadioTime Favorite Station: R:0/0/9, TTS, x-rincon-mp3radio://HA-mini:8888/announcement.mp3
Sonos Sound File: 03 MFG - Project Genesis.mp3
Sonos Adding ZonePlayer: RINCON_000E58C27C4001400
Sonos Adding ZonePlayer: RINCON_000E58A10E0A01400
Sonos Adding ZonePlayer: RINCON_000E5884B0C801400
(Missing 3 players here, non of the above have unicode chars in the name)
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 212, in runConcurrentThread
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 358, in initZones
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 1377, in updateStateOnServer
<type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)

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


If I change the name on my Connect:Amp + SUB to something non unicode friendly it works, even if I have other players w/ unicode chars. Strange...

Posted on
Sat May 16, 2015 2:58 pm
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Sonos - The Beginning

Seems like something did not start quite right. Can you restart the plugin and post the output. if there are errors, it will affect the actions.

shapa wrote:
For some reason Favorites not working

Schedule Master Bedroom Sonos
Sonos Favorite Play: x-sonosapi-stream:s231678?sid=254&flags=32&sn=0
Sonos Error Error in plugin execution ExecuteAction:

Traceback (most recent call last):
File "plugin.py", line 145, in actionZP_SonosFavorites
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 1024, in actionDirect
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 910, in actionDirect
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'get'

Posted on
Sat May 16, 2015 3:20 pm
shapa offline
Posts: 483
Joined: Sep 08, 2014
Location: Swindon

Re: Sonos - The Beginning

OK, sorry, realised I need to use RadioTime favorite for a radio - it is confusing a bit as it not RadioTime anymore but Radio By TuneIn
May be it should be renamed (action)?

...

It works now

Posted on
Sat May 16, 2015 3:35 pm
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Sonos - The Beginning

Duh .. my bad.. Sonos Favorites is not supported yet. I'm still coding those actions. Coming soon...

Posted on
Sun May 17, 2015 2:32 am
shapa offline
Posts: 483
Joined: Sep 08, 2014
Location: Swindon

Re: Sonos - The Beginning

One idea - gradient volume increase (set rate and time - i.e. to increase from 0 to 30 in 15 minutes). Can be very useful every morning :)

Also nice to have in some other situations.

Posted on
Thu May 28, 2015 6:19 am
wideglidejrp offline
User avatar
Posts: 555
Joined: Jan 15, 2012
Location: Danbury, CT

Re: Sonos - The Beginning

Hi Nick. I have been having problems with plugin lately. Not sure what changed. I am using latest version. Here is the error I get.

Sonos Error Error in plugin execution ExecuteAction:

Traceback (most recent call last):
File "plugin.py", line 154, in actionZP_addPlayerToZone
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos-2.indigoPlugin/Contents/Server Plugin/Sonos.py", line 948, in actionDirect
<type 'exceptions.TypeError'>: int() argument must be a string or a number, not 'NoneType'

Posted on
Mon Jun 01, 2015 12:14 pm
Londonmark offline
Posts: 509
Joined: Feb 29, 2012

Re: Sonos - The Beginning

I'm getting something similar:

Traceback (most recent call last):
File "plugin.py", line 136, in actionZP_LIST
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 939, in actionDirect
<type 'exceptions.TypeError'>: cannot concatenate 'str' and 'NoneType' objects

Posted on
Sun Jul 05, 2015 12:00 am
jlTech offline
Posts: 21
Joined: Jun 20, 2015

Re: Sonos - The Beginning

Hi Nick

when i announce something it refuse to go back what it did before, playing a radio station with volume it did have before the announcement.
what I'm i doing wrong?

here is my debug from plugin (running latest 8.13)

Code: Select all
Action Group                    TTS test
  Sonos Debug                     zoneIP: 192.168.0.119, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: GetMediaInfo
  Sonos Debug                     zoneIP: 192.168.0.119, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: GetPositionInfo
  Sonos                           Announcement: Testar lite, Volume: 20
  Sonos Debug                     Announcement: mute
  Sonos Debug                     Announcement: set standalone, stop, turn off queue repeat
  Sonos                           remove zone from group: V-rum Player
  Sonos Debug                     zoneIP: 192.168.0.119, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: SetAVTransportURI
  Sonos Debug                     Announcement: add announcement zones to group
  Sonos Debug                     Announcement: set volume, unmute
  Sonos Debug                     Current Volume: , New Volume: 20
  Sonos Debug                     zoneIP: 192.168.0.119, soapRoot: /MediaRenderer, soapBranch: /RenderingControl, soapAction: SetVolume
  Sonos                           Announcement Length: 1.8025
  Sonos Debug                     zoneIP: 192.168.0.119, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: SetAVTransportURI
  Sonos Debug                     Sonos Action: PlayMode NORMAL
  Sonos Debug                     zoneIP: 192.168.0.119, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: SetPlayMode
  Sonos Debug                     Sonos Action: Play
  Sonos Debug                     zoneIP: 192.168.0.119, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: Play
  Sonos                           remove zone from group: V-rum Player
  Sonos Debug                     zoneIP: 192.168.0.119, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: SetAVTransportURI
  Sonos Debug                     Restore States: RINCON_B8E93755BA9001400:RINCON_B8E93755BA9001400:V-rum Player
  Sonos Debug                     01:Q_Crossfade:            False
  Sonos Debug                     02:Q_Repeat:               False
  Sonos Debug                     03:Q_Shuffle:              False
  Sonos Debug                     04:ZP_MUTE:               
  Sonos Debug                     05:ZP_STATE:               
  Sonos Debug                     06:ZP_VOLUME:             
  Sonos Debug                     07:ZP_CurrentURI:         
  Sonos Debug                     08:CurrentURI MetaData:    &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;-1&quot; parentID=&quot;-1&quot; restricted=&quot;true&quot;&gt;&lt;dc:title&gt;P3&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.audioItem.audioBroadcast&lt;/upnp:class&gt;&lt;desc id=&quot;cdudn&quot; nameSpace=&quot;urn:schemas-rinconnetworks-com:metadata-1-0/&quot;&gt;SA_RINCON65031_&lt;/desc&gt;&lt;/item&gt;&lt;/DIDL-Lite&gt;
  Sonos Debug                     09:ZP_CurrentTrack:       
  Sonos Debug                     10:GROUP_Coordinator:     
  Sonos Debug                     12:Relative Time:          0:02:03
  Sonos Debug                     13:ZonePlayerUUIDsInGroup: RINCON_B8E93755BA9001400
  Sonos Debug                     RINCON_B8E93755BA9001400: Restore Mute:
  Sonos Debug                     zoneIP: 192.168.0.119, soapRoot: /MediaRenderer, soapBranch: /RenderingControl, soapAction: SetMute
  Sonos Debug                     RINCON_B8E93755BA9001400: Restore Volume:
  Sonos Debug                     zoneIP: 192.168.0.119, soapRoot: /MediaRenderer, soapBranch: /RenderingControl, soapAction: SetVolume
  Sonos Debug                     RINCON_B8E93755BA9001400: Restore URI:
  Sonos Debug                     zoneIP: 192.168.0.119, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: SetAVTransportURI
  Sonos Debug                     Sonos Action: Mute Off
  Sonos Debug                     zoneIP: 192.168.0.119, soapRoot: /MediaRenderer, soapBranch: /RenderingControl, soapAction: SetMute


Posted on
Sun Jul 05, 2015 7:12 am
wideglidejrp offline
User avatar
Posts: 555
Joined: Jan 15, 2012
Location: Danbury, CT

Re: Sonos - The Beginning

I tested announcement function for first time. I got the following....

Sonos Error plugin does not have a <CallbackMethod> specified for action id actionZP_accouncement

John R Patrick
Author of
Home Attitude

Page 31 of 37 1 ... 28, 29, 30, 31, 32, 33, 34 ... 37

Who is online

Users browsing this forum: No registered users and 4 guests