Jump to content

How to check order of events


wlodekd

Recommended Posts

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

Link to comment

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

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...