Everything posted by johnnyt
-
Using Network Resource to call Sonos API directly
Thanks, @landolfi, changed POST to GET and it worked. @lilyoyo1, as for limitations see: Problem 1 in above post was solved with restarts but problem 2 remains (limit of 10 phrases). Although this isn't a problem yet - I just started with this - I foresee it becoming a problem if I decide to keep going with this NS. Plus: - wanted to change language to French for some phrases and can't see how to do that with NS. Hoping Network Resources will help - My TV Room (a playbar with subwoofer and rear speakers) isn't able to "say" anything for some reason. I do need to try a few more things before posting on that, including trying it using Network Resource. - support seems to be very limited at best
-
Using Network Resource to call Sonos API directly
Has anyone used Network Resources to call the underlying Sonos API that this NS uses? (https://github.com/jishi/node-sonos-http-api) My initial tests are not working but I'm far from a network resource expert so very likely have made some errors in the way I set it up. I'm hoping using Network Resources might allow me to get past some of the limitations I'm running into with this NS. edit: the URL works fine from browser:
-
'Say All' action doesn't work
Am not getting any of my Sonos speakers to "say all' a phrase. The phrase does work as a 'say' on a single speaker. So this works: Set 'ST-Sonos / Dining Room' Say Test Phrase 1 And this doesn't: Set 'ST-Sonos' Say All Test Phrase 1
-
'Say' feature display/functionality issues
Yes, for the first issue, "both" restarts was the correct answer PLUS some passage of time. It's not instantaneous. Looks like the NS was only built to support 10 phrases according to https://github.com/simplextech/pg3_docs/tree/main/ST-Sonos, so strange that there are 50 slots to select from in ISY. I (and others, it seems) don't have that many use cases yet but maybe adding support for more than 10 phrases (which does appear possible in the PG3 UI) could be on a request list if any such thing exists. In the meantime, it would be a good UX idea to remove any entries in AC or buttons in PG3 if that are not usable. Would save people some time. Thanks for considering these things.
-
'Say' action is always at same volume
I've set the volume to multiple values between 10 and 70 before calling the 'say' action and the message is always at the same volume. Fortunately not too loud for my current use case but also not quite loud enough in some situations. Aside from being able to adjust the volume for the particular speaker/room, I'd like to be able to set it according to the time of day, e.g. not as loud at night / early morning. So it's an important thing that I'd like to be able to change. I'll also likely eventually have a use case that will need lower voice volume, e.g. my bedside speaker. Below is my program but it doesn't matter what % value I use - the say command is at the same volume all the time. (I don't know if I need to do this but I add a short wait after command to adjust the volume.) Workshop Door Open Announcement - [ID 0444][Parent 0445] If 'Lights / Basement / Workshop / Workshop Lights' Status is Off And 'Lights / Basement / Workshop / Workshop Door Open Sensor' Status is On Then Wait 20 seconds Set 'ST-Sonos / Dining Room' Player Volume 50% Wait 1 second Set 'ST-Sonos / Kitchen' Player Volume 50% Wait 1 second Set 'ST-Sonos / Kitchen' Say Workshop door is open. Please close the door. Wait 10 seconds Set 'ST-Sonos / Dining Room' Say Workshop door is open. Please close the door. Else - No Actions - (To add one, press 'Action') I can see in the device node and the Sonos (S1) app that the volume is changed by the program. It's just the say command appears to override whatever the speaker is set to, then return it to that value. The latter is actually ideal functionality but I do need to be able to adjust the volume of the voice. I see in the underlying API functionality that the NS uses (https://github.com/jishi/node-sonos-http-api) that the command for TTS service has a switch to set volume: /[Room name]/say/[phrase][/[language_code]][/[announce volume]] Does the volume need to be sent in the action and it's not being done today? How do people change the volume for the "say' command?
-
not seeing any devices
ok, thanks. I changed it to '-' and all is good now. What about the usefulness (or not) of the "Discover" button? I'll assume it does nothing unless I hear otherwise.
-
'Say' feature display/functionality issues
Update: Looks like either a NS restart, or an AC restart, or both, and/or the passage of time pushed some of the the phrases out to IoX. I now see phrase 0 and 1 in program action. Not yet phrases 2 and above but maybe some more restarts and/or the passage of time will solve that? So it may only leave only the issue of adding phrases 10-49 and having them get saved/displayed (and hopefully passed along to ISY). I'm not in need of them in the short term as I experiment with use of this feature but it's certainly possible I'll want more than 9 in the not too distant future if it works as well as I'm imagining/hoping it will.
-
not seeing any devices
So one of my nodes have no info. Tried pressing "Discover" a couple of times and waiting but nothing happens. What does that button do? I then deleted it, confirmed it was gone, tried "Discover" again - nothing - then restarted NS. While the node was re-added, it again had nothing below it (and it doesn't show up in AC). I'll PM you the log (set to "Debug") with the entries from the restart on.
-
'Say' feature display/functionality issues
I customized some phrases for the 'Say' feature but phrases 0-9 show up blank in the program action. It does work with the phrase if I run the program but it's going to hard to debug later when I have a bunch of these. Also, while it looks like I could have up to 49 phrases, only 9 can be configured. I tried adding a 10th but it does not stay. Goes back to only 9 on PG3 UI page and selecting 10 in a program after adding text did not work. (I thought maybe it saved it and simply just didn't display it but no, it's not saved either.) Edit: running ST-Sonos 1.0.10 and PG3x 3.2.2 on Polisy with IoX 5.6.4
-
not seeing any devices
I have to ask, why hasn't that Node Server menu been deleted if if doesn't do anything anymore (except cause people who don't know better to waste a lot of their time). Are there still old node servers around that maybe need to be retired? So I deleted NS in both PG3x and AC, as indicated and confirmed they were gone. Installed NS again but in different slot to avoid any remnants, should there be some. This time I pressed "Discover", which I didn't do last time. Last time I only started the NS, which was stopped. If this was important may I suggest it be added to the Configuration Help section. Lots more stuff got installed this time and nodes were added to AC, although I did have to restart AC to see them properly. All looks good now. Thanks.
-
Support thread for: PG3x v3.2.2 (August 18th, 2023)
I migrated to PG3x early yesterday, which got me to 3.2.1, then I upgraded to 3.2.2. While I encountered snags along the way, everything appeared normal and working fine when I finished in the afternoon. I noticed this morning, though, that my PG3 logs had no entries after about 7:30 PM last night (14+ hours ago). As a troubleshooting step I rebooted because I can't simply restart PG3 anymore (why is that? - it would have much less impact to just restart PG3) The reboot fixed the issue, but I'm missing 14 hours of log data, some of which I could have used as I troubleshoot a problem I'm having with the installation of a new NS. Maybe it's a glitch left over from the migration that won't happen again but wanted to mention it in case it's not. I will check periodically over the next few days to see if this happens again.
-
not seeing any devices
Hi @bpwwer, am hoping you can help. Tried again 12 hours later but am not seeing any devices. Began by restarting AC to see if nodes appeared and it was just an AC GUI issue. I should see devices starting with address "n002_" where the arrows are but there's nothing. So I tried adding my "Kitchen" node following these steps: 1) Node Servers -> ST-Sonos -> Add Node -> Sonos Player using the data from the Node info in PG3 UI shown below Got: Tried doing "Discover" on PG3 node server page. No joy. Tried Node Server -> Configure... ST-Sonos (Network) using appropriate userid, pw, and IP address (changed my ISY MAC address for the screenshot only) Also tried with the following data: As a last step I restarted AC in case of AC GUI issue - but still nothing Have attached the log at debug level that I just downloaded this morning. Can't think of much more to try or provide but if there's anything, please let me know. ST-Sonos_8-19-2023_91133-AM.zip
-
not seeing any devices
I've installed the NS but don't see any devices in ISY. I tried going to NodeServer -> ST-Sonos -> Add All Nodes, restarted AC in case it's an AC GUI issue, but not seeing anything. I can see the nodes in NS "Nodes" in PG3x. What am I missing to be able to use this NS? edit: running PG3x 3.2.2, IoX 5.6.4, St-Sonos 1.0.10
-
No NS logs after migration to PG3x
Thanks. Good to know. Sorry if I missed it in the documentation or release notes. I tried navigating to the folder but after 'ns' folder, I get permission denied. My concern is that I may need to go back a day or more. It hasn't been a day since I migrated but, based on past experience, the log entries are from midnight the day you're asking for them, not before. Assuming this is the case for PG3x too, please consider allowing access to the needed subfolders. I find it so much easier to use WinSCP to navigate the file system and copy files to my Windows machine for troubleshooting and/or reporting problems, but right now when I try to navigate to one of the Node Server subdirectory, I get WinSCP doesn't do 'sudo' (unless I just don't know how to set it up to do that with each double click.) While I can find the logs using putty/CLI by doing "sudo ls -l /var/polyglot/pg3/ns/<longrandomnodeserverID/logs" plus root password (multiple times at first to find the subdirectory), then use same long path to 'cp' it somewhere I can access, it should be much easier to get at these log files, IMO. Especially for people who don't eat linux for breakfast. Just a suggestion. Thanks for considering it.
-
No NS logs after migration to PG3x
None of my Node Servers are displaying logs after migration to PG3x. I changed log level to Debug for all of them and there should be stuff there by now. There are no problems seeing PG3 log entries. Am at 3.2.2. If someone can point me to where the NS log files are, using SSH I can go look there to see if there's anything there. Edit: for the record, yes, I did do "Reinstall all Node Servers" after migration
-
Migration to PG3x - PG3x not restarting
It turned out to be a browser cache issue. First time I've ever had that as an issue. Maybe it's a thing with PG3x so I'll definitely look for that as a first step from now. Hopefully this helps someone else.
-
Migration to PG3x - PG3x not restarting
Why are my all my node servers connected to ISY? Is there a rogue instance of PG3 still running that I can't access anymore? How do I fix this? I did try a reboot but that didn't help.
-
Migration to PG3x - PG3x not restarting
Followed the instructions at: https://wiki.universal-devices.com/index.php?title=Polisy:User_Guide#Upgrading_to_PG3x Upgrading to PG3x Enable PG3x: https://polisy.local:8443/rest/pg3x.enable Reboot and wait for a beep + 1. Migrating node servers from PG3 to PG3x might take up to 2 minutes per node server. So, please be patient Once all node servers show connected, reboot again Been 30 minutes since last entry in udx log and it appears to have gone through all 9 of my NS but PG3x is not even running. How long is this supposed to take? udx log entries from shutdown on attached (now 35 mins since last entry) PG3xMigrationLogEntries.txt
-
SSL: BAD_LENGTH error message
I have 3 Airthings NS instances running (using different hubs/API tokens). At 19:28:59 Eastern time, one of the three reported this error: 2023-08-17 19:28:59,098 Thread-1076 udi_interface.interface ERROR interface:send: MQTT Publish Error: [SSL: BAD_LENGTH] bad length (_ssl.c:2488) Traceback (most recent call last): File "/var/polyglot/.local/lib/python3.9/site-packages/udi_interface/interface.py", line 632, in send self._mqttc.publish(topic, json.dumps(message), retain=False) File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1257, in publish rc = self._send_publish( File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 2693, in _send_publish return self._packet_queue(PUBLISH, packet, mid, qos, info) File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 3016, in _packet_queue return self.loop_write() File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1577, in loop_write rc = self._packet_write() File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 2464, in _packet_write write_length = self._sock_send( File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 649, in _sock_send return self._sock.send(buf) File "/usr/local/lib/python3.9/ssl.py", line 1174, in send return self._sslobj.write(data) ssl.SSLError: [SSL: BAD_LENGTH] bad length (_ssl.c:2488) 2023-08-17 19:28:59,099 MQTT udi_interface.interface INFO interface:_disconnect: MQTT Unexpected disconnection. Trying to reconnect in 10 seconds. rc: 7 The two other instances did not report this or any other any issues around that time. Am on PG3 3.1.21 and IoX 5.6.4 on Polisy.
-
unhandled errors
I noticed some unhandled errors in log for this NS today. Note sure what's failing because I do see data in IoX. Question I have when I see these errors: is the data I'm seeing correct? I've turned log level to Debug so If more detail is needed, let me know. Edit: running NS version 1.0.12 on PG3 ver. 3.1.21, and IoP 5.6.2 2023-07-26 15:22:45 warn: POLY: Received stop message 2023-07-26 15:32:03 info: NS: Starting Node Server 2023-07-26 15:32:03 info: POLY: Interface starting 2023-07-26 15:32:03 info: POLY: Getting config from environment 2023-07-26 15:32:04 info: POLY: MQTT client connected 2023-07-26 15:32:04 info: NS: MQTT Connection started 2023-07-26 15:32:05 error: POLY: Config has logLevel: WARNING 2023-07-26 15:32:05 warn: POLY: Loglevel: warn 2023-07-26 15:34:42 error: POLY: getInv() Error: http://192.168.100.249:8080/rest/programs?subfolders=true 2023-07-26 15:34:56 error: NS: Parsing Error: TypeError: Cannot read properties of undefined (reading 'toString') at exports.Parser.Parser.parseString (/var/polyglot/pg3/ns/<myISYMACaddr>_7/node_modules/xml2js/lib/parser.js:312:19) at Parser.parseString (/var/polyglot/pg3/ns/<myISYMACaddr>_7/node_modules/xml2js/lib/parser.js:5:59) at Controller.processPrograms (/var/polyglot/pg3/ns/<myISYMACaddr>_7/Nodes/ControllerNode.js:188:18) at Controller.onDiscover (/var/polyglot/pg3/ns/<myISYMACaddr>_7/Nodes/ControllerNode.js:82:12) 2023-07-26 15:34:58 error: NS: Parsing Error: TypeError: Cannot read properties of undefined (reading 'program') at /var/polyglot/pg3/ns/<myISYMACaddr>_7/Nodes/ControllerNode.js:192:35 at Parser.<anonymous> (/var/polyglot/pg3/ns/<myISYMACaddr>_7/node_modules/xml2js/lib/parser.js:304:18) at Parser.emit (node:events:525:35) at SAXParser.onclosetag (/var/polyglot/pg3/ns/<myISYMACaddr>_7/node_modules/xml2js/lib/parser.js:262:26) at emit (/var/polyglot/pg3/ns/<myISYMACaddr>_7/node_modules/sax/lib/sax.js:624:35) at emitNode (/var/polyglot/pg3/ns/<myISYMACaddr>_7/node_modules/sax/lib/sax.js:629:5) at closeTag (/var/polyglot/pg3/ns/<myISYMACaddr>_7/node_modules/sax/lib/sax.js:889:7) at SAXParser.write (/var/polyglot/pg3/ns/<myISYMACaddr>_7/node_modules/sax/lib/sax.js:1436:13) at exports.Parser.Parser.parseString (/var/polyglot/pg3/ns/<myISYMACaddr>_7/node_modules/xml2js/lib/parser.js:323:31) at Parser.parseString (/var/polyglot/pg3/ns/<myISYMACaddr>_7/node_modules/xml2js/lib/parser.js:5:59) 2023-07-26 15:52:03 error: POLY: getInv() Error: http://192.168.100.249:8080/rest/programs?subfolders=true 2023-07-26 15:52:16 error: NS: Parsing Error: TypeError: Cannot read properties of undefined (reading 'toString') at exports.Parser.Parser.parseString (/var/polyglot/pg3/ns/<myISYMACaddr>_7/node_modules/xml2js/lib/parser.js:312:19) at Parser.parseString (/var/polyglot/pg3/ns/<myISYMACaddr>_7/node_modules/xml2js/lib/parser.js:5:59) at Controller.processPrograms (/var/polyglot/pg3/ns/<myISYMACaddr>_7/Nodes/ControllerNode.js:188:18) at Controller.onDiscover (/var/polyglot/pg3/ns/<myISYMACaddr>_7/Nodes/ControllerNode.js:82:12) 2023-07-26 15:52:18 error: NS: Parsing Error: TypeError: Cannot read properties of undefined (reading 'program') at /var/polyglot/pg3/ns/<myISYMACaddr>_7/Nodes/ControllerNode.js:192:35 at Parser.<anonymous> (/var/polyglot/pg3/ns/<myISYMACaddr>_7/node_modules/xml2js/lib/parser.js:304:18) at Parser.emit (node:events:525:35) at SAXParser.onclosetag (/var/polyglot/pg3/ns/<myISYMACaddr>_7/node_modules/xml2js/lib/parser.js:262:26) at emit (/var/polyglot/pg3/ns/<myISYMACaddr>_7/node_modules/sax/lib/sax.js:624:35) at emitNode (/var/polyglot/pg3/ns/<myISYMACaddr>_7/node_modules/sax/lib/sax.js:629:5) at closeTag (/var/polyglot/pg3/ns/<myISYMACaddr>_7/node_modules/sax/lib/sax.js:889:7) at SAXParser.write (/var/polyglot/pg3/ns/<myISYMACaddr>_7/node_modules/sax/lib/sax.js:1436:13) at exports.Parser.Parser.parseString (/var/polyglot/pg3/ns/<myISYMACaddr>_7/node_modules/xml2js/lib/parser.js:323:31) at Parser.parseString (/var/polyglot/pg3/ns/<myISYMACaddr>_7/node_modules/xml2js/lib/parser.js:5:59) 2023-07-26 17:50:56 warn: POLY: Received stop message 2023-07-26 19:37:44 info: NS: Starting Node Server 2023-07-26 19:37:44 info: POLY: Interface starting 2023-07-26 19:37:44 info: POLY: Getting config from environment 2023-07-26 19:37:44 info: POLY: MQTT client connected 2023-07-26 19:37:44 info: NS: MQTT Connection started 2023-07-26 19:37:44 error: POLY: Config has logLevel: WARNING 2023-07-26 19:37:44 warn: POLY: Loglevel: warn 2023-07-26 21:01:29 info: POLY: Loglevel: info
-
Does this thing work?
Thanks for chiming in. Can I use this NS to play a short message I recorded? Some of the features I noticed were: say sayall saypreset Do you use any of these? What do they do? By the way, @bpwwer, may I suggest the list of features you provided that I linked to above be added to github readme page so it's there when one clicks "More Info" from Nodeserver store.
-
Does this thing work?
ok, can I un-purchase the NS trial until I've had a chance to migrate to PG3x? I'm holding off on doing that move for now for a few reasons (stability, lack of automated PG3x restore on eisy from Polisy, which is my backup hardware, etc.) I'm sure I'll do it at some point; just not in the next 6 days I have left in the trial version. I do like the features it offers, and only need them to work with the legacy Sonos S1 app so hopefully don't need much, if any, support going forward (which seems to be a little on the light side.) But given this NS is not free (and actually comparatively expensive), plus some recent bugs that, as of right now, may not get fixed (but might not be a problem for me) it's going to be important to try before I buy.
-
Does this thing work?
Does this NS work? I purchased free trial, installed it, and started it. It said it started successfully but it didn't really. I tried to look at the NS logs but it said 'file not found'. Here's what PG3 had to say about it in its log: 7/25/2023, 16:27:55 [pg3] info: startNs:: ST-Sonos 7/25/2023, 16:27:55 [pg3] info: startNs:: ST-Sonos is valid 7/25/2023, 16:27:55 [pg3] debug: checkLicense:: ST-Sonos Getting node server store entry 7/25/2023, 16:27:55 [pg3] debug: checkLicense:: ST-Sonos Getting node server purchase record 7/25/2023, 16:27:55 [pg3] debug: Getting status for ST-Sonos 00:0d:b9:53:c7:dc 82a81345-75e8-48c1-87fc-60e4cfd46860 7/25/2023, 16:27:57 [pg3] info: checkLicense:: ST-Sonos Valid subscription license found. Expires: 2023-07-31T18:20:13.000Z 7/25/2023, 16:27:57 [pg3] info: startNs:: ST-Sonos finished update check 7/25/2023, 16:27:57 [pg3] info: [ST-Sonos(10)] :: Starting NodeServer - Version 1.0.8 7/25/2023, 16:27:57 [pg3] info: startNs:: ST-Sonos updating database (enabled, timestarted) 7/25/2023, 16:27:57 [pg3] debug: [MESSAGE_PUBLISHED] Client pg3_client has published message on udi/pg3/frontend/clients/aef56f72-00cc-48c3-a122-fcdd3e3ac5fd to broker pg3_broker 7/25/2023, 16:27:57 [pg3] debug: [MESSAGE_PUBLISHED] Client pg3_client has published message on udi/pg3/frontend/clients/aef56f72-00cc-48c3-a122-fcdd3e3ac5fd to broker pg3_broker 7/25/2023, 16:27:58 [pg3] error: [ST-Sonos(10)] :: STDERR: node:internal/modules/cjs/loader:1042 throw err; ^ Error: Cannot find module '/var/polyglot/pg3/ns/000db953c7dc_10/st-sonos.js' at Module._resolveFilename (node:internal/modules/cjs/loader:1039:15) at Module._load (node:internal/modules/cjs/loader:885:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:23:47 { code: 'MODULE_NOT_FOUND', requireStack: [] } Node.js v18.13.0 7/25/2023, 16:27:58 [pg3] info: [ST-Sonos(10)] :: Exit cause code: 1 - signal: null 7/25/2023, 16:27:58 [pg3] debug: [MESSAGE_PUBLISHED] Client pg3_client has published message on udi/pg3/frontend/clients/aef56f72-00cc-48c3-a122-fcdd3e3ac5fd to broker pg3_broker 7/25/2023, 16:27:58 [pg3] info: startNs:: ST-Sonos starting polls 7/25/2023, 16:27:58 [pg3] info: Starting ST-Sonos Expire Check timer 7/25/2023, 16:27:58 [pg3] info: Checking if ST-Sonos has expired 7/25/2023, 16:27:58 [pg3] info: Starting ST-Sonos Info timer 0 7/25/2023, 16:27:58 [pg3] info: Starting ST-Sonos Version Check timer 7/25/2023, 16:27:58 [pg3] debug: MQTT Results: [frontend/ns/admin] :: {"startNs":{"success":true}} 7/25/2023, 16:27:58 [pg3] debug: [MESSAGE_PUBLISHED] Client pg3_client has published message on udi/pg3/frontend/clients/aef56f72-00cc-48c3-a122-fcdd3e3ac5fd to broker pg3_broker 7/25/2023, 16:28:02 [pg3] debug: Sending logfile to frontend :: /var/polyglot/pg3/ns/000db953c7dc_10/logs/debug.log am running PG3 3.1.21 and IoX 5.6.2 on Polisy
-
Help - can't migrate node servers from Polisy to eISY
What if one's functioning Polisy stopped functioning? I don't think one can get a Polisy anymore so I think it should be viewed as important to help Polisy users be able to move to eisy. In fact, I bought an eisy when it came out in part to have backup hardware in case my Polisy fails. I was contemplating going to PG3x on my Polisy once 3.1.37 beta became stable release. From reading this thread I probably shouldn't move yet to preserve what's there in terms of migrating to eisy. While I'm okay to wait, as PG3x grows and PG3 falls behind, its likely going to have stuff I want, not to mention increasingly better support.
-
Support Thread for IoX 5.6.3
@landolfi, @Techman, @AKAPADIA, have you solved or made progress on your problems since upgrading to 5.6.3? For those looking to provide feedback about Zigbee or request device support, please consider using one of the separate threads for that so this thread can focus on the non-Zigbee related IoX 5.6.3 issues. Thanks for considering it.