So today my ATO code failed and stayed on for over 4h straight dumping a lot of water into my system. It stopped when my backup float switch got triggered and stopped the ATO. Need to check why the main float switch did not work and possible replace it but I thought my code would only allow my ATO to run for 13 minutes at the most and then wait at least 30 minutes until next time. Can anyone please review my code below and let me know what I have done wrong? Thanks!
ATO outlet
Fallback OFF
Set OFF
If Sw1 CLOSED Then ON
Defer 005:00 Then ON
If Outlet Max_ATO = ON Then OFF
If Sw1 OPEN Then OFF
If Sw2 OPEN Then OFF
If Outlet Leak_detect = ON Then OFF
Min Time 030:00 Then OFF
Max_ATO virtual outlet
Set OFF
If Sw1 OPEN Then ON
Defer 013:00 Then ON
Sw1 = main float switch
Sw2 = backup float switch
ATO outlet
Fallback OFF
Set OFF
If Sw1 CLOSED Then ON
Defer 005:00 Then ON
If Outlet Max_ATO = ON Then OFF
If Sw1 OPEN Then OFF
If Sw2 OPEN Then OFF
If Outlet Leak_detect = ON Then OFF
Min Time 030:00 Then OFF
Max_ATO virtual outlet
Set OFF
If Sw1 OPEN Then ON
Defer 013:00 Then ON
Sw1 = main float switch
Sw2 = backup float switch