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.

How does the ISY Check programs?

Featured Replies

Posted

Hi

 

I have a program that checks to see if the garage door is opened, and if it's past sunset, it turns on the light. While writing the code, I stumbled across an interesting question. When does the ISY check the condition of a program? For instance, in the following code (paraphrasing code)

 

IF

After sunset and before sunrise

AND status garage door is ON

THEN

 

does the ISY check the program every second? That seems a bit inefficient. Is it better to write the code like the following

 

IF

status garage door is ON

AND after sunset and before sunrise

THEN

 

Is this more efficient since the code is only checked when the garage door status has changed?

 

Thanks

Hello ketchup318,

 

Either way will produce the same result. The program will run when the garage door status changes.

 

Rand

  • Author

Hey Sub-Routine

 

Thanks for the reply. I understand the result will be the same, but is it more beneficial to write it one way over the other?

Practically there is no difference.

 

The program will run when the status of the door changes. Then it will check the time constraint.

 

You could put the program in a folder with the Schedule Condition on the folder which will disable the program outside of the hours you want.

 

But it only takes a few clock cycles either way.

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.