Odd timing code help request

Gordonious

Active member
I'm trying to find a way to receive an e-mail once my Auto top of reservoir is empty and then not receive another one for another ~4 hours if it continues to be empty. The rest of the e-mails alerts I would like to receive frequently, so I don't want to play with the email repeat.

I was thinking of creating a couple virtual outlets to do the jobs, but not sure if it would work the way I want or be the best way to go about it.
 
I have a virtual outlet now named, "ATOResGood"
If Switchx4_2 OPEN Then OFF
If Switchx4_2 CLOSED Then ON
Defer 000:02 Then OFF


I use the defer to make sure it wasn't just random bump into the float type event, but that the actual water level is there. I probably don't want to modify this outlet as I would like to be able to quickly see if the ATO Reservoir is good.

I was thinking of creating two more virtual outlets. One would be ATOResEmpty and set it to be
If ATOResGood = OFF Then ON
but then add something else to it so once it is ON it is only on for three seconds and then off for another 999minutes. Osc won't work for this because I want to know right away when the Res is empty and you can never predict what time of day it will be empty.

Then I was thinking another virtual outlet called ResStillEmpty and have it set to.
If ATOResGood = OFF Then ON
OSC 240:00/000:03/000:00 Then ON


Ideas?
 
Trying to make it completely automatic, I could not avoid a circular reference. Where outlet A is dependent on outlet B and vice versa. If you are willing to rely on user input, you could use a Feed cycle to shutoff the virtual outlet for a set period.

[ATO_Empty]
Set OFF
If Switchx4_2 CLOSED Then ON
Defer 00:02 Then ON
If FeedA 000 Then OFF

This effectively acts like a snooze button.

Todd
 
Really like to find a way not to have any user input. At this point I keep removing the statement "If ATOResGood = OFF Then ON" from my e-mail alarms and adding it back later. The feed timer would essentially do the same thing.
 
Back
Top