Python plugin: Sonos [new version]

Python and python framework
Rodio
Posts: 40
Joined: Thursday 16 April 2015 10:18
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Python plugin: Sonos [new version]

Post by Rodio » Saturday 06 January 2018 23:23

OK

Again, thx for the good work.
I'm really happy with this plugin 8-) 8-)

GrR

Quax1507
Posts: 117
Joined: Tuesday 07 April 2015 21:29
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Python plugin: Sonos [new version]

Post by Quax1507 » Tuesday 16 January 2018 19:04

I tried the plugin today. Configured IP of Sonos.
Radio list was discovered correctly.

Sonos does not react on any change of the created devices.

Here is the debug output after changing volume (no volume was changed at the Sonos box):

Code: Select all

2018-01-16 17:56:34.995  (Sonos) Sonos mute status: 0
2018-01-16 17:56:35.015  (Sonos) Update Sonos - Control: 0 - '0'
2018-01-16 17:57:01.620  (Sonos) Calling message handler 'onCommand'.
2018-01-16 17:57:01.620  (Sonos) onCommand called for Unit 2: Parameter 'Set Level'
2018-01-16 17:57:04.927  (Sonos) Calling message handler 'onHeartbeat'.
2018-01-16 17:57:04.941  (Sonos) <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:GetTransportInfoResponse xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><CurrentTransportState>PLAYING</CurrentTransportState><CurrentTransportStatus>OK</CurrentTransportStatus><CurrentSpeed>1</CurrentSpeed></u:GetTransportInfoResponse></s:Body></s:Envelope>
2018-01-16 17:57:04.942  (Sonos) <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:GetTransportInfoResponse xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><CurrentTransportState>PLAYING</CurrentTransportState><CurrentTransportStatus>OK</CurrentTransportStatus><CurrentSpeed>1</CurrentSpeed></u:GetTransportInfoResponse></s:Body></s:Envelope>
2018-01-16 17:57:04.942  (Sonos) Sonos state: PLAYING
2018-01-16 17:57:04.953  (Sonos) Update Sonos - Control: 1 - '0'
2018-01-16 17:57:04.967  (Sonos) <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:GetPositionInfoResponse xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><Track>1</Track><TrackDuration>NOT_IMPLEMENTED</TrackDuration><TrackMetaData>NOT_IMPLEMENTED</TrackMetaData><TrackURI>x-rincon:RINCON_7828CA24905201400</TrackURI><RelTime>NOT_IMPLEMENTED</RelTime><AbsTime>NOT_IMPLEMENTED</AbsTime><RelCount>2147483647</RelCount><AbsCount>2147483647</AbsCount></u:GetPositionInfoResponse></s:Body></s:Envelope>
2018-01-16 17:57:04.967  (Sonos) <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:GetPositionInfoResponse xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><Track>1</Track><TrackDuration>NOT_IMPLEMENTED</TrackDuration><TrackMetaData>NOT_IMPLEMENTED</TrackMetaData><TrackURI>x-rincon:RINCON_7828CA24905201400</TrackURI><RelTime>NOT_IMPLEMENTED</RelTime><AbsTime>NOT_IMPLEMENTED</AbsTime><RelCount>2147483647</RelCount><AbsCount>2147483647</AbsCount></u:GetPositionInfoResponse></s:Body></s:Envelope>
2018-01-16 17:57:05.006  (Sonos) <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:GetVolumeResponse xmlns:u="urn:schemas-upnp-org:service:RenderingControl:1"><CurrentVolume>10</CurrentVolume></u:GetVolumeResponse></s:Body></s:Envelope>
2018-01-16 17:57:05.007  (Sonos) <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:GetVolumeResponse xmlns:u="urn:schemas-upnp-org:service:RenderingControl:1"><CurrentVolume>10</CurrentVolume></u:GetVolumeResponse></s:Body></s:Envelope>
2018-01-16 17:57:05.007  (Sonos) Sonos volume: 10
2018-01-16 17:57:05.020  (Sonos) <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:GetMuteResponse xmlns:u="urn:schemas-upnp-org:service:RenderingControl:1"><CurrentMute>0</CurrentMute></u:GetMuteResponse></s:Body></s:Envelope>
2018-01-16 17:57:05.021  (Sonos) <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:GetMuteResponse xmlns:u="urn:schemas-upnp-org:service:RenderingControl:1"><CurrentMute>0</CurrentMute></u:GetMuteResponse></s:Body></s:Envelope>
2018-01-16 17:57:05.021  (Sonos) Sonos mute status: 0
2018-01-16 17:57:05.032  (Sonos) Update Sonos - Control: 0 - '0'
Any hints?

Quax1507
Posts: 117
Joined: Tuesday 07 April 2015 21:29
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Python plugin: Sonos [new version]

Post by Quax1507 » Tuesday 16 January 2018 19:56

Plugin works when Sonos in *not* grouped!

After grouping a second Sonos it does not work anymore :(

Any idea to fix that?

Rodio
Posts: 40
Joined: Thursday 16 April 2015 10:18
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Python plugin: Sonos [new version]

Post by Rodio » Friday 19 January 2018 20:18

Boehoehoe

2018-01-19 19:14:14.020 (Sonos Woonkamer) Calling message handler 'onHeartbeat'.
2018-01-19 19:14:14.139 (P1) P1 Smart Meter (P1 - Power)
2018-01-19 19:14:16.517 (P1) General/Voltage (Voltage L1)
2018-01-19 19:14:17.175 Error: (Sonos Woonkamer) Sonos not available ([Errno 113] No route to host)

Not working anymore :shock: :shock:
Reboot doesn't help.
As far as I know I didn't change/install anything.
Anyone got an idea?

Thx
R

Rodio
Posts: 40
Joined: Thursday 16 April 2015 10:18
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Python plugin: Sonos [new version]

Post by Rodio » Saturday 20 January 2018 0:04

mhhhhh,

Looks like I did install something :?
Python was on 2.7.9 and is now on 3.4.2.
Could this be the problem?

edit:
On the terminal:
[email protected]:~/domoticz/plugins/sonos $ python
Python 2.7.9 (default, Sep 17 2016, 20:26:04)

But during startup in the Domo logfiles it reports 3.4.2

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests