Python plugin: Sonos [old version]
Moderator: leecollings
- Dnpwwo
- Posts: 819
- Joined: Sunday 23 March 2014 9:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Melbourne, Australia
- Contact:
Re: Python plugin: Sonos
@mvzut,
Battery and Signal level functionality was introduced in the last beta and it had an issue. I've submitted a fix tonight but once you take that beta you will need to delete and recreate the affacted devices to clear the low battery status.
Should be alright after that.
Battery and Signal level functionality was introduced in the last beta and it had an issue. I've submitted a fix tonight but once you take that beta you will need to delete and recreate the affacted devices to clear the low battery status.
Should be alright after that.
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
-
- Posts: 49
- Joined: Tuesday 20 December 2016 17:43
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Sweden
- Contact:
Re: Python plugin: Sonos
Hm, right now there is no error handeling since I will switch to the built in function when it works for sonos.mvzut wrote:Tester22, I have the Sonos plugin running fine most of the time, but sometimes (maybe once a day) I get a whole bunch of error messages from it in the Domoticz log. Sometimes from one player, sometimes from more at the same time. I'm pretty sure they are caused by a temporary communication hiccup. That can of course happen once in a while with any plugin (it also happens sometimes with my Hue plugin for instance), but usually this is not causing such "explosions" in the log.
Is it possible to do silent retries in the background without immediately showing 5 error messages per player? Or just wait for the next update, and only show a single info message that the connection was lost? You can still show everything when debug mode is on, but I think most people don't want to be alarmed with a flooded error log by small glitches that occasionally happen.
P.S. I'm not a Python coder, but I can't seem to find anything on timeouts of the http request in your code. Maybe the problem can already be solved by waiting a bit longer for the player to respond?
So yes, if the Sonos would go down today you will get one error for each try. (this means 2 or 3 errors per polling intervall).
-
- Posts: 49
- Joined: Tuesday 20 December 2016 17:43
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Sweden
- Contact:
Re: Python plugin: Sonos
This is related to the Sonos protocol but I can try to make it look better in the gui.RayAmsterdam wrote:I've got my 3 Sonos speakers up and running now
Since the 3 speakers are grouped only 1 (main) speaker is updated in Domoticz with the information. For the stations,songs, etc that is not a problem. The grouped speakers however do not change their state in Domoticz when turned off, only the main speaker. They stay 'On'. Is this a bug in the plugin, or is this the behaviour of the Sonos protocol?
-
- Posts: 443
- Joined: Thursday 12 November 2015 10:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: The Netherlands
- Contact:
Python plugin: Sonos
That sounds good, I can't wait... Just had such a small hiccup again, and this is what's in the log for one missed update on just two players:tester22 wrote:Hm, right now there is no error handeling since I will switch to the built in function when it works for sonos.
So yes, if the Sonos would go down today you will get one error for each try. (this means 2 or 3 errors per polling intervall).
Code: Select all
017-02-03 13:49:40.262 Error: (Sonos Laura) ----> Line 707 in /usr/local/lib/python3.5/socket.py, function create_connection
2017-02-03 13:49:42.869 Error: (Sonos studeerkamer) 'onHeartbeat' failed 'ConnectionRefusedError'.
2017-02-03 13:49:42.869 Error: (Sonos studeerkamer) ----> Line 188 in /home/pi/domoticz/plugins/Sonos/plugin.py, function onHeartbeat
2017-02-03 13:49:42.869 Error: (Sonos studeerkamer) ----> Line 211 in /home/pi/domoticz/plugins/Sonos/plugin.py, function sendMessage
2017-02-03 13:49:42.869 Error: (Sonos studeerkamer) ----> Line 1083 in /usr/local/lib/python3.5/http/client.py, function request
2017-02-03 13:49:42.869 Error: (Sonos studeerkamer) ----> Line 1128 in /usr/local/lib/python3.5/http/client.py, function _send_request
2017-02-03 13:49:42.869 Error: (Sonos studeerkamer) ----> Line 1079 in /usr/local/lib/python3.5/http/client.py, function endheaders
2017-02-03 13:49:42.869 Error: (Sonos studeerkamer) ----> Line 911 in /usr/local/lib/python3.5/http/client.py, function _send_output
2017-02-03 13:49:42.870 Error: (Sonos studeerkamer) ----> Line 854 in /usr/local/lib/python3.5/http/client.py, function send
2017-02-03 13:49:42.870 Error: (Sonos studeerkamer) ----> Line 826 in /usr/local/lib/python3.5/http/client.py, function connect
2017-02-03 13:49:42.870 Error: (Sonos studeerkamer) ----> Line 707 in /usr/local/lib/python3.5/socket.py, function create_connection
2017-02-03 13:49:42.870 Error: (Sonos studeerkamer) ----> Line 707 in /usr/local/lib/python3.5/socket.py, function create_connection
2017-02-03 13:49:42.962 Error: (Sonos Laura) 'onHeartbeat' failed 'ConnectionRefusedError'.
2017-02-03 13:49:42.964 Error: (Sonos Laura) ----> Line 188 in /home/pi/domoticz/plugins/Sonos/plugin.py, function onHeartbeat
2017-02-03 13:49:42.966 Error: (Sonos Laura) ----> Line 211 in /home/pi/domoticz/plugins/Sonos/plugin.py, function sendMessage
2017-02-03 13:49:42.968 Error: (Sonos Laura) ----> Line 1083 in /usr/local/lib/python3.5/http/client.py, function request
2017-02-03 13:49:42.970 Error: (Sonos Laura) ----> Line 1128 in /usr/local/lib/python3.5/http/client.py, function _send_request
2017-02-03 13:49:42.970 Error: (Sonos Laura) ----> Line 1079 in /usr/local/lib/python3.5/http/client.py, function endheaders
2017-02-03 13:49:42.972 Error: (Sonos Laura) ----> Line 911 in /usr/local/lib/python3.5/http/client.py, function _send_output
2017-02-03 13:49:42.972 Error: (Sonos Laura) ----> Line 854 in /usr/local/lib/python3.5/http/client.py, function send
2017-02-03 13:49:42.972 Error: (Sonos Laura) ----> Line 826 in /usr/local/lib/python3.5/http/client.py, function connect
2017-02-03 13:49:42.972 Error: (Sonos Laura) ----> Line 707 in /usr/local/lib/python3.5/socket.py, function create_connection
2017-02-03 13:49:42.972 Error: (Sonos Laura) ----> Line 707 in /usr/local/lib/python3.5/socket.py, function create_connection
2017-02-03 13:49:42.996 Error: (Sonos studeerkamer) 'onHeartbeat' failed 'ConnectionRefusedError'.
2017-02-03 13:49:42.998 Error: (Sonos studeerkamer) ----> Line 188 in /home/pi/domoticz/plugins/Sonos/plugin.py, function onHeartbeat
2017-02-03 13:49:43.000 Error: (Sonos studeerkamer) ----> Line 211 in /home/pi/domoticz/plugins/Sonos/plugin.py, function sendMessage
2017-02-03 13:49:43.002 Error: (Sonos studeerkamer) ----> Line 1083 in /usr/local/lib/python3.5/http/client.py, function request
2017-02-03 13:49:43.004 Error: (Sonos studeerkamer) ----> Line 1128 in /usr/local/lib/python3.5/http/client.py, function _send_request
2017-02-03 13:49:43.004 Error: (Sonos studeerkamer) ----> Line 1079 in /usr/local/lib/python3.5/http/client.py, function endheaders
2017-02-03 13:49:43.004 Error: (Sonos studeerkamer) ----> Line 911 in /usr/local/lib/python3.5/http/client.py, function _send_output
2017-02-03 13:49:43.004 Error: (Sonos studeerkamer) ----> Line 854 in /usr/local/lib/python3.5/http/client.py, function send
2017-02-03 13:49:43.004 Error: (Sonos studeerkamer) ----> Line 826 in /usr/local/lib/python3.5/http/client.py, function connect
2017-02-03 13:49:43.004 Error: (Sonos studeerkamer) ----> Line 707 in /usr/local/lib/python3.5/socket.py, function create_connection
2017-02-03 13:49:43.004 Error: (Sonos studeerkamer) ----> Line 707 in /usr/local/lib/python3.5/socket.py, function create_connection
2017-02-03 13:49:43.057 Error: (Sonos Laura) 'onHeartbeat' failed 'ConnectionRefusedError'.
2017-02-03 13:49:43.060 Error: (Sonos Laura) ----> Line 188 in /home/pi/domoticz/plugins/Sonos/plugin.py, function onHeartbeat
2017-02-03 13:49:43.062 Error: (Sonos Laura) ----> Line 211 in /home/pi/domoticz/plugins/Sonos/plugin.py, function sendMessage
2017-02-03 13:49:43.063 Error: (Sonos Laura) ----> Line 1083 in /usr/local/lib/python3.5/http/client.py, function request
2017-02-03 13:49:43.065 Error: (Sonos Laura) ----> Line 1128 in /usr/local/lib/python3.5/http/client.py, function _send_request
2017-02-03 13:49:43.065 Error: (Sonos Laura) ----> Line 1079 in /usr/local/lib/python3.5/http/client.py, function endheaders
2017-02-03 13:49:43.065 Error: (Sonos Laura) ----> Line 911 in /usr/local/lib/python3.5/http/client.py, function _send_output
2017-02-03 13:49:43.065 Error: (Sonos Laura) ----> Line 854 in /usr/local/lib/python3.5/http/client.py, function send
2017-02-03 13:49:43.065 Error: (Sonos Laura) ----> Line 826 in /usr/local/lib/python3.5/http/client.py, function connect
2017-02-03 13:49:43.066 Error: (Sonos Laura) ----> Line 707 in /usr/local/lib/python3.5/socket.py, function create_connection
2017-02-03 13:49:43.066 Error: (Sonos Laura) ----> Line 707 in /usr/local/lib/python3.5/socket.py, function create_connection
2017-02-03 13:49:43.090 Error: (Sonos studeerkamer) 'onHeartbeat' failed 'ConnectionRefusedError'.
2017-02-03 13:49:43.092 Error: (Sonos studeerkamer) ----> Line 188 in /home/pi/domoticz/plugins/Sonos/plugin.py, function onHeartbeat
2017-02-03 13:49:43.094 Error: (Sonos studeerkamer) ----> Line 211 in /home/pi/domoticz/plugins/Sonos/plugin.py, function sendMessage
2017-02-03 13:49:43.096 Error: (Sonos studeerkamer) ----> Line 1083 in /usr/local/lib/python3.5/http/client.py, function request
2017-02-03 13:49:43.098 Error: (Sonos studeerkamer) ----> Line 1128 in /usr/local/lib/python3.5/http/client.py, function _send_request
2017-02-03 13:49:43.098 Error: (Sonos studeerkamer) ----> Line 1079 in /usr/local/lib/python3.5/http/client.py, function endheaders
2017-02-03 13:49:43.098 Error: (Sonos studeerkamer) ----> Line 911 in /usr/local/lib/python3.5/http/client.py, function _send_output
2017-02-03 13:49:43.098 Error: (Sonos studeerkamer) ----> Line 854 in /usr/local/lib/python3.5/http/client.py, function send
2017-02-03 13:49:43.098 Error: (Sonos studeerkamer) ----> Line 826 in /usr/local/lib/python3.5/http/client.py, function connect
2017-02-03 13:49:43.098 Error: (Sonos studeerkamer) ----> Line 707 in /usr/local/lib/python3.5/socket.py, function create_connection
2017-02-03 13:49:43.098 Error: (Sonos studeerkamer) ----> Line 707 in /usr/local/lib/python3.5/socket.py, function create_connection
2017-02-03 13:49:43.144 Error: (Sonos Laura) 'onHeartbeat' failed 'ConnectionRefusedError'.
2017-02-03 13:49:43.146 Error: (Sonos Laura) ----> Line 188 in /home/pi/domoticz/plugins/Sonos/plugin.py, function onHeartbeat
2017-02-03 13:49:43.148 Error: (Sonos Laura) ----> Line 211 in /home/pi/domoticz/plugins/Sonos/plugin.py, function sendMessage
2017-02-03 13:49:43.149 Error: (Sonos Laura) ----> Line 1083 in /usr/local/lib/python3.5/http/client.py, function request
2017-02-03 13:49:43.152 Error: (Sonos Laura) ----> Line 1128 in /usr/local/lib/python3.5/http/client.py, function _send_request
2017-02-03 13:49:43.152 Error: (Sonos Laura) ----> Line 1079 in /usr/local/lib/python3.5/http/client.py, function endheaders
2017-02-03 13:49:43.152 Error: (Sonos Laura) ----> Line 911 in /usr/local/lib/python3.5/http/client.py, function _send_output
2017-02-03 13:49:43.152 Error: (Sonos Laura) ----> Line 854 in /usr/local/lib/python3.5/http/client.py, function send
2017-02-03 13:49:43.152 Error: (Sonos Laura) ----> Line 826 in /usr/local/lib/python3.5/http/client.py, function connect
2017-02-03 13:49:43.152 Error: (Sonos Laura) ----> Line 707 in /usr/local/lib/python3.5/socket.py, function create_connection
2017-02-03 13:49:43.152 Error: (Sonos Laura) ----> Line 707 in /usr/local/lib/python3.5/socket.py, function create_connection
2017-02-03 13:49:43.177 Error: (Sonos studeerkamer) 'onHeartbeat' failed 'ConnectionRefusedError'.
2017-02-03 13:49:43.179 Error: (Sonos studeerkamer) ----> Line 188 in /home/pi/domoticz/plugins/Sonos/plugin.py, function onHeartbeat
2017-02-03 13:49:43.182 Error: (Sonos studeerkamer) ----> Line 211 in /home/pi/domoticz/plugins/Sonos/plugin.py, function sendMessage
2017-02-03 13:49:43.184 Error: (Sonos studeerkamer) ----> Line 1083 in /usr/local/lib/python3.5/http/client.py, function request
2017-02-03 13:49:43.186 Error: (Sonos studeerkamer) ----> Line 1128 in /usr/local/lib/python3.5/http/client.py, function _send_request
2017-02-03 13:49:43.186 Error: (Sonos studeerkamer) ----> Line 1079 in /usr/local/lib/python3.5/http/client.py, function endheaders
2017-02-03 13:49:43.186 Error: (Sonos studeerkamer) ----> Line 911 in /usr/local/lib/python3.5/http/client.py, function _send_output
2017-02-03 13:49:43.186 Error: (Sonos studeerkamer) ----> Line 854 in /usr/local/lib/python3.5/http/client.py, function send
2017-02-03 13:49:43.186 Error: (Sonos studeerkamer) ----> Line 826 in /usr/local/lib/python3.5/http/client.py, function connect
2017-02-03 13:49:43.186 Error: (Sonos studeerkamer) ----> Line 707 in /usr/local/lib/python3.5/socket.py, function create_connection
2017-02-03 13:49:43.186 Error: (Sonos studeerkamer) ----> Line 707 in /usr/local/lib/python3.5/socket.py, function create_connection
2017-02-03 13:49:43.234 Error: (Sonos Laura) 'onHeartbeat' failed 'ConnectionRefusedError'.
2017-02-03 13:49:43.236 Error: (Sonos Laura) ----> Line 188 in /home/pi/domoticz/plugins/Sonos/plugin.py, function onHeartbeat
2017-02-03 13:49:43.238 Error: (Sonos Laura) ----> Line 211 in /home/pi/domoticz/plugins/Sonos/plugin.py, function sendMessage
2017-02-03 13:49:43.240 Error: (Sonos Laura) ----> Line 1083 in /usr/local/lib/python3.5/http/client.py, function request
2017-02-03 13:49:43.242 Error: (Sonos Laura) ----> Line 1128 in /usr/local/lib/python3.5/http/client.py, function _send_request
2017-02-03 13:49:43.242 Error: (Sonos Laura) ----> Line 1079 in /usr/local/lib/python3.5/http/client.py, function endheaders
2017-02-03 13:49:43.242 Error: (Sonos Laura) ----> Line 911 in /usr/local/lib/python3.5/http/client.py, function _send_output
2017-02-03 13:49:43.242 Error: (Sonos Laura) ----> Line 854 in /usr/local/lib/python3.5/http/client.py, function send
2017-02-03 13:49:43.242 Error: (Sonos Laura) ----> Line 826 in /usr/local/lib/python3.5/http/client.py, function connect
2017-02-03 13:49:43.242 Error: (Sonos Laura) ----> Line 707 in /usr/local/lib/python3.5/socket.py, function create_connection
2017-02-03 13:49:43.242 Error: (Sonos Laura) ----> Line 707 in /usr/local/lib/python3.5/socket.py, function create_connection
2017-02-03 13:49:43.268 Error: (Sonos studeerkamer) 'onHeartbeat' failed 'ConnectionRefusedError'.
2017-02-03 13:49:43.270 Error: (Sonos studeerkamer) ----> Line 188 in /home/pi/domoticz/plugins/Sonos/plugin.py, function onHeartbeat
2017-02-03 13:49:43.272 Error: (Sonos studeerkamer) ----> Line 211 in /home/pi/domoticz/plugins/Sonos/plugin.py, function sendMessage
2017-02-03 13:49:43.274 Error: (Sonos studeerkamer) ----> Line 1083 in /usr/local/lib/python3.5/http/client.py, function request
2017-02-03 13:49:43.276 Error: (Sonos studeerkamer) ----> Line 1128 in /usr/local/lib/python3.5/http/client.py, function _send_request
2017-02-03 13:49:43.276 Error: (Sonos studeerkamer) ----> Line 1079 in /usr/local/lib/python3.5/http/client.py, function endheaders
2017-02-03 13:49:43.276 Error: (Sonos studeerkamer) ----> Line 911 in /usr/local/lib/python3.5/http/client.py, function _send_output
2017-02-03 13:49:43.276 Error: (Sonos studeerkamer) ----> Line 854 in /usr/local/lib/python3.5/http/client.py, function send
2017-02-03 13:49:43.276 Error: (Sonos studeerkamer) ----> Line 826 in /usr/local/lib/python3.5/http/client.py, function connect
2017-02-03 13:49:43.277 Error: (Sonos studeerkamer) ----> Line 707 in /usr/local/lib/python3.5/socket.py, function create_connection
2017-02-03 13:49:43.277 Error: (Sonos studeerkamer) ----> Line 707 in /usr/local/lib/python3.5/socket.py, function create_connection
Raspberry Pi 4 - RFXtrx433 - CC2531 Zigbee - Opentherm Gateway - P1 smart meter - Netatmo - Philips Hue - ELV Max! - ESP8266 DIY water meter - 6 x Sonos - 4 x IP cameras - Wall mounted tablet + Dashticz - Google Home integration - MANY switches/sensors
-
- Posts: 49
- Joined: Tuesday 20 December 2016 17:43
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Sweden
- Contact:
Re: Python plugin: Sonos
Yes, looks like network problems.mvzut wrote:That sounds good, I can't wait... Just had such a small hiccup again, and this is what's in the log for one missed update on just two players:tester22 wrote:Hm, right now there is no error handeling since I will switch to the built in function when it works for sonos.
So yes, if the Sonos would go down today you will get one error for each try. (this means 2 or 3 errors per polling intervall).Code: Select all
017-02-03 13:49:40.262 Error: (Sonos Laura) ----> Line 707 in /usr/local/lib/python3.5/socket.py, function create_connection 2017-02-03 13:49:42.869 Error: (Sonos studeerkamer) 'onHeartbeat' failed 'ConnectionRefusedError'. 2017-02-03 13:49:42.869 Error: (Sonos studeerkamer) ----> Line 188 in /home/pi/domoticz/plugins/Sonos/plugin.py, function onHeartbeat 2017-02-03 13:49:42.869 Error: (Sonos studeerkamer) ----> Line 211 in /home/pi/domoticz/plugins/Sonos/plugin.py, function sendMessage 2017-02-03 13:49:42.869 Error: (Sonos studeerkamer) ----> Line 1083 in /usr/local/lib/python3.5/http/client.py, function request 2017-02-03 13:49:42.869 Error: (Sonos studeerkamer) ----> Line 1128 in /usr/local/lib/python3.5/http/client.py, function _send_request 2017-02-03 13:49:42.869 Error: (Sonos studeerkamer) ----> Line 1079 in /usr/local/lib/python3.5/http/client.py, function endheaders 2017-02-03 13:49:42.869 Error: (Sonos studeerkamer) ----> Line 911 in /usr/local/lib/python3.5/http/client.py, function _send_output 2017-02-03 13:49:42.870 Error: (Sonos studeerkamer) ----> Line 854 in /usr/local/lib/python3.5/http/client.py, function send 2017-02-03 13:49:42.870 Error: (Sonos studeerkamer) ----> Line 826 in /usr/local/lib/python3.5/http/client.py, function connect 2017-02-03 13:49:42.870 Error: (Sonos studeerkamer) ----> Line 707 in /usr/local/lib/python3.5/socket.py, function create_connection 2017-02-03 13:49:42.870 Error: (Sonos studeerkamer) ----> Line 707 in /usr/local/lib/python3.5/socket.py, function create_connection 2017-02-03 13:49:42.962 Error: (Sonos Laura) 'onHeartbeat' failed 'ConnectionRefusedError'. 2017-02-03 13:49:42.964 Error: (Sonos Laura) ----> Line 188 in /home/pi/domoticz/plugins/Sonos/plugin.py, function onHeartbeat 2017-02-03 13:49:42.966 Error: (Sonos Laura) ----> Line 211 in /home/pi/domoticz/plugins/Sonos/plugin.py, function sendMessage 2017-02-03 13:49:42.968 Error: (Sonos Laura) ----> Line 1083 in /usr/local/lib/python3.5/http/client.py, function request 2017-02-03 13:49:42.970 Error: (Sonos Laura) ----> Line 1128 in /usr/local/lib/python3.5/http/client.py, function _send_request 2017-02-03 13:49:42.970 Error: (Sonos Laura) ----> Line 1079 in /usr/local/lib/python3.5/http/client.py, function endheaders 2017-02-03 13:49:42.972 Error: (Sonos Laura) ----> Line 911 in /usr/local/lib/python3.5/http/client.py, function _send_output 2017-02-03 13:49:42.972 Error: (Sonos Laura) ----> Line 854 in /usr/local/lib/python3.5/http/client.py, function send 2017-02-03 13:49:42.972 Error: (Sonos Laura) ----> Line 826 in /usr/local/lib/python3.5/http/client.py, function connect 2017-02-03 13:49:42.972 Error: (Sonos Laura) ----> Line 707 in /usr/local/lib/python3.5/socket.py, function create_connection 2017-02-03 13:49:42.972 Error: (Sonos Laura) ----> Line 707 in /usr/local/lib/python3.5/socket.py, function create_connection 2017-02-03 13:49:42.996 Error: (Sonos studeerkamer) 'onHeartbeat' failed 'ConnectionRefusedError'. 2017-02-03 13:49:42.998 Error: (Sonos studeerkamer) ----> Line 188 in /home/pi/domoticz/plugins/Sonos/plugin.py, function onHeartbeat 2017-02-03 13:49:43.000 Error: (Sonos studeerkamer) ----> Line 211 in /home/pi/domoticz/plugins/Sonos/plugin.py, function sendMessage 2017-02-03 13:49:43.002 Error: (Sonos studeerkamer) ----> Line 1083 in /usr/local/lib/python3.5/http/client.py, function request 2017-02-03 13:49:43.004 Error: (Sonos studeerkamer) ----> Line 1128 in /usr/local/lib/python3.5/http/client.py, function _send_request 2017-02-03 13:49:43.004 Error: (Sonos studeerkamer) ----> Line 1079 in /usr/local/lib/python3.5/http/client.py, function endheaders 2017-02-03 13:49:43.004 Error: (Sonos studeerkamer) ----> Line 911 in /usr/local/lib/python3.5/http/client.py, function _send_output 2017-02-03 13:49:43.004 Error: (Sonos studeerkamer) ----> Line 854 in /usr/local/lib/python3.5/http/client.py, function send 2017-02-03 13:49:43.004 Error: (Sonos studeerkamer) ----> Line 826 in /usr/local/lib/python3.5/http/client.py, function connect 2017-02-03 13:49:43.004 Error: (Sonos studeerkamer) ----> Line 707 in /usr/local/lib/python3.5/socket.py, function create_connection 2017-02-03 13:49:43.004 Error: (Sonos studeerkamer) ----> Line 707 in /usr/local/lib/python3.5/socket.py, function create_connection 2017-02-03 13:49:43.057 Error: (Sonos Laura) 'onHeartbeat' failed 'ConnectionRefusedError'. 2017-02-03 13:49:43.060 Error: (Sonos Laura) ----> Line 188 in /home/pi/domoticz/plugins/Sonos/plugin.py, function onHeartbeat 2017-02-03 13:49:43.062 Error: (Sonos Laura) ----> Line 211 in /home/pi/domoticz/plugins/Sonos/plugin.py, function sendMessage 2017-02-03 13:49:43.063 Error: (Sonos Laura) ----> Line 1083 in /usr/local/lib/python3.5/http/client.py, function request 2017-02-03 13:49:43.065 Error: (Sonos Laura) ----> Line 1128 in /usr/local/lib/python3.5/http/client.py, function _send_request 2017-02-03 13:49:43.065 Error: (Sonos Laura) ----> Line 1079 in /usr/local/lib/python3.5/http/client.py, function endheaders 2017-02-03 13:49:43.065 Error: (Sonos Laura) ----> Line 911 in /usr/local/lib/python3.5/http/client.py, function _send_output 2017-02-03 13:49:43.065 Error: (Sonos Laura) ----> Line 854 in /usr/local/lib/python3.5/http/client.py, function send 2017-02-03 13:49:43.065 Error: (Sonos Laura) ----> Line 826 in /usr/local/lib/python3.5/http/client.py, function connect 2017-02-03 13:49:43.066 Error: (Sonos Laura) ----> Line 707 in /usr/local/lib/python3.5/socket.py, function create_connection 2017-02-03 13:49:43.066 Error: (Sonos Laura) ----> Line 707 in /usr/local/lib/python3.5/socket.py, function create_connection 2017-02-03 13:49:43.090 Error: (Sonos studeerkamer) 'onHeartbeat' failed 'ConnectionRefusedError'. 2017-02-03 13:49:43.092 Error: (Sonos studeerkamer) ----> Line 188 in /home/pi/domoticz/plugins/Sonos/plugin.py, function onHeartbeat 2017-02-03 13:49:43.094 Error: (Sonos studeerkamer) ----> Line 211 in /home/pi/domoticz/plugins/Sonos/plugin.py, function sendMessage 2017-02-03 13:49:43.096 Error: (Sonos studeerkamer) ----> Line 1083 in /usr/local/lib/python3.5/http/client.py, function request 2017-02-03 13:49:43.098 Error: (Sonos studeerkamer) ----> Line 1128 in /usr/local/lib/python3.5/http/client.py, function _send_request 2017-02-03 13:49:43.098 Error: (Sonos studeerkamer) ----> Line 1079 in /usr/local/lib/python3.5/http/client.py, function endheaders 2017-02-03 13:49:43.098 Error: (Sonos studeerkamer) ----> Line 911 in /usr/local/lib/python3.5/http/client.py, function _send_output 2017-02-03 13:49:43.098 Error: (Sonos studeerkamer) ----> Line 854 in /usr/local/lib/python3.5/http/client.py, function send 2017-02-03 13:49:43.098 Error: (Sonos studeerkamer) ----> Line 826 in /usr/local/lib/python3.5/http/client.py, function connect 2017-02-03 13:49:43.098 Error: (Sonos studeerkamer) ----> Line 707 in /usr/local/lib/python3.5/socket.py, function create_connection 2017-02-03 13:49:43.098 Error: (Sonos studeerkamer) ----> Line 707 in /usr/local/lib/python3.5/socket.py, function create_connection 2017-02-03 13:49:43.144 Error: (Sonos Laura) 'onHeartbeat' failed 'ConnectionRefusedError'. 2017-02-03 13:49:43.146 Error: (Sonos Laura) ----> Line 188 in /home/pi/domoticz/plugins/Sonos/plugin.py, function onHeartbeat 2017-02-03 13:49:43.148 Error: (Sonos Laura) ----> Line 211 in /home/pi/domoticz/plugins/Sonos/plugin.py, function sendMessage 2017-02-03 13:49:43.149 Error: (Sonos Laura) ----> Line 1083 in /usr/local/lib/python3.5/http/client.py, function request 2017-02-03 13:49:43.152 Error: (Sonos Laura) ----> Line 1128 in /usr/local/lib/python3.5/http/client.py, function _send_request 2017-02-03 13:49:43.152 Error: (Sonos Laura) ----> Line 1079 in /usr/local/lib/python3.5/http/client.py, function endheaders 2017-02-03 13:49:43.152 Error: (Sonos Laura) ----> Line 911 in /usr/local/lib/python3.5/http/client.py, function _send_output 2017-02-03 13:49:43.152 Error: (Sonos Laura) ----> Line 854 in /usr/local/lib/python3.5/http/client.py, function send 2017-02-03 13:49:43.152 Error: (Sonos Laura) ----> Line 826 in /usr/local/lib/python3.5/http/client.py, function connect 2017-02-03 13:49:43.152 Error: (Sonos Laura) ----> Line 707 in /usr/local/lib/python3.5/socket.py, function create_connection 2017-02-03 13:49:43.152 Error: (Sonos Laura) ----> Line 707 in /usr/local/lib/python3.5/socket.py, function create_connection 2017-02-03 13:49:43.177 Error: (Sonos studeerkamer) 'onHeartbeat' failed 'ConnectionRefusedError'. 2017-02-03 13:49:43.179 Error: (Sonos studeerkamer) ----> Line 188 in /home/pi/domoticz/plugins/Sonos/plugin.py, function onHeartbeat 2017-02-03 13:49:43.182 Error: (Sonos studeerkamer) ----> Line 211 in /home/pi/domoticz/plugins/Sonos/plugin.py, function sendMessage 2017-02-03 13:49:43.184 Error: (Sonos studeerkamer) ----> Line 1083 in /usr/local/lib/python3.5/http/client.py, function request 2017-02-03 13:49:43.186 Error: (Sonos studeerkamer) ----> Line 1128 in /usr/local/lib/python3.5/http/client.py, function _send_request 2017-02-03 13:49:43.186 Error: (Sonos studeerkamer) ----> Line 1079 in /usr/local/lib/python3.5/http/client.py, function endheaders 2017-02-03 13:49:43.186 Error: (Sonos studeerkamer) ----> Line 911 in /usr/local/lib/python3.5/http/client.py, function _send_output 2017-02-03 13:49:43.186 Error: (Sonos studeerkamer) ----> Line 854 in /usr/local/lib/python3.5/http/client.py, function send 2017-02-03 13:49:43.186 Error: (Sonos studeerkamer) ----> Line 826 in /usr/local/lib/python3.5/http/client.py, function connect 2017-02-03 13:49:43.186 Error: (Sonos studeerkamer) ----> Line 707 in /usr/local/lib/python3.5/socket.py, function create_connection 2017-02-03 13:49:43.186 Error: (Sonos studeerkamer) ----> Line 707 in /usr/local/lib/python3.5/socket.py, function create_connection 2017-02-03 13:49:43.234 Error: (Sonos Laura) 'onHeartbeat' failed 'ConnectionRefusedError'. 2017-02-03 13:49:43.236 Error: (Sonos Laura) ----> Line 188 in /home/pi/domoticz/plugins/Sonos/plugin.py, function onHeartbeat 2017-02-03 13:49:43.238 Error: (Sonos Laura) ----> Line 211 in /home/pi/domoticz/plugins/Sonos/plugin.py, function sendMessage 2017-02-03 13:49:43.240 Error: (Sonos Laura) ----> Line 1083 in /usr/local/lib/python3.5/http/client.py, function request 2017-02-03 13:49:43.242 Error: (Sonos Laura) ----> Line 1128 in /usr/local/lib/python3.5/http/client.py, function _send_request 2017-02-03 13:49:43.242 Error: (Sonos Laura) ----> Line 1079 in /usr/local/lib/python3.5/http/client.py, function endheaders 2017-02-03 13:49:43.242 Error: (Sonos Laura) ----> Line 911 in /usr/local/lib/python3.5/http/client.py, function _send_output 2017-02-03 13:49:43.242 Error: (Sonos Laura) ----> Line 854 in /usr/local/lib/python3.5/http/client.py, function send 2017-02-03 13:49:43.242 Error: (Sonos Laura) ----> Line 826 in /usr/local/lib/python3.5/http/client.py, function connect 2017-02-03 13:49:43.242 Error: (Sonos Laura) ----> Line 707 in /usr/local/lib/python3.5/socket.py, function create_connection 2017-02-03 13:49:43.242 Error: (Sonos Laura) ----> Line 707 in /usr/local/lib/python3.5/socket.py, function create_connection 2017-02-03 13:49:43.268 Error: (Sonos studeerkamer) 'onHeartbeat' failed 'ConnectionRefusedError'. 2017-02-03 13:49:43.270 Error: (Sonos studeerkamer) ----> Line 188 in /home/pi/domoticz/plugins/Sonos/plugin.py, function onHeartbeat 2017-02-03 13:49:43.272 Error: (Sonos studeerkamer) ----> Line 211 in /home/pi/domoticz/plugins/Sonos/plugin.py, function sendMessage 2017-02-03 13:49:43.274 Error: (Sonos studeerkamer) ----> Line 1083 in /usr/local/lib/python3.5/http/client.py, function request 2017-02-03 13:49:43.276 Error: (Sonos studeerkamer) ----> Line 1128 in /usr/local/lib/python3.5/http/client.py, function _send_request 2017-02-03 13:49:43.276 Error: (Sonos studeerkamer) ----> Line 1079 in /usr/local/lib/python3.5/http/client.py, function endheaders 2017-02-03 13:49:43.276 Error: (Sonos studeerkamer) ----> Line 911 in /usr/local/lib/python3.5/http/client.py, function _send_output 2017-02-03 13:49:43.276 Error: (Sonos studeerkamer) ----> Line 854 in /usr/local/lib/python3.5/http/client.py, function send 2017-02-03 13:49:43.276 Error: (Sonos studeerkamer) ----> Line 826 in /usr/local/lib/python3.5/http/client.py, function connect 2017-02-03 13:49:43.277 Error: (Sonos studeerkamer) ----> Line 707 in /usr/local/lib/python3.5/socket.py, function create_connection 2017-02-03 13:49:43.277 Error: (Sonos studeerkamer) ----> Line 707 in /usr/local/lib/python3.5/socket.py, function create_connection
But there is so much logging that it seems like you have debug set to true under hardware settings.
Disable it to reduce the logging.
-
- Posts: 443
- Joined: Thursday 12 November 2015 10:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: The Netherlands
- Contact:
Re: Python plugin: Sonos
That's what I thought too, but I can assure you its not!tester22 wrote:Yes, looks like network problems.
But there is so much logging that it seems like you have debug set to true under hardware settings.
Disable it to reduce the logging.
Raspberry Pi 4 - RFXtrx433 - CC2531 Zigbee - Opentherm Gateway - P1 smart meter - Netatmo - Philips Hue - ELV Max! - ESP8266 DIY water meter - 6 x Sonos - 4 x IP cameras - Wall mounted tablet + Dashticz - Google Home integration - MANY switches/sensors
-
- Posts: 60
- Joined: Saturday 20 June 2015 10:16
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python plugin: Sonos
sorry when i run the script, i have this error any idea how i can fix this :
pi@DomoticzSam ~/domoticz/scripts/Sonos $ ./plugin.py
./plugin.py: ligne8: $'\n<plugin key=Sonos name=Sonos' : commande introuvable
./plugin.py: ligne25: import : commande introuvable
./plugin.py: ligne26: import : commande introuvable
./plugin.py: ligne27: import : commande introuvable
./plugin.py: ligne30: playerState : commande introuvable
./plugin.py: ligne31: mediaLevel : commande introuvable
./plugin.py: ligne32: mediaDescription : commande introuvable
./plugin.py: ligne33: muted : commande introuvable
./plugin.py: ligne34: creator : commande introuvable
./plugin.py: ligne35: title : commande introuvable
./plugin.py: ligne38: Erreur de syntaxe près du symbole inattendu « ( »
./plugin.py: ligne38: `def onStart():'
thanks
pi@DomoticzSam ~/domoticz/scripts/Sonos $ ./plugin.py
./plugin.py: ligne8: $'\n<plugin key=Sonos name=Sonos' : commande introuvable
./plugin.py: ligne25: import : commande introuvable
./plugin.py: ligne26: import : commande introuvable
./plugin.py: ligne27: import : commande introuvable
./plugin.py: ligne30: playerState : commande introuvable
./plugin.py: ligne31: mediaLevel : commande introuvable
./plugin.py: ligne32: mediaDescription : commande introuvable
./plugin.py: ligne33: muted : commande introuvable
./plugin.py: ligne34: creator : commande introuvable
./plugin.py: ligne35: title : commande introuvable
./plugin.py: ligne38: Erreur de syntaxe près du symbole inattendu « ( »
./plugin.py: ligne38: `def onStart():'
thanks
-
- Posts: 49
- Joined: Tuesday 20 December 2016 17:43
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Sweden
- Contact:
Re: Python plugin: Sonos
Added an quick fix for this in the latest commit: https://github.com/tester22/Domoticz-Sonosmvzut wrote:That's what I thought too, but I can assure you its not!tester22 wrote:Yes, looks like network problems.
But there is so much logging that it seems like you have debug set to true under hardware settings.
Disable it to reduce the logging.
-
- Posts: 49
- Joined: Tuesday 20 December 2016 17:43
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Sweden
- Contact:
Re: Python plugin: Sonos
bran2000 wrote:sorry when i run the script, i have this error any idea how i can fix this :
pi@DomoticzSam ~/domoticz/scripts/Sonos $ ./plugin.py
./plugin.py: ligne8: $'\n<plugin key=Sonos name=Sonos' : commande introuvable
./plugin.py: ligne25: import : commande introuvable
./plugin.py: ligne26: import : commande introuvable
./plugin.py: ligne27: import : commande introuvable
./plugin.py: ligne30: playerState : commande introuvable
./plugin.py: ligne31: mediaLevel : commande introuvable
./plugin.py: ligne32: mediaDescription : commande introuvable
./plugin.py: ligne33: muted : commande introuvable
./plugin.py: ligne34: creator : commande introuvable
./plugin.py: ligne35: title : commande introuvable
./plugin.py: ligne38: Erreur de syntaxe près du symbole inattendu « ( »
./plugin.py: ligne38: `def onStart():'
thanks
You should read this: http://www.domoticz.com/forum/viewtopic ... 65&t=15233
-
- Posts: 60
- Joined: Saturday 20 June 2015 10:16
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python plugin: Sonos
i read it and i created a separated folder into the script folder :
domoticz/plugins/Sonos
do you think that's my problem ?
domoticz/plugins/Sonos
do you think that's my problem ?
-
- Posts: 443
- Joined: Thursday 12 November 2015 10:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: The Netherlands
- Contact:
Python plugin: Sonos
I just installed your latest script version from github, and reinstalled all the players devices, but I still get the battery problem. Our do I need to update Domoticz too?Dnpwwo wrote:@mvzut,
Battery and Signal level functionality was introduced in the last beta and it had an issue. I've submitted a fix tonight but once you take that beta you will need to delete and recreate the affacted devices to clear the low battery status.
Should be alright after that.
Raspberry Pi 4 - RFXtrx433 - CC2531 Zigbee - Opentherm Gateway - P1 smart meter - Netatmo - Philips Hue - ELV Max! - ESP8266 DIY water meter - 6 x Sonos - 4 x IP cameras - Wall mounted tablet + Dashticz - Google Home integration - MANY switches/sensors
- G3rard
- Posts: 669
- Joined: Wednesday 04 March 2015 22:15
- Target OS: -
- Domoticz version: No
- Location: The Netherlands
- Contact:
Re: Python plugin: Sonos
The beta from Dnpwwo is indeed the new Domoticz beta, so you have to update Domoticz too.
Not using Domoticz anymore
-
- Posts: 443
- Joined: Thursday 12 November 2015 10:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: The Netherlands
- Contact:
Re: Python plugin: Sonos
Did that, and recreated all my Sonos devices again. All of them still get (zero) signal strengths and battery levels. Is that the intended behaviour?G3rard wrote:The beta from Dnpwwo is indeed the new Domoticz beta, so you have to update Domoticz too.
Raspberry Pi 4 - RFXtrx433 - CC2531 Zigbee - Opentherm Gateway - P1 smart meter - Netatmo - Philips Hue - ELV Max! - ESP8266 DIY water meter - 6 x Sonos - 4 x IP cameras - Wall mounted tablet + Dashticz - Google Home integration - MANY switches/sensors
- Dnpwwo
- Posts: 819
- Joined: Sunday 23 March 2014 9:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Melbourne, Australia
- Contact:
Re: Python plugin: Sonos
@mvzut,
That's not the intended behaviour at all.
I was a bit surprised you still had the problem until I realised I had missed the main file from the pull request I've created a new pull request and once that gets added to the beta you will need to remove and re-add them again and it should work.
That's not the intended behaviour at all.
I was a bit surprised you still had the problem until I realised I had missed the main file from the pull request I've created a new pull request and once that gets added to the beta you will need to remove and re-add them again and it should work.
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
-
- Posts: 60
- Joined: Saturday 20 June 2015 10:16
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python plugin: Sonos
Any idea about my problem ?bran2000 wrote:i read it and i created a separated folder into the script folder :
domoticz/plugins/Sonos
do you think that's my problem ?
-
- Posts: 443
- Joined: Thursday 12 November 2015 10:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: The Netherlands
- Contact:
Re: Python plugin: Sonos
Ok, works now, thanks!Dnpwwo wrote:@mvzut,
That's not the intended behaviour at all.
I was a bit surprised you still had the problem until I realised I had missed the main file from the pull request I've created a new pull request and once that gets added to the beta you will need to remove and re-add them again and it should work.
Raspberry Pi 4 - RFXtrx433 - CC2531 Zigbee - Opentherm Gateway - P1 smart meter - Netatmo - Philips Hue - ELV Max! - ESP8266 DIY water meter - 6 x Sonos - 4 x IP cameras - Wall mounted tablet + Dashticz - Google Home integration - MANY switches/sensors
-
- Posts: 443
- Joined: Thursday 12 November 2015 10:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: The Netherlands
- Contact:
Re: Python plugin: Sonos
I have it in the same folder, so that can't be the problem I guess.bran2000 wrote:Any idea about my problem ?bran2000 wrote:i read it and i created a separated folder into the script folder :
domoticz/plugins/Sonos
do you think that's my problem ?
Raspberry Pi 4 - RFXtrx433 - CC2531 Zigbee - Opentherm Gateway - P1 smart meter - Netatmo - Philips Hue - ELV Max! - ESP8266 DIY water meter - 6 x Sonos - 4 x IP cameras - Wall mounted tablet + Dashticz - Google Home integration - MANY switches/sensors
-
- Posts: 443
- Joined: Thursday 12 November 2015 10:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: The Netherlands
- Contact:
Re: Python plugin: Sonos
Haven't had any connection error in the log since the new version, already running super stable for almost three days now. Thanks!tester22 wrote:Added an quick fix for this in the latest commit: https://github.com/tester22/Domoticz-Sonosmvzut wrote:That's what I thought too, but I can assure you its not!tester22 wrote:Yes, looks like network problems.
But there is so much logging that it seems like you have debug set to true under hardware settings.
Disable it to reduce the logging.
Raspberry Pi 4 - RFXtrx433 - CC2531 Zigbee - Opentherm Gateway - P1 smart meter - Netatmo - Philips Hue - ELV Max! - ESP8266 DIY water meter - 6 x Sonos - 4 x IP cameras - Wall mounted tablet + Dashticz - Google Home integration - MANY switches/sensors
-
- Posts: 14
- Joined: Friday 25 November 2016 22:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Python plugin: Sonos
Nice plugin, but what do you need to fill in at ip-adres in Domoticz? Now it's for default 127.0.0.1
-
- Posts: 443
- Joined: Thursday 12 November 2015 10:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: The Netherlands
- Contact:
Re: Python plugin: Sonos
You must fill in the IP address of the Sonos player you want to add. Easiest way to find this is via the Sonos app, under Settings > About my Sonos System.DomoRies wrote:Nice plugin, but what do you need to fill in at ip-adres in Domoticz? Now it's for default 127.0.0.1
Raspberry Pi 4 - RFXtrx433 - CC2531 Zigbee - Opentherm Gateway - P1 smart meter - Netatmo - Philips Hue - ELV Max! - ESP8266 DIY water meter - 6 x Sonos - 4 x IP cameras - Wall mounted tablet + Dashticz - Google Home integration - MANY switches/sensors
Who is online
Users browsing this forum: No registered users and 1 guest