Jump to content

Programming with ELK integration - Not working


Grayson

Recommended Posts

Hi,

 

I just purchased the ELK/ISY integration module and am trying to get a simple program to work. When I open the door to the garage and it is dark outside, I want the garage lights to turn on for 5 minutes and then turn off. The program is below. The problem is the lights don't turn off.

 

Any suggestions on what I am doing wrong?

 

If

Elk Zone 'Garage Door' is Violated

AND From sunset - 1 hour

To sunrise + 1 hour (next day)

 

Then

Set 'Inside Garage Lights' Fast On

Wait 5 minutes

Set 'Inside Garage Lights' Fast Off

 

Else

- No Actions

 

Thanks,

 

John

Link to comment

The problem is that EVERY time the door sensor changes from closed-to-open OR open-to-closed, the IF statement re-evaluates.

 

When you open the door, everything works as expected; the light turns on.

 

However, when you CLOSE the door, the IF re-evaluates to FALSE, interrupting the wait statement (and therefore never getting to the OFF command).

 

The best course of action is to make a second program that contains your current THEN commands - with NO IF statement.

 

Replace the currenT program's THEN clause with an "execute second program THEN".

 

You will then get the desired behavior.

 

 

Sent from my iPad using Tapatalk HD

Link to comment

Archived

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


×
×
  • Create New...