Rules...Need Help...

noshali

Active Member
Sometimes the kids and the wife leve the patio door open to allow some fresh air in. Of course they forget to turn off the heating or the A/C while the door is wide open.

I want to write a rule that would turn off the cool/heat if the patio door (Zone 30) has been violated for more than 1 minute.

I use the RCS TR16 thermostat connected tot he ELK.

Also if there is a writeup on Custom Settings and Timers as I have not used them and the manual does not explain them to the extent that I could make sense of it.

thanks,
 
How about something like this:

WHENEVER Patio Door(Zn 1)BECOMES NOT SECURE
THEN TURN Output 208 ON FOR 1 MIN
THEN SET Counter01 (Counter 1) TO 1 //set flag
WHENEVER Patio Door(Zn 1)BECOMES SECURE
AND Output 208 STATE IS ON //door closed before 1 minute
THEN TURN Output 208 OFF
THEN SET Counter01 (Counter 1) TO 0 //reset flag
WHENEVER Output 208 STATE IS TURNED OFF
AND Counter01 (Counter 1) IS EQUAL TO 1 //and flag is still set to 1
THEN SET Counter01 (Counter 1) TO 0 //stop the timer
THEN ...turn off hvac...
 
I don't mean to question Guy's logic cause he is alot smarter than me, but could this not be simplified even further? Like:

'Turn Output on for 1 min whenever door is opened, restart timer if door is close and reopened during that minute

WHENEVER Patio Door(Zn 1) BECOMES NOT SECURE
THEN TURN OUTPUT 208 ON FOR 1 MIN RESTART IF ALREADY RUNNING

'When 1 minute timer expires, if door is still open then turn Hvac off

WHENEVER OUTPUT 208 IS TURNED OFF
AND Patio Door (Zn 1) IS NOT SECURE
THEN TURN Hvac OFF

Edit: What about turning the HVAC back on?

Maybe add a timer, like 10 min to where you turn it off, like
TURN OUTPUT 207 ON FOR 10 MIN

then

WHENEVER OUTPUT 207 TURNS OFF AND
Patio Door (Zn1) IS SECURE
THEN TURN Hvac ON

This would check 10 minutes after it shut the HVAC off and if the door is secure, turn it back on. I guess it could get fancier too...
 
Yes, I think that Steve's version should work fine. My thinking was along more general ladder logic lines (...and the Ocelot). The Elk's timer retrigger option allows the code to be more compact.
 
What if you want the event to repeat - such as speaking "close front door" until someone closes it?

I ended up with something like this

1) whenever every 30 seconds
and zone is not secure
then add 1 to counter

2) whenever zone is secure
then set counter to zero

3) whenever counter changes to 3
then say xxxx
then set counter to 0

Any thoughts on how to improve?

Thanks,
Frank
 
Back
Top