TJMax2 Posted April 3, 2022 Posted April 3, 2022 Hi. My PG3 Sonos Node server needs a daily restart to work. Every morning I start the day with the Node server not working. I cannot send any control to my Sonos using the PG3 Sonos Node server. I can send commands to Sonos through IFTTT and the Sonos iOS app . Once I restart the Node server, I have normal control through the Node server - I can send Play, Pause, Volume adjustments. I am running ISY on Polisy and using a static address for my Sonos. This has been happening since I installation of IoP. Thank you for any suggestions! Here is the log from this morning:2022-04-03 02:22:05,160 Command udi_interface INFO sonos-poly:_pause: Transition not available. This typically means no music is selected. 2022-04-03 02:22:23,788 Command udi_interface INFO sonos-poly:_play: Transition not available. This typically means no music is selected. 2022-04-03 02:22:27,971 MQTT udi_interface.interface INFO interface:_message: Successfully set 8e937957fe8014 :: SVOL to 90 UOM 51 2022-04-03 02:22:30,376 MQTT udi_interface.interface INFO interface:_message: Successfully set 8e937957fe8014 :: SVOL to 85 UOM 51 2022-04-03 02:22:31,805 MQTT udi_interface.interface INFO interface:_message: Successfully set 8e937957fe8014 :: SVOL to 80 UOM 51 2022-04-03 02:22:32,450 MQTT udi_interface.interface INFO interface:_message: Successfully set 8e937957fe8014 :: SVOL to 75 UOM 51 2022-04-03 02:22:33,576 MQTT udi_interface.interface INFO interface:_message: Successfully set 8e937957fe8014 :: SVOL to 80 UOM 51 2022-04-03 02:22:34,455 MQTT udi_interface.interface INFO interface:_message: Successfully set 8e937957fe8014 :: SVOL to 85 UOM 51 2022-04-03 02:22:35,000 MQTT udi_interface.interface INFO interface:_message: Successfully set 8e937957fe8014 :: SVOL to 90 UOM 51 2022-04-03 02:22:38,125 Command udi_interface INFO sonos-poly:_pause: Transition not available. This typically means no music is selected. 2022-04-03 02:22:41,704 MQTT udi_interface.interface INFO interface:_message: Successfully set 8e937957fe8014 :: SVOL to 80 UOM 51 2022-04-03 02:22:42,868 MQTT udi_interface.interface INFO interface:_message: Successfully set 8e937957fe8014 :: SVOL to 70 UOM 51 2022-04-03 02:22:43,771 MQTT udi_interface.interface INFO interface:_message: Successfully set 8e937957fe8014 :: SVOL to 60 UOM 51 2022-04-03 02:22:44,977 MQTT udi_interface.interface INFO interface:_message: Successfully set 8e937957fe8014 :: SVOL to 50 UOM 51 2022-04-03 02:22:46,034 MQTT udi_interface.interface INFO interface:_message: Successfully set 8e937957fe8014 :: SVOL to 40 UOM 51 2022-04-03 02:22:49,987 MQTT udi_interface.interface INFO interface:_message: Successfully set 8e937957fe8014 :: SVOL to 85 UOM 51 2022-04-03 02:23:00,407 MQTT udi_interface.interface INFO interface:_message: Successfully set 8e937957fe8014 :: ST to 2 UOM 25 2022-04-03 03:05:17,194 Command udi_interface ERROR udi_interface:write: Exception in thread 2022-04-03 03:05:17,196 Command udi_interface ERROR udi_interface:write: Command 2022-04-03 03:05:17,196 Command udi_interface ERROR udi_interface:write: : 2022-04-03 03:05:17,197 Command udi_interface ERROR udi_interface:write: Traceback (most recent call last): 2022-04-03 03:05:17,198 Command udi_interface ERROR udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner 2022-04-03 03:05:17,204 Command udi_interface ERROR udi_interface:write: self.run() 2022-04-03 03:05:17,205 Command udi_interface ERROR udi_interface:write: File "/usr/local/lib/python3.8/threading.py", line 870, in run 2022-04-03 03:05:17,208 Command udi_interface ERROR udi_interface:write: self._target(*self._args, **self._kwargs) 2022-04-03 03:05:17,209 Command udi_interface ERROR udi_interface:write: File "/var/polyglot/.local/lib/python3.8/site-packages/udi_interface/interface.py", line 678, in _parseInput 2022-04-03 03:05:17,213 Command udi_interface ERROR udi_interface:write: self._handleInput(key, input[key], None) 2022-04-03 03:05:17,214 Command udi_interface ERROR udi_interface:write: File "/var/polyglot/.local/lib/python3.8/site-packages/udi_interface/interface.py", line 809, in _handleInput 2022-04-03 03:05:17,218 Command udi_interface ERROR udi_interface:write: self.nodes_internal[item['address']].query() 2022-04-03 03:05:17,219 Command udi_interface ERROR udi_interface:write: File "./sonos-poly.py", line 80, in query 2022-04-03 03:05:17,221 Command udi_interface ERROR udi_interface:write: self.update() 2022-04-03 03:05:17,221 Command udi_interface ERROR udi_interface:write: TypeError 2022-04-03 03:05:17,222 Command udi_interface ERROR udi_interface:write: : 2022-04-03 03:05:17,222 Command udi_interface ERROR udi_interface:write: update() missing 1 required positional argument: 'pollflag' 2022-04-03 11:14:11,500 MainThread udi_interface INFO polylogger:set_basic_config: set_basic_config: enable=True level=30 2022-04-03 11:14:13,900 MainThread udi_interface INFO __init__:<module>: UDI Python Interface for Polyglot version 3 3.0.38 Starting... 2022-04-03 11:14:14,082 MainThread udi_interface.interface INFO interface:__init__: Initialization received from Polyglot V3 3.0.45 [ISY: 5.4.1, Slot: 4] 2022-04-03 11:14:14,084 MainThread udi_interface.interface INFO interface:__init__: Connect: Network Interface: {'addr': '192.168.1.128', 'netmask': '255.255.255.0', 'broadcast': '192.168.1.255'} 2022-04-03 11:14:14,086 Interface udi_interface.interface INFO interface:_startMqtt: Connecting to MQTT... localhost:1888 2022-04-03 11:14:14,094 MainThread udi_interface.interface WARNING interface:send: MQTT Send waiting on connection :: {'set': [{'key': 'customparamsdoc', 'value': ''}]} 2022-04-03 11:14:14,188 MQTT udi_interface.interface INFO interface:_connect: MQTT Connected with result code 0 (Success) 2022-04-03 11:14:14,190 MQTT udi_interface.interface INFO interface:_connect: MQTT Subscribing to topic: udi/pg3/ns/clients/00:0d:b9:59:3a:98_4 - MID: 1 Result: 0 2022-04-03 11:14:14,202 MQTT udi_interface.interface INFO interface:_subscribe: MQTT Subscribed Succesfully for Message ID: 1 - QoS: (0,) 2022-04-03 11:14:17,116 MainThread udi_interface.interface INFO interface:updateProfile: Sending Install Profile command to Polyglot. 2022-04-03 11:14:17,120 MainThread udi_interface INFO sonos-poly:start: Starting Sonos Polyglot v3 Node server version 3.0.0, udi_interface: 3.0.38 2022-04-03 11:14:17,121 MainThread udi_interface INFO sonos-poly:discover: Starting Speaker Discovery... 2022-04-03 11:14:17,121 MainThread udi_interface.custom INFO custom:_save: Sending data notices to Polyglot. 2022-04-03 11:14:17,155 MQTT udi_interface.interface INFO interface:_message: custom data response {'customparamsdoc': ''} 2022-04-03 11:14:17,162 MQTT udi_interface.interface INFO interface:_message: Successfully set key = customparamsdoc 2022-04-03 11:14:17,401 MQTT udi_interface.interface INFO interface:_message: Successfully set key = notices 2022-04-03 11:14:17,415 MainThread udi_interface INFO sonos-poly:discover: Found 2 Speaker(s) 2022-04-03 11:14:17,451 MainThread udi_interface INFO sonos-poly:__init__: Sonos Speaker: Lounge@192.168.1.167 Current Volume: 61 2022-04-03 11:14:17,453 MainThread udi_interface.interface INFO interface:addNode: Adding node Sonos Lounge(caafd43b6f6014) [None] 2022-04-03 11:14:17,532 MainThread udi_interface INFO sonos-poly:__init__: Sonos Speaker: Sonos@192.168.1.127 Current Volume: 70 2022-04-03 11:14:17,534 MainThread udi_interface.interface INFO interface:addNode: Adding node Sonos Sonos(8e937957fe8014) [None] 2022-04-03 11:14:17,714 MQTT udi_interface.interface INFO interface:_message: Profile installation finished 2022-04-03 11:14:19,239 Thread-2 udi_interface INFO sonos-poly:start: Sonos Lounge ready to rock! 2022-04-03 11:14:19,319 Thread-4 udi_interface INFO sonos-poly:start: Sonos Sonos ready to rock! 2022-04-03 11:14:20,198 MQTT udi_interface.interface INFO interface:_message: Successfully set caafd43b6f6014 :: SVOL to 61 UOM 51 2022-04-03 11:14:20,291 MQTT udi_interface.interface INFO interface:_message: Successfully set caafd43b6f6014 :: GV1 to 0 UOM 56 2022-04-03 11:14:20,408 MQTT udi_interface.interface INFO interface:_message: Successfully set 8e937957fe8014 :: ST to 0 UOM 25 2022-04-03 11:14:20,489 MQTT udi_interface.interface INFO interface:_message: Successfully set caafd43b6f6014 :: GV2 to 0 UOM 56 2022-04-03 11:14:20,604 MQTT udi_interface.interface INFO interface:_message: Successfully set 8e937957fe8014 :: SVOL to 70 UOM 51 2022-04-03 11:14:20,691 MQTT udi_interface.interface INFO interface:_message: Successfully set 8e937957fe8014 :: GV1 to 0 UOM 56 2022-04-03 11:14:20,792 MQTT udi_interface.interface INFO interface:_message: Successfully set 8e937957fe8014 :: GV2 to 0 UOM 56 2022-04-03 11:14:53,881 MQTT udi_interface.interface INFO interface:_message: Successfully set 8e937957fe8014 :: ST to 2 UOM 25 2022-04-03 11:14:57,099 MQTT udi_interface.interface INFO interface:_message: Successfully set 8e937957fe8014 :: ST to 1 UOM 25 2022-04-03 11:15:45,518 MQTT udi_interface.interface INFO interface:_message: Successfully set 8e937957fe8014 :: ST to 2 UOM 25 2022-04-03 11:15:47,420 MQTT udi_interface.interface INFO interface:_message: Successfully set 8e937957fe8014 :: ST to 3 UOM 25 2022-04-03 11:15:49,678 MQTT udi_interface.interface INFO interface:_message: Successfully set 8e937957fe8014 :: ST to 1 UOM 25
carealtor Posted April 3, 2022 Posted April 3, 2022 (edited) I have to restart my PG2 Sonos Node server every few days. @Michel Kohanimand others have looked at my logs and concluded it was a problem with my network. I dunno. I have several ways of controlling my Sonos system and the others all work perfectly. Edited April 3, 2022 by carealtor
Solution bpwwer Posted April 3, 2022 Solution Posted April 3, 2022 I just pushed version 3.0.1 to the node server store. This version should stop it from crashing. Restarting the node server, should auto update it. If that doesn't work, let me know. 1 1
Bumbershoot Posted April 4, 2022 Posted April 4, 2022 19 hours ago, TJMax2 said: My PG3 Sonos Node server needs a daily restart to work. This may not be related to your issue or the Node server, but if you have a mesh WiFi network, then some Sonos installations can have problems staying continuously connected to WiFi. Two solutions have worked to solve this issue in the couple of networks that I've had to deal with: 1) connect one Sonos speaker to the network with an ethernet cable instead of WiFi, or 2) add a Sonos Boost to the network. If the problem continues and you have a mesh WiFi setup, this may solve your issue. 1
TJMax2 Posted April 4, 2022 Author Posted April 4, 2022 It has been over 24 hours since the update and the connection remains stable. Thank you @bpwwer
Recommended Posts