-
Posts
2001 -
Joined
-
Last visited
Everything posted by Javi
-
Anything in the NodeServers log when set to debug? Maybe try to restart or install another instance to see if the nodes are being created without Warnings/Errors. Also verify the nodes are shown in Polyglot, not just in ISY. If you ISY is connected to portal we could run a remote diagnostic if your interested.
-
Hi @glarsen, I was looking to install one of the offending Node Servers on my system. Check if I receive the same errors to eliminate the possibility it is related to the specific ISY or Polyglot instance. If the URL is throwing the same error it's not an issue with UD Mobile, so I think at this point we can eliminate the client. I still think the ISY is under a heavy load somewhere as I have Node Servers with UOM 25 an no issues. Do you have multiple instances of Polyglot (2/3) connected to the same ISY/ISY-Service? If you do does temporarily disconnecting all other instances fix the issue? Changing the address of the ISY in the instance and saving should be fine, without the need to shutdown.
-
Hi @glarsen, Will any of the node servers with the error work without hardware, if so which one(s) and what is the command which is failing?
-
Just updated to 3.0.40 from 3.0.38 and can not replicate, can you send a copy of the ISY error log? I read there were issues with 3.0.39, did you update to 3.0.39 at any point before 3.0.40? We can get to the next items after the error log. There are reported issues with older versions of PyISY (used in the Hue Emulator). Does the issue persist if the Hue Emulator NS is disabled? There is also a report involving ELK, but just a correlation and not verified as the cause of any issues, so please also disable both Node Servers if disabling Hue does not work.
-
Hi @glarsen, The URL looks good, and I've only encountered a persistent 404 when the ISY is under heavy load. Does anything stick out in /rest/log/error? Is this for PG2 or PG3? What is the PG version number? What is the Pol-ISY firmware? Does the error persist after Polisy is rebooted? Do you have the Hue Emulator or ELK NS installed?
-
Is this for Android or iOS? I don't see predefined errors within the app with this exact text, so it may be coming in at the Mobile Device OS level. Is this the error displayed when pressing the Test Connection button dialog, or is this a Notification pop-out from the top of the screen? If a pop-out this error is only because the app lost the subscription, which will happen if you turn on/off wifi/mobile-data but the app will try to connect again in a few seconds. Test the local connection without the app accessing SSID or Remote Connection as follows. Temporarily turn on "Only use local connection" then press the Test Local Connection button. If all works there then turn off "Only use local connection" and try again. This could narrow the issue to SSID or local credentials.
-
Have you first logged into the admin user i.e. ssh admin@192.168.X.X? Then change user to polyglot with the password "admin" ?
-
I reviewed the Local and Portal Error codes. Portal will return 403 for invalid credentials and Direct will return 401. So based on one of the comments above this appears to be a direct connection (401). If you would like to proceed in private please open a ticket and reference this thread. If you would like to continue here: Verify your app version number (Settings Tab > About), and ISY firmware. Verify the color of the Remote Connections Settings section is not red. Verify that there is no user data (URL/username/password/ect.) in Local Connection Settings. Local Connection Settings can be found under Remote Connection Settings in Advanced Settings.
-
Do you also have the local network connection enabled? If you do then the credentials there need to match your local credentials. Go to Settings Tab > your system > Advanced. Edit: Using the test connection button for both connection types will give an error if connected to the other connection type.
-
Hi, The error is an incorrect username and/or password. The remote connection test is the username/password/url for your ISY Portal, first please verify your ISY is linked and connected to ISY Portal (my.isy.io) and there are no errors. If ISY is connected to porta and the error persists, try to go to the UD Mobile settings tab > ISY Portal Accounts > Select your portal Account > Logout. Now go to Settings Tab > Systems > your system, then select "ADD" in the ISY Portal Account box.
-
NodeLink Server v0.11.2 - Unable to update node definitions in ISY on Polisy
Javi replied to dwengrovitz's topic in NodeLink
The file names match rest/profiles/family/<familyNumber>/profile/<profileNumber>/files. However something looks off with the family and profile number, unless the Node Server developer copied the Insteon File Names. Can you post the response of rest/profiles/family/10/profile/11/files ? -
@tazman, Node.js is not my strong point so this is just a guess. Remove the protocol here: var header = {"Authorization": "Basic " + base64, "Sec-WebSocket-Protocol": "ISYSUB", "Sec-WebSocket-Version": "13", "Origin": "com.universal-devices.websockets.isy"}; change to: var header = {"Authorization": "Basic " + base64, "Sec-WebSocket-Version": "13", "Origin": "com.universal-devices.websockets.isy"}; Then remove the protocol(s) here also wsclient.connect(wshost, "ISYSUB", origin, header); This may require a couple of tries such as: wsclient.connect(wshost, "", origin, header); or wsclient.connect(wshost, , origin, header); or wsclient.connect(wshost, null, origin, header);
-
Hi @tazman this object: var wsclient = new webSocketClient(); calls this function: wsclient.connect(wshost, "ISYSUB", origin, header); so find where webSocketClient() is defined and it should have a function called connect the connect function accepts the parameters (wshost, "ISYSUB", origin, header) If you find the connect function post it and I'll take a look. @kck , good to hear. We are looking into why this was removed, so it may be restored. I ran tests on both ISY and Polisy and the server (ISY) will work as intended without the sub protocol header on both platforms. So it all depends on if the client/ws-library is checking for a sub protocol. There is only one protocol, and we have no plans to add another. It should be safe to remove this header if the client or library is not checking for this value in the event it is returned in a later firmware update.
-
I'll report tomorrow. As for making the change yourself, it looks this would require finding the wsclient.connect function and removing the second parameter and any references.
-
@tazman, Thanks for being persistent. All libraries I use can handle the error, but I could replicate in Postman. It appears not all headers are returned, so removing the following header should fix the issue temporarily. "'Sec-WebSocket-Protocol'", "ISYSUB"
-
You would have to change the source as there is a bug causing 8080 to change to 1380. When I was looking at the source there was code to change ports for some of the other supported hubs. This is likley catching 8080 and converting it to 1380. You could hard code the web socket url as mentioned here: https://forum.universal-devices.com/topic/34002-rest-subscriptions/?do=findComment&comment=321014
-
Meant to say 1380, from your screen shot
-
@kck, I would not link this to the other issue as the OP has screenshots of chrome logs are showing an incorrect port for HP. A quick search of the issues on python library may have a clue; due to the IPV6 address? https://github.com/websocket-client/websocket-client/issues/775
-
Hi @kck, I'll take a look when I get some free time, but if I had to guess I would say the library being used filters out the port. I've seen this many times with ws and mqtt libraries. @tazman, this is because the subscription socket is not connected as shown in the logs. In your case this is due to incorrect port. Here are the headers and code used in the example app which works with both ISY and Polisy: String credentials = Credentials.basic(credential.userName, credential.password); OkHttpClient client = new OkHttpClient(); String url = "ws://"; url = url + credential.ipAddress; if (credential.port != null){ url = url + ":" + credential.port; } url = url + "/rest/subscribe"; Request request = new Request.Builder() .url(url) .header("Authorization", credentials) .addHeader("Sec-WebSocket-Protocol", "ISYSUB") .addHeader("Sec-WebSocket-Version", "13") .addHeader("Origin", "com.universal-devices.websockets.isy") .build(); webSocket = client.newWebSocket(request, listener);
-
Hi @kck, Looking at the OP's browser logs from house panel it is showing that it is using an incorrect port "3080" instead of "8080". While we do not develop House Panel, I took time to looked at the code and found the log line corresponding to the browser log. So until someone makes the change in House Panel, I have to operate under the assumption that the log is correct, and there is an bug in the House panel program causing incorrect port injection with ports other than "80". I believe PyISY is using websockets for Home Assistant and we have not had any issues reported with regards to Home Assistant connections. The open source test app referenced earlier in the tread also works on both ISY and Polisy. Is the app you are using open source? Can you verify the port is correct?
-
Hi @CPrince, I am the app developer for UD Mobile. There is an option to disable edits which can be used to hide items and not allow access to settings/admin features. The simple way is to add the devices needed to favorites, hide the System on the home screen, then hide all unwanted controls/status for devices on favorites, then lock edits. I'll let someone else respond to the z-wave question as it is difficult, although not impossible.
-
We have an Alexa integration included in ISY Portal, this also includes secure remote access. https://wiki.universal-devices.com/index.php?title=Main_Page#ISY_Portal:_Integration_with_Amazon_Echo.2FGoogle_Home.2FIFTTT
-
I've notice some updates, especially if very outdated, took over 20 minutes to complete before the system was back up, usually you will hear Polisy issue a series of beeps in that time. I would recommend doing the update before bed then coming back to everything in the morning, so not tempted to restart during update.
-
# Usage Please see readme for complete details: https://github.com/JavierRefuerzo/iTach_IR_Node_Server/blob/main/README.md ## Nodes: 1. The Group Parent Controller Node "iTach IR". 2. IR Codeset. ## The Group Parent Controller Node "iTach IR" ### Status Values: 1. NodeServer Online: Displays status in Polyglot 2. Module Address: This is the index location starting at zero of the IR controller in the Global Cache device. Usually the first module, 0, is Ethernet/Wifi, and the second module is IR/Serial/Relay. Currently this is not changeable but may be in the future to support other Global Cache hardware with multiple IR/Serial/Relay modules 3. Module Type: This is the type of module associated with "Module Address" above. If this is not "3 IR", the iTach device will not work with this Node Server ## IR Codeset: ### Status Values: 1. Last Error: Values are None, Unknown (see polyglot logs for error details), or a human readable Global Cache error. ### Accepts Commands: 1. Send IR. 2. Stop IR. #### Send IR Parameters: 1. Button Name: Name for the Button code. 2. Alternate Codes: Some Global Cache Control Tower Database codesets have multiple IR codes for a single button. If there is no secondary code the first will be used even when selecting Button Code 2. 3. Connector: The Global Cache IR connector when looking at the iTach from the IR connector side. 4. Repeat: Number of times to repeat the IR Code (i.e. Volume). The max is 50. If setting this to repeat the Stop IR command can be used to stop repeating. #### Stop IR Usually used to stop a repeated Send IR command. For example Send IR param Repeat is set to max 50 on button down press for volume control, then stopped when button is released. This will soon be a feature in UD Mobile. Parameters: 1. Connector: The Global Cache IR connector when looking at the iTach from the IR connector side. # Global Cache Control Tower Database How to obtain Global Cache Control Tower IR Codes: Create an account and login to: https://irdb.globalcache.com/Home/Database Enter the Brand Name of the device you would like to control. Then Select a Device Type, then Select a Model. Note that you must Log-in for the "Send Code Set" button to be enabled. Now select the "Send Code Set" button next to the Device Model. SELECTING "Select function" WILL ONLY SEND ONE CODE, NOT THE ENTRE CODESET. After receiving the email verify that you can see all IR Codes when scrolling to the bottom of the page. Gmail will clip the message and have a "Message clipped" not at the bottom of the page along with a View Entire Message button. Copy the entire message from the commas in the last IR Code to the beginning of the "function, code1, hexcode1, code2, hexcode2" header then paste into a new custom param value. Set the custom param key to the device name. After saving Custom Params, Restart Node Server. There may be multiple code sets that need to be downloaded for a single device. Each Code set should be put into the Node Server Separately. This node serve is installed with the Onkyo Receiver Zone 2 Codes as an example. Note that when pasted into Custom Config from the GC e-mail the new lines are replaced with double space. The Node Server will parse the document using these double spaces. To input codes manually use a double space between button codes with the same format as the GC e-mail.
-
Yes, as long as the node/program/variable addresses remain the same. As always backup UD Mobile setup in case of sync issues with the new system. https://wiki.universal-devices.com/index.php?title=UD_Mobile#Migration https://forum.universal-devices.com/topic/31766-ud-mobile-release-announcements/?do=findComment&comment=325741