Jump to content

How to check order of events


wlodekd

Recommended Posts

Posted

Dear Forum,

 

Please help with the following problem.

 

Garage has motion sensor and TriggerLinc. How to write ISY program checking order of events and take action depending of the result.

 

If TriggerLinc is On first and MotionDetector On second that means car is incoming. Opposite order car is out.

 

Thanks for the help - Walter

Posted

Hi Walter.

 

I would be looking at the difference between status and control. If one is on then the other comes on I think it would work like this:

 

Prog 1:

If status Trigger Link is On

AND Control Motion Sensor is switched on

 

Then

Run I'm Home (then)

 

 

Prog 2:

If status Motion Sensor is on

AND control Trigger link is switched on

 

Then

Run I'm leaving (then)

 

You don't really need the I'm Home and I'm Leaving programs. You can just add what you need to the then side of the test programs. I just like to keep my stuff modular for reuse elsewhere.

 

Hope this helps.

 

-X

Posted

That is an excellent idea. I was looking for the way to check and compare time of events, but your way is simple and very "elegant".

 

 

Best regards Walter

Guest
This topic is now closed to further replies.

  • Recently Browsing

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

    • There are no registered users currently online
  • Forum Statistics

    • Total Topics
      37.1k
    • Total Posts
      371.5k
×
×
  • Create New...