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.

Possible To Trigger on Program Status Change?

Featured Replies

Posted

Right now it is possible to use a program's status as a condition in another program. eg.

 

If
       Program 'Test Program' is True

Then
  - No Actions - (To add one, press 'Action')

Else
  - No Actions - (To add one, press 'Action')

 

What I'd like to be able to do is trigger when a program's status changes, ie when it becomes true or false. What I have is a program that tracks the status of an X10 device and I'd like to trigger only when that device's status changes. As it stands now, if I trigger on program status, potentially I will retrigger over and over until the status changes again. My work around is simple: trigger on X10 received but I think that linking to a tracked status would be more elegant. :D

 

-David

I do something like this using a second, empty program that tracks the previous status, using logic like:

 

 

If
     Program 'Test Program' is True
 And Program 'Test Program Old Status' is False
Then
     Run Program 'Test Program Old Status' (Then Path)
     ## and do what you want to do on change here
Else
 - No Actions

 

I have an equivalent program to check if "Test Program" is False and "Test Program Old Status" is True, which runs the Else case on old status. This allows me to detect when the status changes, make note of that detail, and then do something.

  • Author

That'll work. :)

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.