Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Portal Occupancy Node Server change via Network Resource

Featured Replies

Posted

I'm not sure if this is a Portal question or a Network question!

I sometimes have a need to change my occupancy node from True to False (or the other way around). I have it set up on my iPhone (Safari browser page added to the home screen) which allows me to do this. However, I have been trying to set it up with ISY programs calling a network resource. My issue is that it works sometimes and other times it doesn't! I have attached a few screenshots: 1 shows my network resource setup; 1 shows the errors I get when it doesn't work ('TCP client read response failed' and 'TCP client write failed'); and finally the 1 that did work, which still shows 'Request Failed'!

Any thoughts on why the response is inconsistent? I will often hit the Network Resource test button 2 or 3 times before it works!

Portal_01.thumb.jpg.5ca0644d561c81d1ed054b5931ca5208.jpgPortal_02.thumb.jpg.77c472afddf50f6fefbea67bf316ecb0.jpgPortal_04.thumb.jpg.d1ace6f7b9eb3fe4b4f51e78f585766b.jpg

5 hours ago, GDavis01 said:

Any thoughts on why the response is inconsistent?

No guesses as to why it's inconsistent, but a couple questions.  First you're using a GET (as opposed to a PUT).  Does reading the page really change the occupancy mode?  While the ISY will allow you to execute a GET, it doesn't do anything with the response.  Second you're using port 443 which implies SSL encryption.  I don't know if ISY network resources support SSL.  Perhaps other will pipe in on that.

@GDavis01Increase your timeout to about 800 mSec. It sounds like you are right on the boundary of the response time, depending on router traffic.

@kclenden ISY seems to support SSL encryption, due to offering HTTPS and port:443. I assume that implies the same.

Edited by larryllix

  • Author

@larryllix... Thanks... it does appear to have been the timeout! My sweet spot seems to be around 900ms.

@kclenden... Yes the GET does work. Just entering the lines below in a browser changes the state of the node. This is what I have set up on my iPhone and what I was trying to replicate with the Network Resource.

https://my.isy.io/api/location/node key/report/out  --> False

https://my.isy.io/api/location/node key/report/in   --> True

10 minutes ago, GDavis01 said:

@larryllix... Thanks... it does appear to have been the timeout! My sweet spot seems to be around 900ms.

@kclenden... Yes the GET does work. Just entering the lines below in a browser changes the state of the node. This is what I have set up on my iPhone and what I was trying to replicate with the Network Resource.

https://my.isy.io/api/location/node key/report/out  --> False

https://my.isy.io/api/location/node key/report/in   --> True

ISY is not an interactive system, and therefore can't do anything with the failure to respond-on-time, anyway, except to log it in the error log, and possibly not bash the next Ethernet packet out until a response is had or the timeout expires.

Edited by larryllix

15 hours ago, larryllix said:

ISY seems to support SSL encryption, due to offering HTTPS and port:443. I assume that implies the same.

It seems reasonable to come to that conclusion, but doesn't SSL require a certificate to accomplish encryption?  Perhaps that comes with the Portal.

20 minutes ago, kclenden said:

It seems reasonable to come to that conclusion, but doesn't SSL require a certificate to accomplish encryption?  Perhaps that comes with the Portal.

I would assume so, somewhere but I have never used one.

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.