Originally Posted by
p7willm
Lets go through the code, assuming the switch names are correct and when they are open/closed.
It's going to stay off until SW2 closes/down and stays that way for 2 minutes (because of the Defer 002:00). After SW2 is closed for 2 minutes the outlet switches on. As soon as the water level rises and SW2 opens/up the outlet shuts off. If something goes wrong with SW2 and it does not open the water continues to rise until SW3 closes/up and the outlet stops (you probably want to put SW3 closing in your alarm outlet since normally it would not close). Now the outlet will stay off for 15 seconds (you probablymean min time 015:00 to make it wait 15 minutes).
Other than the staying off for 15 seconds instead of 15 minutes the code looks goog. The problem is probably that the switches are names wrong or the open/closed and up/down are not as described.
Bookmarks