Plugin Fails with new version 2023.1.0

User avatar
wideglidejrp
Posts: 558
Joined: Sun Jan 15, 2012 4:34 pm
Location: Danbury, CT
Contact:

Re: Plugin Fails with new version 2023.1.0

Post by wideglidejrp »

It is possible something else was playing at the time the request for Poly to announce the weather forecast. I do not recall that being a problem in the past. If something is playing, shouldn’t the plugin just stop what was playing and start the Poly annoucement? That has always worked in the past.
John R Patrick
Author of
Home Attitude
autolog
Posts: 3996
Joined: Tue Sep 10, 2013 3:07 am
Location: West Sussex, UK [GMT aka UTC]
Contact:

Re: Plugin Fails with new version 2023.1.0

Post by autolog »

wideglidejrp wrote:It is possible something else was playing at the time the request for Poly to announce the weather forecast. I do not recall that being a problem in the past. If something is playing, shouldn’t the plugin just stop what was playing and start the Poly annoucement? That has always worked in the past.
Yes it should.

Can you try it again, when you know something is playing, to see if the error reoccurs?
User avatar
wideglidejrp
Posts: 558
Joined: Sun Jan 15, 2012 4:34 pm
Location: Danbury, CT
Contact:

Re: Plugin Fails with new version 2023.1.0

Post by wideglidejrp »

I tried again and got the error. Then I stopped Sonos from playing anything anywhere and ran the script again. This time no error.
John R Patrick
Author of
Home Attitude
User avatar
wideglidejrp
Posts: 558
Joined: Sun Jan 15, 2012 4:34 pm
Location: Danbury, CT
Contact:

Re: Plugin Fails with new version 2023.1.0

Post by wideglidejrp »

Good day. I am having a lot of Sonos errors and I cannot figure out what is causing them. I run a daily script in the morning. It works but the log shows a lot of errors which I would like to eliminate. Any suggestions or clues appreciated.

Jan 13, 2024 at 2:45:13 PM
Action Group Good Morning Script
Action Group Set Date Day Season and Time
Action Group Good Morning - Device Actions
Script Saturday, January 13
Script Saturday
Script January
Script 2:45 PM
Script Winter
Z-Wave sent "Kitchen - Keypad (Kitchen Ceiling Lights)" on
Sent INSTEON "MBR - Keypad (Ceiling Lights)" on
Trigger MBR - MBR Lights On
Z-Wave sent "MBR - JRP Table Lamp" on
Sent INSTEON "Kitchen - Keypad Left of Sink (Undercabinet Lights)" on to 100
Sent INSTEON "Kitchen - Table Chandelier" on to 100
Sent INSTEON "MBR - Hall" on
Sent INSTEON "MBR - Keypad (Ceiling Lights)" on
Script Good morning announcement: Good morning. Today is %%v:1814244738%%. The time is %%v:1404420983%%. The current weather is %%v:608982290%%. The forecast for the afternoon is %%v:156829702%% The evening forecast is %%v:6539193%%. Have a nice day at Ridge.
Action Group Sonos Stop and Set Players to Standalone
Sonos add zone to group: 533989726
Sonos add zone to group: 48173958
Sonos add zone to group: 842425637
Sonos add zone to group: 1853644168
Sonos add zone to group: 262837868
Action Group Polly - Announce Good Morning
Sonos add zone to group: 1715401100
Sonos ZonePlayer: Sonos - Office, Stop
Sonos remove zone from group: 533989726
Sonos remove zone from group: 48173958
Sonos remove zone from group: 842425637
Sonos remove zone from group: 1853644168
Schedule action group "Good Morning - Device Actions" (delayed action)
Z-Wave sent "MBR - JRP Table Lamp" on
Action Group Sonos Group All Players
Sonos Error UPNP Error: Unable to Play the Selected Item
Sonos Error Offending Command -> zoneIP: 192.168.86.64, soapRoot: /MediaRenderer, soapBranch: /Queue, soapAction: SaveAsSonosPlaylist
Sonos Error Error Response: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>800</errorCode></UPnPError></detail></s:Fault></s:Body></s:Envelope>

Sonos remove zone from group: 309210903
Action Group Sonos Add Players to Zone and Set Morning Volumes
Action Group Sonos Set Morning Volumes
Action Group Sonos Select Music
Script Sonos Play Favorite - All Out 60s,514484958
Script Sonos Play Favorite - Bossa Nova,1292914977
Script Sonos Play Favorite - Fleetwood Mac Radio,119887827
Script Sonos Play Favorite - Free & Easy,97259414
Script Sonos Play Favorite - JRP Playlist,1231514738
Script Sonos Play Favorite - Keith Urban,719807762
Script Sonos Play Favorite - Soft Pop Hits,805964757
Script Sonos Play Favorite - The Beattles Radio,1218019482
Script Sonos Play Favorite - Van Morrison,930127774
Script Sonos Play Favorite - Yacht rock 70s and 80s music,255752137
Script List of action groups to play[514484958, 1292914977, 119887827, 97259414, 1231514738, 719807762, 805964757, 1218019482, 930127774, 255752137]
Action Group Sonos Play Favorite - Yacht rock 70s and 80s music
Sonos remove zone from group: 262837868
Sonos remove zone from group: 1715401100
Sonos Announcement: Good morning. Today is Saturday, January 13. The time is 2:45 PM. The current weather is Mostly Cloudy. The forecast for the afternoon is Patchy fog and a slight chance of rain before 1pm. Mostly cloudy. High near 55, with temperatures falling to around 39 in the afternoon. Southwest wind 17 to 21 mph, with gusts as high as 31 mph. Chance of precipitation is 20%.. The evening forecast is Partly cloudy, with a low around 27. Wind chill values as low as 16. Southwest wind 14 to 21 mph, with gusts as high as 32 mph.. Have a nice day at Ridge., Volume: 35
Sonos remove zone from group: Sonos - Office
Sonos remove zone from group: Sonos - MBR
Sonos Error UPNP Error: Action Failed
Sonos Error Offending Command -> zoneIP: 192.168.86.69, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: SetAVTransportURI
Sonos Error Error Response: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>501</errorCode></UPnPError></detail></s:Fault></s:Body></s:Envelope>

Sonos ZonePlayer: Sonos - Office, Current Volume: 13, New Volume: 35
Sonos ZonePlayer: Sonos - MBR, Current Volume: 0, New Volume: 35
Sonos Announcement Length: 43.80733333333333
Sonos ZonePlayer: Sonos - Office, Play

Jan 13, 2024 at 2:45:56 PM
Sonos Loaded Playlists... [10]

Jan 13, 2024 at 2:46:23 PM
Sonos remove zone from group: Sonos - Office
Sonos remove zone from group: Sonos - MBR
Sonos ZonePlayer: Sonos - Office, Clear Queue
Sonos ZonePlayer: Sonos - MBR, Clear Queue
Sonos add zone to group: Sonos - Office->Sonos - MBR
Sonos ZonePlayer: Sonos - MBR, Play
Sonos ZonePlayer: Sonos - MBR, Mute Off
Sonos ZonePlayer: Sonos - Office, Mute Off
Sonos add zone to group: 533989726
Sonos Error UPNP Error: Action Failed
Sonos Error Offending Command -> zoneIP: 192.168.86.67, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: SetAVTransportURI
Sonos Error Error Response: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>501</errorCode></UPnPError></detail></s:Fault></s:Body></s:Envelope>
Sonos add zone to group: 48173958
Sonos Error UPNP Error: Action Failed
Sonos Error Offending Command -> zoneIP: 192.168.86.65, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: SetAVTransportURI
Sonos Error Error Response: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>501</errorCode></UPnPError></detail></s:Fault></s:Body></s:Envelope>

Sonos add zone to group: 842425637
Sonos Error UPNP Error: Action Failed
Sonos Error Offending Command -> zoneIP: 192.168.86.189, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: SetAVTransportURI
Sonos Error Error Response: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>501</errorCode></UPnPError></detail></s:Fault></s:Body></s:Envelope>

Sonos add zone to group: 1853644168
Sonos add zone to group: 262837868
Sonos add zone to group: 1715401100
Sonos add zone to group: 1853644168
Sonos add zone to group: 842425637
Sonos ZonePlayer: Sonos - Great Room, Current Volume: 0, New Volume: 0
Sonos ZonePlayer: Sonos - Kitchen, Current Volume: 0, New Volume: 0
Sonos ZonePlayer: Sonos - Mbath, Current Volume: 0, New Volume: 1
Sonos ZonePlayer: Sonos - MBR, Current Volume: 0, New Volume: 10
Sonos ZonePlayer: Sonos - Office, Current Volume: 13, New Volume: 12
Sonos ZonePlayer: Sonos - Playbar, Current Volume: 0, New Volume: 0
Sonos ZonePlayer: Sonos - Workshop, Current Volume: 0, New Volume: 0
Sonos Error UPNP Error: Unable to Play the Selected Item
Sonos Error Offending Command -> zoneIP: 192.168.86.64, soapRoot: /MediaRenderer, soapBranch: /Queue, soapAction: SaveAsSonosPlaylist
Sonos Error Error Response: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>800</errorCode></UPnPError></detail></s:Fault></s:Body></s:Envelope>

Sonos ZonePlayer: Sonos - Office, Play: b'Spotify - Yacht rock 70s and 80s music'
Sonos Error UPNP Error: Action Failed
Sonos Error Offending Command -> zoneIP: 192.168.86.70, soapRoot: /MediaRenderer, soapBranch: /Queue, soapAction: SaveAsSonosPlaylist
Sonos Error Error Response: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>501</errorCode></UPnPError></detail></s:Fault></s:Body></s:Envelope>
Sonos Error UPNP Error: Unable to Play the Selected Item
Sonos Error Offending Command -> zoneIP: 192.168.86.62, soapRoot: /MediaRenderer, soapBranch: /Queue, soapAction: SaveAsSonosPlaylist
Sonos Error Error Response: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>800</errorCode></UPnPError></detail></s:Fault></s:Body></s:Envelope>


Jan 13, 2024 at 2:49:25 PM
Z-Wave received "MBR - Closet Door Sensor" status update battery level 100%

Jan 13, 2024 at 2:53:33 PM
NOAA Weather 'NOAA - Weather Forecast' changed at 2024-01-13 12:06:21'.

Jan 13, 2024 at 2:55:28 PM
Schedule action group "Good Morning - Device Actions" (delayed action)
Z-Wave sent "MBR - JRP Table Lamp" off

Jan 13, 2024 at 2:57:36 PM
Z-Wave received "Storage Room - Leak Sensor" status update battery level 60%

Jan 13, 2024 at 3:00:13 PM
Schedule action group "Good Morning - Device Actions" (delayed action)
Sent INSTEON "MBR - Keypad (Ceiling Lights)" off

Jan 13, 2024 at 3:05:13 PM
Schedule action group "Good Morning - Device Actions" (delayed action)
Schedule action group "Good Morning - Device Actions" (delayed action)
Schedule action group "Good Morning - Device Actions" (delayed action)
Z-Wave sent "Kitchen - Keypad (Kitchen Ceiling Lights)" off
Sent INSTEON "Kitchen - Keypad Left of Sink (Undercabinet Lights)" off
Sent INSTEON "Kitchen - Table Chandelier" off
John R Patrick
Author of
Home Attitude
pgershon
Posts: 509
Joined: Sat Jul 10, 2004 1:07 am

Re: Plugin Fails with new version 2023.1.0

Post by pgershon »

I just saw the update to Python 3 and decided to give it a try. Using the 2023 version because I have not yet upgraded Indigo (I have some other plugins which require update).

I am getting an error when I try to do the update. Error in terminal while installing pyvona. Any ideas?

Code: Select all

OfficeStudio:~ pgershon$ pip3.10 install pyvona==1.2.1
Collecting pyvona==1.2.1
  Using cached pyvona-1.2.1.tar.gz (3.3 kB)
Requirement already satisfied: requests in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from pyvona==1.2.1) (2.31.0)
Requirement already satisfied: idna<4,>=2.5 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from requests->pyvona==1.2.1) (3.6)
Requirement already satisfied: urllib3<3,>=1.21.1 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from requests->pyvona==1.2.1) (1.26.18)
Requirement already satisfied: charset-normalizer<4,>=2 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from requests->pyvona==1.2.1) (3.3.2)
Requirement already satisfied: certifi>=2017.4.17 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from requests->pyvona==1.2.1) (2023.11.17)
Using legacy 'setup.py install' for pyvona, since package 'wheel' is not installed.
Installing collected packages: pyvona
    Running setup.py install for pyvona ... error
    ERROR: Command errored out with exit status 1:
     command: /Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/0q/j86n4nsn5cz6ffpzhx2sxc5w0000gn/T/pip-install-n8ebzspz/pyvona_45f6dfb1e7bf4cddae04158c07b76195/setup.py'"'"'; __file__='"'"'/private/var/folders/0q/j86n4nsn5cz6ffpzhx2sxc5w0000gn/T/pip-install-n8ebzspz/pyvona_45f6dfb1e7bf4cddae04158c07b76195/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/0q/j86n4nsn5cz6ffpzhx2sxc5w0000gn/T/pip-record-kgn0kpdp/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pyvona
         cwd: /private/var/folders/0q/j86n4nsn5cz6ffpzhx2sxc5w0000gn/T/pip-install-n8ebzspz/pyvona_45f6dfb1e7bf4cddae04158c07b76195/
    Complete output (9 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib
    copying pyvona.py -> build/lib
    running install_lib
    byte-compiling /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyvona.py to pyvona.cpython-310.pyc
    error: [Errno 13] Permission denied: '/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/__pycache__/pyvona.cpython-310.pyc.4347398960'
    ----------------------------------------
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/0q/j86n4nsn5cz6ffpzhx2sxc5w0000gn/T/pip-install-n8ebzspz/pyvona_45f6dfb1e7bf4cddae04158c07b76195/setup.py'"'"'; __file__='"'"'/private/var/folders/0q/j86n4nsn5cz6ffpzhx2sxc5w0000gn/T/pip-install-n8ebzspz/pyvona_45f6dfb1e7bf4cddae04158c07b76195/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/0q/j86n4nsn5cz6ffpzhx2sxc5w0000gn/T/pip-record-kgn0kpdp/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/pyvona Check the logs for full command output.
WARNING: You are using pip version 21.2.4; however, version 24.0 is available.
You should consider upgrading via the '/Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10 -m pip install --upgrade pip' command.
OfficeStudio:~ pgershon$ 
pgershon
Posts: 509
Joined: Sat Jul 10, 2004 1:07 am

Re: Plugin Fails with new version 2023.1.0

Post by pgershon »

Fixed problem by funning sudo bash before the install
User avatar
wideglidejrp
Posts: 558
Joined: Sun Jan 15, 2012 4:34 pm
Location: Danbury, CT
Contact:

Re: Plugin Fails with new version 2023.1.0

Post by wideglidejrp »

Does Sonos plugin need to be updated to work with 2023.2?
John R Patrick
Author of
Home Attitude
User avatar
wideglidejrp
Posts: 558
Joined: Sun Jan 15, 2012 4:34 pm
Location: Danbury, CT
Contact:

Re: Plugin Fails with new version 2023.1.0

Post by wideglidejrp »

I have the latest version of Indigo and the Sonos plugin. My problem is IP addresses of my seven Sonos devices. I got a new cable modem and reset my router. Everything now works except Sonos plugin. Indigo will not let me edit the devices to update with the new IP addresses. When I select one of the devices and then click edit, the wheel spins but does not open up to show the IP address so I can update it. Any suggestions appreciated. I am stuck.
John R Patrick
Author of
Home Attitude
Londonmark
Posts: 510
Joined: Wed Feb 29, 2012 12:57 pm

Re: Plugin Fails with new version [emoji2390]0[emoji2390][em

Post by Londonmark »

wideglidejrp wrote:I have the latest version of Indigo and the Sonos plugin. My problem is IP addresses of my seven Sonos devices. I got a new cable modem and reset my router. Everything now works except Sonos plugin. Indigo will not let me edit the devices to update with the new IP addresses. When I select one of the devices and then click edit, the wheel spins but does not open up to show the IP address so I can update it. Any suggestions appreciated. I am stuck.
Have had same issue. Used not to happen if an IP address changed but now I also get the spinning wheel and a time out.
User avatar
DaveL17
Posts: 6828
Joined: Tue Aug 20, 2013 11:02 am
Location: Chicago, IL, USA
Contact:

Re: Plugin Fails with new version 2023.1.0

Post by DaveL17 »

I don't use the Sonos plugin so take this suggestion with a grain of sand.
  1. First, make a backup of your plugin Indigo database.
  2. Open the database in a plain text editor.
  3. Search for the first Sonos device and change the device's IP address to the correct one.
  4. Rinse and repeat for each Sonos device.
There may be other issues that are keeping the plugin from working, so caveat emptor.
Last edited by DaveL17 on Wed Jul 10, 2024 8:23 am, edited 2 times in total.
I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]
autolog
Posts: 3996
Joined: Tue Sep 10, 2013 3:07 am
Location: West Sussex, UK [GMT aka UTC]
Contact:

Re: Plugin Fails with new version 2023.1.0

Post by autolog »

Unfortunately the Sonos plugin hangs with a spinning beachball if it can’t find a Sonos player.

The first thing to try is to backup the Sonos Plugin preferences AFTER having disabled the plugin.

The preferences file can be found here:

Code: Select all

/Library/Application Support/Perceptive Automation/Indigo 2023.2/Preferences/Plugins/com.ssi.indigoplugin.Sonos.indiPref
Note: Change the Indigo 2023.2 part of the path to whatever version of Indigo you are using.

Having backed up the preferences file, then edit the original version in a plain text editor.

Locate a line similar to this:

Code: Select all

<EventIP type="string">192.168.1.2</EventIP>
and change the example IP address above to the new IP address of the Indigo server.

Then locate a line similar to this:

Code: Select all

<HTTPStreamingIP type="string">192.168.1.2</HTTPStreamingIP>
and change the example IP address above to the new IP address of the Indigo server.

Save the preferences file.

Now re-enable the plugin.

If it now doesn’t work (which it probably won’t), follow the suggestion made by @DaveL17 (Thanks Dave :D).

The string to search for to find the Sonos device(s) IP address is:

Code: Select all

<com.ssi.indigoplugin.Sonos type="dict">
There will be multiple entries like this (not all related to an IP address) but the one you want is where the line above is followed by:

Code: Select all

<address type="string">192.168.1.92</address>
Note: Example IP address of Sonos device

Change the IP address to the IP address of your Sonos Player.

Repeat for all your Sonos devices.
User avatar
wideglidejrp
Posts: 558
Joined: Sun Jan 15, 2012 4:34 pm
Location: Danbury, CT
Contact:

Re: Plugin Fails with new version 2023.1.0

Post by wideglidejrp »

After updating the plugin settings with the new network addresses, I was able to edit the device IPs in the app. Thanks for the alternate solutions.
John R Patrick
Author of
Home Attitude
Post Reply

Return to “Sonos”