Jump to content

Possible To Trigger on Program Status Change?


davidrule

Recommended Posts

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

Posted

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.

Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

  • Forum Statistics

    • Total Topics
      37k
    • Total Posts
      371.4k
×
×
  • Create New...