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.

Run Disabled Programs

Featured Replies

Posted

I have a line in the THEN clause of a program that runs another program's IF/THEN/ELSE but that other program is disabled.  The Last-Run time for the second program is updated when the first one runs but it's not actually running the program. Is that the expected behavior? I disable the second program so it would not be scheduled to run on it's own but I assumed that I could still explicitly run it from other programs. Guess that's not the way it works.

 

Disabled programs will not self-initiate, but can be called from other programs. If yours is not running when called, I would look into potential programmatic concerns.

Disabled programs will not self-initiate, but can be called from other programs. If yours is not running when called, I would look into potential programmatic concerns.

I have seen and copied from other examples here a statement that "enables" the program before calling the then/else statement. Is this step not required?

 

 

Sent from my iPhone using Tapatalk

Correct, it's as oberkc described. Disabled only means the if logic won't run on its own. The if logic will work on a disabled program if you 'run if' from another program.

 

I have a number of programs that I use as subroutines... disabled but work when called from other programs

 

Paul

 

 

Sent from my iPhone using Tapatalk

  • Author

I'm pretty sure this used to work. Will investigate and test more thoroughly.  

 

Thanks for the sanity check,

Paul

  • Author

I have a number of programs that I use as subroutines... disabled but work when called from other programs

 

Can you confirm that when calling the disabled programs, you are running the IF and not just the THEN or ELSE?

Edited by pauldugas

Can you confirm that when calling the disabled programs, you are running the IF and not just the THEN or ELSE?

When you call another program you specify which section (If, Then, or Else)  you want to run, whether disabled or not.

 

"Disable" only disables the triggers in the program, in the If section. Everything else works per normal.

Edited by larryllix

If the trigger statements include Status, then running IF won't work unless the state of the device changes at the instant Run is initiated. Calling THEN or ELSE is not affected by this restriction. Hmm, I don't believe CONTROL will work either.

 

It's best to "paste" your errant program in it's entirety. Include the calling program, too.

Edited by stusviews

If the trigger statements include Status, then running IF won't work unless the state of the device changes at the instant Run is initiated.​

Are you certain about this.  I believe STATUS conditions will be fine.  CONTROL conditions will most likely evaluate false (unless, as you say, it is triggered simultaneously, if possible even.)

Are you certain about this.  I believe STATUS conditions will be fine.  CONTROL conditions will most likely evaluate false (unless, as you say, it is triggered simultaneously, if possible even.)

I agree. Seems to be a typo.

Status should work as a simple logic filter (no triggers) and control / switched works as well but control / switched will always be False and always run Else (depending if any other OR logic doesn't override)

Yup, swap STATUS and CONTROL B)

I have seen and copied from other examples here a statement that "enables" the program before calling the then/else statement. Is this step not required?

 

 

Sent from my iPhone using Tapatalk

 

No.  Not necessary.

I do have a situation where I needed to disable and re-enable a program. Our driveway gate sends a notification when the gate opens and then again when it closes 30 sec later (using the built-in relay and an I/O Linc). So I disable the sending program for 40 sec after the notification is sent.

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.