Rules and Counters

noshali

Active Member
Hi,

Wanted to explore the world of counters and need some help.

I have 2 sensors attached to my garage door.

When the garage door is closed then g1 is off and g2 is on
when the garage door is opening both g1 and g2 are on
when the garage door is open g1 is on and g2 is off

Now I want to setup the following in elk based on the above.
when g1 becomes on then every 2 seconds I want to announce garage door opening till g2 becomes off.

if g2 is on for more than 15 minutes then want to anouunce garage door is open every 15 seconds.

If both g1 and g2 are on then anoounce gagarge door open every 15 seconds.

Please help setup one rule so that I can see what is the best way to do this and then i cna build on the logic.

regards.
 
Here is some ideas of Rules to start working with. g1 is connected to Zone 10, g2 connected to Zone 11. Output 100 is used for a 15 minute timer.


When the garage door is closed then g1 is off and g2 is on
when the garage door is opening both g1 and g2 are on
when the garage door is open g1 is on and g2 is off

1 WHENEVER EVERY 2 SECONDS //2 seconds may be too often to get the voice phrase said
AND g1 (Zn 10) IS NOT SECURE
AND g2 (Zn 11) IS NOT SECURE
THEN ANNOUNCE Miscellaneous 1 (vm239) //Say door is opening
THEN TURN Output 100 OFF FOR 15 MINS //This sets up a 15 minute timer that turns on in 15 minutes.

2 WHENEVER EVERY 15 SECONDS
AND g2 (Zn 11) IS NOT SECURE
AND Output 100 STATE IS ON
THEN ANNOUNCE Miscellaneous 2 (vm240) //Say door is open

3 WHENEVER EVERY 2 SECONDS
AND g1 (Zn 10) IS SECURE
AND g2 (Zn 11) IS NOT SECURE
THEN TURN Output 100 OFF //resets output 100 when door closes
 
Spanky,

What is the output for really? A brief description ans usage would really help.

Thanks for all your help.

Regards,
 
Back
Top