Jump to content

time interval event programming


oskrypuch

Recommended Posts

Posted

OK, I have event1, event2 and actionA.

 

If event1 occurs, then if within 20 seconds event2 occurs, then do actionA.

 

How do I code that in ISY?

 

* Orest

Posted

OK, figured out a way to do it ...

program var entry sense.wait (a variable)

 

program entry sense

If
       Program 'var garage open' is True
   And Program 'var dark' is True
   And Program 'var sleeptime' is False

Then
       Run Program 'var entry sense.wait' (Then Path)
       Wait  20 seconds
       Run Program 'var entry sense.wait' (Else Path)

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

 

program entry sense.do

If
       Control 'laundry rm / LND - PIR-Sensor' is switched On
   And Program 'var entry sense.wait' is True

Then
       Set 'front hallway / FH - Pots' 80%
       Set 'kitchen / KIT - Pot' On
       Run Program 'var entry sense.wait' (Else Path)

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

Guest
This topic is now closed to further replies.

×
×
  • Create New...