Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

SONOS Plugin Official (download here)

Questions and comments specific to a particular plugin should go here.
egbaud
Posts: 35
Joined: Tue Mar 18, 2014 1:30 am

Re: SONOS Plugin Official (download here)

Post by egbaud »

I see the UnGroup action, but I don't see a Group action. Is that coming in a future release?
techoguy
Experienced User
Posts: 157
Joined: Mon Mar 18, 2013 1:32 am

Re: SONOS Plugin Official (download here)

Post by techoguy »

Hi egbaud,

I do plan on adding a group function at some point but it is more complicated to group in an automated environment vs the SONOS app, for example, if you group two rooms playing music, which room becomes the coordinator of the group (meaning which music keeps playing after the group has been grouped). It's easy to actually group ZPs, it's how to handle what music plays after the group has been created that is a little more complicated.

The basic idea would be that you select which ZPs you want to group as kind of a preset group in the action configuration window. When the action is executed it will look at all ZPs that were selected and see if any are currently playing music. If only one ZP is playing music it'll make that one the coordinator and all others will be added. If multiple ZPs are playing music i can have it randomly select one of them, or I can add maybe a priority option in the configuration window so the plugin follows the priority for each ZP when selecting which one to be the coordinator of the new group and continues to play music.

If I simply make it a list of ZP you select and the first one is always the coordinator, what will happen is if you have a queue or other music queued up or playing in a group but the ZP selected as the coordinator is not the current coordinator the music will stop and the queue and music will change to what ever was originally left on the that ZP. You would then have to execute another play/startplaylist or interact with it from the app. In my mind this isn't ideal.

If it's an option you want, let me know and i'll work on making it.

Thanks.
The Latest SONOS Plugin:
Latest version can be found here: http://eventghost.org/forum/viewtopic.p ... 05f#p30309

EventGhost Lets me automate my home the way I want it, I love using it!
egbaud
Posts: 35
Joined: Tue Mar 18, 2014 1:30 am

Re: SONOS Plugin Official (download here)

Post by egbaud »

Suppose you add an action to create a group, but it doesn't actually do anything until a Play action refers to that group name. So you'd create the group "Party", which would have no effect until you do a "Play" action on "Party".

Something like that?
techoguy
Experienced User
Posts: 157
Joined: Mon Mar 18, 2013 1:32 am

Re: SONOS Plugin Official (download here)

Post by techoguy »

The problem with that is what do you "Play" when you send it to "Party group?

The way SONOS works is that when a group is created at least one ZP is a coordinator. The coordinator is what manages the music and streams everything. The other players simply stream from this one ZP. When you select the normal "Play" action and send it to a specific ZP, my plugin is actually looking to see if that ZP is a coordinator and if it's not it actually re-directs the play command to the coordinator of it's group. Many commands can only go to the coordinator not the slaves within a group. So when you have a group within your SONOS system, only the coordinator of that group is playing the music and has the music meta data. So when you create a group the music to play throughout the group is the music of the coordinator.

I'll start playing with it maybe this weekend and might be able to at least release a version that groups but randomly assigns the coordinator at first.
The Latest SONOS Plugin:
Latest version can be found here: http://eventghost.org/forum/viewtopic.p ... 05f#p30309

EventGhost Lets me automate my home the way I want it, I love using it!
egbaud
Posts: 35
Joined: Tue Mar 18, 2014 1:30 am

Re: SONOS Plugin Official (download here)

Post by egbaud »

Sorry, I should have said "StartPlayList" instead of "Play". In other words, you'd first define a group, then define what you want the group to play, then play it.

As far as which ZP is the coordinator, your plugin would just hide that from the user. Or, the user could identify the coordinator in the CreateGroup action.
Telorast
Posts: 46
Joined: Wed Feb 27, 2013 2:44 pm

Re: SONOS Plugin Official (download here)

Post by Telorast »

I'm having some trouble finding my Sonos units. If I restart the plugin a few times it finally finds them but usually it times out and crashes:

Image

Also even when it finds my Sonos units it won't trigger events when they are connected/disconnected. What's going on?
techoguy
Experienced User
Posts: 157
Joined: Mon Mar 18, 2013 1:32 am

Re: SONOS Plugin Official (download here)

Post by techoguy »

Hi Telorast,
Can you double check that EG is allowed in your firewall? A quick way to do this is to disable your firewall and restart EG (not just the plugin, but EG).

Some other questions, do you have 2 or more active LAN ports on your PC?
What OS are you running?
Do you get different results if you restart EG vs restarting the plugin?
Do you get different results if you restart your PC?
do you have the ability to use Wireshark to see if the MSEARCH broadcast is actually sending?

As for events when you are connecting and disconnecting SONOS, how are you testing this? Is it during a time when the plugin does find your SONOS ZPs? How much time are you waiting between testing this? SONOS can take some time before realizing a player has been disconnecting.

And lastly, how many ZPs do you have and what are they?

If possible, can you also enable your time in the log output from the EG settings and then copy and paste the log into this window using the code tags? it will make it much easier to read and debug.
The Latest SONOS Plugin:
Latest version can be found here: http://eventghost.org/forum/viewtopic.p ... 05f#p30309

EventGhost Lets me automate my home the way I want it, I love using it!
Telorast
Posts: 46
Joined: Wed Feb 27, 2013 2:44 pm

Re: SONOS Plugin Official (download here)

Post by Telorast »

Ok, I'll get started on that list of questions...
Telorast
Posts: 46
Joined: Wed Feb 27, 2013 2:44 pm

Re: SONOS Plugin Official (download here)

Post by Telorast »

techoguy wrote:Hi Telorast,
Can you double check that EG is allowed in your firewall? A quick way to do this is to disable your firewall and restart EG (not just the plugin, but EG).

Some other questions, do you have 2 or more active LAN ports on your PC?
What OS are you running?
Do you get different results if you restart EG vs restarting the plugin?
Do you get different results if you restart your PC?
do you have the ability to use Wireshark to see if the MSEARCH broadcast is actually sending?

As for events when you are connecting and disconnecting SONOS, how are you testing this? Is it during a time when the plugin does find your SONOS ZPs? How much time are you waiting between testing this? SONOS can take some time before realizing a player has been disconnecting.

And lastly, how many ZPs do you have and what are they?

If possible, can you also enable your time in the log output from the EG settings and then copy and paste the log into this window using the code tags? it will make it much easier to read and debug.
Was looking for troubleshooting tips and found out the first thing to do was to restart all devices, that fixed the errors.

I still have one problem, there is no event generated when a new speaker is discovered:

Code: Select all

08:10:03   --- EVENT Received --- ZoneGroupTopology from BRIDGE
08:10:03   RINCON_B8E93751634201400   192.168.0.130    Bathroom :coordinator -uuid:RINCON_B8E93751634201400_sub0000000028-
08:10:03   RINCON_B8E9371800D601400   192.168.0.129    BRIDGE (Invisible) :coordinator --
08:10:16   Main.EventGhost.Speakers.On
08:10:16      Speakers On
08:10:16   TellStickDuo.Speakers.ON u"selflearning-switch:gao.6"
08:10:48   --- EVENT Received --- ZoneGroupTopology from BRIDGE
08:10:48   RINCON_000E58B9705D01400   192.168.0.150    Living Room :coordinator -uuid:RINCON_000E58B9705D01400_sub0000000015-
08:10:48   RINCON_B8E93751634201400   192.168.0.130    Bathroom :coordinator -uuid:RINCON_B8E93751634201400_sub0000000028-
08:10:48   RINCON_B8E9371800D601400   192.168.0.129    BRIDGE (Invisible) :coordinator --
You can see that it added Living Room to the topology but it just prints it out as a notification, I can't start a macro from that.

How do I get events I can trigger on?

I do get events the first time it sees a speaker, like when EventGhost is starting up:

Code: Select all

08:21:50   SONOS.NewZonePlayerAdded '192.168.0.130-RINCON_B8E93751634201400'
08:21:50   SONOS.NewZonePlayerAdded '192.168.0.129-RINCON_B8E9371800D601400'
08:21:50   SONOS.NewZonePlayerAdded '192.168.0.150-RINCON_000E58B9705D01400'
But not when they are later disconnected and reconnected.
Telorast
Posts: 46
Joined: Wed Feb 27, 2013 2:44 pm

Re: SONOS Plugin Official (download here)

Post by Telorast »

There seems to be a problem with the PlayLineIn function. I'm trying to set my Playbar to play it's own Line In:

11:44:00 Sending SetAVTransportURI to Living Room
11:44:00 Command Variables InstanceID:0
11:44:00 Command Variables CurrentURIMetaData:
11:44:00 Command Variables CurrentURI:x-rincon-stream:RINCON_000E58B9705D01400
11:44:00 59204 Sending SetAVTransportURI to Living Room
11:44:00 Sending Play to Living Room
11:44:00 Command Variables InstanceID:0
11:44:00 Command Variables Speed:1
11:44:00 59205 Sending Play to Living Room
11:44:00 set TrackURI to x-rincon-stream:RINCON_000E58B9705D01400 in Living Room
11:44:00 **Response HTML Error from Living Room: 500 Internal Server Error
11:44:00 **Response HTML Error from Living Room
11:44:00 {'body': '<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encodin ... <UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>402</errorCode></UPnPError></detail></s:Fault></s:Body></s:Envelope>', 'status': 'Internal Server Error', 'CONTENT-LENGTH': '347', 'status-type': 'HTTP/1.1', 'Connection': 'close', 'Server': 'Linux UPnP/1.0 Sonos/24.0-71060 (ZPS9)', 'EXT': '', 'CONTENT-TYPE': 'text/xml; charset="utf-8"', 'status-code': '500'}
11:44:00 SONOS.ERROR u"**Response HTML Error from Living Room
11:44:00 Living Room Standard Response:

11:44:00
11:44:00 <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encodin ... ayResponse xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"></u:PlayResponse></s:Body></s:Envelope>
11:44:00 {'body': '<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encodin ... <UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>402</errorCode></UPnPError></detail></s:Fault></s:Body></s:Envelope>', 'status': 'Internal Server Error', 'CONTENT-LENGTH': '347', 'status-type': 'HTTP/1.1', 'Connection': 'close', 'Server': 'Linux UPnP/1.0 Sonos/24.0-71060 (ZPS9)', 'EXT': '', 'CONTENT-TYPE': 'text/xml; charset="utf-8"', 'status-code': '500'}"


I also keep getting this error after disconnecting a speaker:
11:59:52 --- EVENT Received --- ZoneGroupTopology from Living Room
11:59:52 ZoneGroupTopologyEvent XML error: list index out of range
11:59:52 ----- ZoneGroupTopology Data Response -------
11:59:52 SONOS.ERROR 'ZoneGroupTopologyEvent XML error: list index out of range\n\n<e:propertyset xmlns:e="urn:schemas-upnp-org:event-1-0"><e:property><ThirdPartyMediaServersX>2:wFgO4SETj09A0tQ3kqSDubt8aSUm8wGbuIma33c7LsZRXiNmbopepPbwW+YwUYMvg60IZHnEHRebMuiFqe7yTg==</ThirdPartyMediaServersX></e:property></e:propertyset>'
11:59:52 <e:propertyset xmlns:e="urn:schemas-upnp-org:event-1-0"><e:property><ThirdPartyMediaServersX>2:wFgO4SETj09A0tQ3kqSDubt8aSUm8wGbuIma33c7LsZRXiNmbopepPbwW+YwUYMvg60IZHnEHRebMuiFqe7yTg==</ThirdPartyMediaServersX></e:property></e:propertyset>
techoguy
Experienced User
Posts: 157
Joined: Mon Mar 18, 2013 1:32 am

Re: SONOS Plugin Official (download here)

Post by techoguy »

Hi Telorast,
Thanks for testing this.
Sorry i'm just getting back to you, I didn't receive the typical notification and just happened to look at the thread again.
I still have one problem, there is no event generated when a new speaker is discovered:
When you are testing this, i'm assuming you have all 3 ZPs powered up and connected then you disconnect (power down) one of the ZPs (Kitchen) then power it back up?
When you test this, do you see a Zone Group topology and event that shows that the ZP has been removed from EG?
The reason i ask is that the SONOS network can take a long time (as long as 30 minutes) to realize that a ZP has been removed. The EG plugin is the same way. So if the plugin doesn't realize it's been removed then it's powered back on, it will see it come up but not realize it's new which is what triggers the event in EG. This was primarily programmed to capture new ZPs added, not necessarily capture ZPs that are powered down and back on.

Can you explain a little about how/why you are wanting this event trigger and maybe i can try to tweak the code to do what you're wanting better or add a new event.
There seems to be a problem with the PlayLineIn function. I'm trying to set my Playbar to play it's own Line In
This appears to be an issue with the PlayBar. I don't have one currently setup to test. The error that is received is saying that the arguements provided or incorrect. This tells me that the PlayBar must require a different request or variables to select it's input vs all the other ZPs. I will have to see if i can get my hands on a PlayBar and test this to see what commands it needs.

If you or anyone else has a PlayBar, konws how to use wireshark, and is willing to test this to capture the command and send to me I might be able to fix this sooner. To capture what i need, you'll have to open the SONOS app on your computer, start wire shark and start capturing your traffic, in the SONOS app select the PlayBar line in as the source, stop wireshark, filter the view with "http contains SOAPACTION" which should return only a couple of packets. I'll need those packets, the whole TCP stream readable text would be great.

If not, hopefully I can setup a PlayBar and test this myself soon.
The Latest SONOS Plugin:
Latest version can be found here: http://eventghost.org/forum/viewtopic.p ... 05f#p30309

EventGhost Lets me automate my home the way I want it, I love using it!
egbaud
Posts: 35
Joined: Tue Mar 18, 2014 1:30 am

Re: SONOS Plugin Official (download here)

Post by egbaud »

Not an expert with wireshark, but is this what you need?

Code: Select all

No.     Time           Source                Destination           Protocol Length Info
   3738 18.427933000   192.168.1.5           192.168.1.8           HTTP/XML 664    POST /MediaRenderer/AVTransport/Control HTTP/1.1 

Frame 3738: 664 bytes on wire (5312 bits), 664 bytes captured (5312 bits) on interface 0
Ethernet II, Src: IntelCor_8c:72:b5 (00:19:d1:8c:72:b5), Dst: Sonos_b0:c2:08 (00:0e:58:b0:c2:08)
Internet Protocol Version 4, Src: 192.168.1.5 (192.168.1.5), Dst: 192.168.1.8 (192.168.1.8)
Transmission Control Protocol, Src Port: 52647 (52647), Dst Port: cadkey-tablet (1400), Seq: 1, Ack: 1, Len: 610
    Source port: 52647 (52647)
    Destination port: cadkey-tablet (1400)
    [Stream index: 39]
    Sequence number: 1    (relative sequence number)
    [Next sequence number: 611    (relative sequence number)]
    Acknowledgment number: 1    (relative ack number)
    Header length: 20 bytes
    Flags: 0x018 (PSH, ACK)
        000. .... .... = Reserved: Not set
        ...0 .... .... = Nonce: Not set
        .... 0... .... = Congestion Window Reduced (CWR): Not set
        .... .0.. .... = ECN-Echo: Not set
        .... ..0. .... = Urgent: Not set
        .... ...1 .... = Acknowledgment: Set
        .... .... 1... = Push: Set
        .... .... .0.. = Reset: Not set
        .... .... ..0. = Syn: Not set
        .... .... ...0 = Fin: Not set
    Window size value: 16425
    [Calculated window size: 65700]
    [Window size scaling factor: 4]
    Checksum: 0x85da [validation disabled]
        [Good Checksum: False]
        [Bad Checksum: False]
    [SEQ/ACK analysis]
        [Bytes in flight: 610]
Hypertext Transfer Protocol
    POST /MediaRenderer/AVTransport/Control HTTP/1.1\r\n
        [Expert Info (Chat/Sequence): POST /MediaRenderer/AVTransport/Control HTTP/1.1\r\n]
            [Message: POST /MediaRenderer/AVTransport/Control HTTP/1.1\r\n]
            [Severity level: Chat]
            [Group: Sequence]
        Request Method: POST
        Request URI: /MediaRenderer/AVTransport/Control
        Request Version: HTTP/1.1
    CONNECTION: close\r\n
    ACCEPT-ENCODING: gzip\r\n
    HOST: 192.168.1.8:1400\r\n
    USER-AGENT: Linux UPnP/1.0 Sonos/26.1-76020 (WDCR:Microsoft Windows NT 6.2.9200.0)\r\n
    CONTENT-LENGTH: 272\r\n
        [Content length: 272]
    CONTENT-TYPE: text/xml; charset="utf-8"\r\n
    SOAPACTION: "urn:schemas-upnp-org:service:AVTransport:1#GetPositionInfo"\r\n
    \r\n
    [Full request URI: http://192.168.1.8:1400/MediaRenderer/AVTransport/Control]
    [HTTP request 1/1]
    [Response in frame: 3829]
eXtensible Markup Language
    <s:Envelope
        xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"
        s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
        <s:Body>
            <u:GetPositionInfo
                xmlns:u="urn:schemas-upnp-org:service:AVTransport:1">
                <InstanceID>
                    0
                    </InstanceID>
                </u:GetPositionInfo>
            </s:Body>
        </s:Envelope>

No.     Time           Source                Destination           Protocol Length Info
   3834 18.456044000   192.168.1.5           192.168.1.8           HTTP/XML 664    POST /MediaRenderer/AVTransport/Control HTTP/1.1 

Frame 3834: 664 bytes on wire (5312 bits), 664 bytes captured (5312 bits) on interface 0
Ethernet II, Src: IntelCor_8c:72:b5 (00:19:d1:8c:72:b5), Dst: Sonos_b0:c2:08 (00:0e:58:b0:c2:08)
Internet Protocol Version 4, Src: 192.168.1.5 (192.168.1.5), Dst: 192.168.1.8 (192.168.1.8)
Transmission Control Protocol, Src Port: 52648 (52648), Dst Port: cadkey-tablet (1400), Seq: 1, Ack: 1, Len: 610
    Source port: 52648 (52648)
    Destination port: cadkey-tablet (1400)
    [Stream index: 40]
    Sequence number: 1    (relative sequence number)
    [Next sequence number: 611    (relative sequence number)]
    Acknowledgment number: 1    (relative ack number)
    Header length: 20 bytes
    Flags: 0x018 (PSH, ACK)
        000. .... .... = Reserved: Not set
        ...0 .... .... = Nonce: Not set
        .... 0... .... = Congestion Window Reduced (CWR): Not set
        .... .0.. .... = ECN-Echo: Not set
        .... ..0. .... = Urgent: Not set
        .... ...1 .... = Acknowledgment: Set
        .... .... 1... = Push: Set
        .... .... .0.. = Reset: Not set
        .... .... ..0. = Syn: Not set
        .... .... ...0 = Fin: Not set
    Window size value: 16425
    [Calculated window size: 65700]
    [Window size scaling factor: 4]
    Checksum: 0x85da [validation disabled]
        [Good Checksum: False]
        [Bad Checksum: False]
    [SEQ/ACK analysis]
        [Bytes in flight: 610]
Hypertext Transfer Protocol
    POST /MediaRenderer/AVTransport/Control HTTP/1.1\r\n
        [Expert Info (Chat/Sequence): POST /MediaRenderer/AVTransport/Control HTTP/1.1\r\n]
            [Message: POST /MediaRenderer/AVTransport/Control HTTP/1.1\r\n]
            [Severity level: Chat]
            [Group: Sequence]
        Request Method: POST
        Request URI: /MediaRenderer/AVTransport/Control
        Request Version: HTTP/1.1
    CONNECTION: close\r\n
    ACCEPT-ENCODING: gzip\r\n
    HOST: 192.168.1.8:1400\r\n
    USER-AGENT: Linux UPnP/1.0 Sonos/26.1-76020 (WDCR:Microsoft Windows NT 6.2.9200.0)\r\n
    CONTENT-LENGTH: 272\r\n
        [Content length: 272]
    CONTENT-TYPE: text/xml; charset="utf-8"\r\n
    SOAPACTION: "urn:schemas-upnp-org:service:AVTransport:1#GetPositionInfo"\r\n
    \r\n
    [Full request URI: http://192.168.1.8:1400/MediaRenderer/AVTransport/Control]
    [HTTP request 1/1]
    [Response in frame: 3846]
eXtensible Markup Language
    <s:Envelope
        xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"
        s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
        <s:Body>
            <u:GetPositionInfo
                xmlns:u="urn:schemas-upnp-org:service:AVTransport:1">
                <InstanceID>
                    0
                    </InstanceID>
                </u:GetPositionInfo>
            </s:Body>
        </s:Envelope>

No.     Time           Source                Destination           Protocol Length Info
   3969 18.900802000   192.168.1.5           192.168.1.8           HTTP/XML 664    POST /MediaRenderer/AVTransport/Control HTTP/1.1 

Frame 3969: 664 bytes on wire (5312 bits), 664 bytes captured (5312 bits) on interface 0
Ethernet II, Src: IntelCor_8c:72:b5 (00:19:d1:8c:72:b5), Dst: Sonos_b0:c2:08 (00:0e:58:b0:c2:08)
Internet Protocol Version 4, Src: 192.168.1.5 (192.168.1.5), Dst: 192.168.1.8 (192.168.1.8)
Transmission Control Protocol, Src Port: 52649 (52649), Dst Port: cadkey-tablet (1400), Seq: 1, Ack: 1, Len: 610
    Source port: 52649 (52649)
    Destination port: cadkey-tablet (1400)
    [Stream index: 44]
    Sequence number: 1    (relative sequence number)
    [Next sequence number: 611    (relative sequence number)]
    Acknowledgment number: 1    (relative ack number)
    Header length: 20 bytes
    Flags: 0x018 (PSH, ACK)
        000. .... .... = Reserved: Not set
        ...0 .... .... = Nonce: Not set
        .... 0... .... = Congestion Window Reduced (CWR): Not set
        .... .0.. .... = ECN-Echo: Not set
        .... ..0. .... = Urgent: Not set
        .... ...1 .... = Acknowledgment: Set
        .... .... 1... = Push: Set
        .... .... .0.. = Reset: Not set
        .... .... ..0. = Syn: Not set
        .... .... ...0 = Fin: Not set
    Window size value: 16425
    [Calculated window size: 65700]
    [Window size scaling factor: 4]
    Checksum: 0x85da [validation disabled]
        [Good Checksum: False]
        [Bad Checksum: False]
    [SEQ/ACK analysis]
        [Bytes in flight: 610]
Hypertext Transfer Protocol
    POST /MediaRenderer/AVTransport/Control HTTP/1.1\r\n
        [Expert Info (Chat/Sequence): POST /MediaRenderer/AVTransport/Control HTTP/1.1\r\n]
            [Message: POST /MediaRenderer/AVTransport/Control HTTP/1.1\r\n]
            [Severity level: Chat]
            [Group: Sequence]
        Request Method: POST
        Request URI: /MediaRenderer/AVTransport/Control
        Request Version: HTTP/1.1
    CONNECTION: close\r\n
    ACCEPT-ENCODING: gzip\r\n
    HOST: 192.168.1.8:1400\r\n
    USER-AGENT: Linux UPnP/1.0 Sonos/26.1-76020 (WDCR:Microsoft Windows NT 6.2.9200.0)\r\n
    CONTENT-LENGTH: 272\r\n
        [Content length: 272]
    CONTENT-TYPE: text/xml; charset="utf-8"\r\n
    SOAPACTION: "urn:schemas-upnp-org:service:AVTransport:1#GetPositionInfo"\r\n
    \r\n
    [Full request URI: http://192.168.1.8:1400/MediaRenderer/AVTransport/Control]
    [HTTP request 1/1]
    [Response in frame: 3971]
eXtensible Markup Language
    <s:Envelope
        xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"
        s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
        <s:Body>
            <u:GetPositionInfo
                xmlns:u="urn:schemas-upnp-org:service:AVTransport:1">
                <InstanceID>
                    0
                    </InstanceID>
                </u:GetPositionInfo>
            </s:Body>
        </s:Envelope>
techoguy
Experienced User
Posts: 157
Joined: Mon Mar 18, 2013 1:32 am

Re: SONOS Plugin Official (download here)

Post by techoguy »

Hi egbaud,
Thanks for that. That should work but the packets i see there don't actually have the "Line In" action, they are displaying a different action the SONOS PC app is requesting, "PositionInfo".

Can you try again and let me know what process you did within the SONOS app as well, for example, selected your group with a play5 and selected Aux input in the audio choices then selected the playbar? Also can you validate that in the SONOS app that the playbar shows up as an Aux input option?

Thanks for running this!
The Latest SONOS Plugin:
Latest version can be found here: http://eventghost.org/forum/viewtopic.p ... 05f#p30309

EventGhost Lets me automate my home the way I want it, I love using it!
techoguy
Experienced User
Posts: 157
Joined: Mon Mar 18, 2013 1:32 am

Re: SONOS Plugin Official (download here)

Post by techoguy »

Hi all,
Just wanted to let you know i've been testing the plugin with the new SONOS Beta addition and the new Google Play Music addition.

So far everything seems to work the same accept a couple of things.
For some reason it seems like the timing between commands have been affected. This affects the Notifications and seems to causes some errors. I have adjusted this and will hopefully release this change soon.

Playing Google Music using the playlist action still works and the same goes with the notifications. The only thing that doesn't work is if you Cast must from the Google Play Music app to your sonos system, the notification can't restart the music from the Cast. I'll have to do more testing to see if can fix this. This might not ever work right unless SONOS changes a few things.
The Latest SONOS Plugin:
Latest version can be found here: http://eventghost.org/forum/viewtopic.p ... 05f#p30309

EventGhost Lets me automate my home the way I want it, I love using it!
egbaud
Posts: 35
Joined: Tue Mar 18, 2014 1:30 am

Re: SONOS Plugin Official (download here)

Post by egbaud »

techoguy wrote:Can you try again and let me know what process you did within the SONOS app as well, for example, selected your group with a play5 and selected Aux input in the audio choices then selected the playbar? Also can you validate that in the SONOS app that the playbar shows up as an Aux input option?
Actually, the playbar input shows up as a separate option labeled "TV" in the Sonos App. There is no Line In option for it.

I've attached a file with the result of switching the playbar to TV. It looks like it might show up as SPDIF in the dump.
Attachments
PlayBarPackets.txt
(137.59 KiB) Downloaded 153 times
Post Reply