Plugin Fails with new version 2023.1.0

Posted on
Tue Jan 02, 2024 11:04 am
wideglidejrp offline
User avatar
Posts: 555
Joined: Jan 15, 2012
Location: Danbury, CT

Re: Plugin Fails with new version 2023.1.0

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

Posted on
Tue Jan 02, 2024 11:35 am
autolog offline
Posts: 3991
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: Plugin Fails with new version 2023.1.0

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?

Posted on
Tue Jan 02, 2024 11:44 am
wideglidejrp offline
User avatar
Posts: 555
Joined: Jan 15, 2012
Location: Danbury, CT

Re: Plugin Fails with new version 2023.1.0

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

Posted on
Sat Jan 13, 2024 2:14 pm
wideglidejrp offline
User avatar
Posts: 555
Joined: Jan 15, 2012
Location: Danbury, CT

Re: Plugin Fails with new version 2023.1.0

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

Posted on
Sun Feb 25, 2024 8:20 am
pgershon offline
Posts: 509
Joined: Jul 10, 2004

Re: Plugin Fails with new version 2023.1.0

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$

Posted on
Sun Feb 25, 2024 10:02 am
pgershon offline
Posts: 509
Joined: Jul 10, 2004

Re: Plugin Fails with new version 2023.1.0

Fixed problem by funning sudo bash before the install

Who is online

Users browsing this forum: No registered users and 20 guests