Here's what I use for mine. Keeps it from running too long, sends an email if it tries to run longer than it should.
Keep in mind, if you don't have auto-water changes, take off the last couple lines
*ATO
Fallback OFF
Set OFF
If Switch6 CLOSED Then ON
If Outlet limit_ATO = ON Then OFF
Min Time 005:00 Then OFF
Defer 001:00 Then ON
If Outlet Drain_Pump = ON Then OFF
If Outlet NSW_Pump = ON Then OFF
*limit_ATO
Set OFF
If Switch6 CLOSED Then ON
Defer 007:00 Then ON
If Outlet Drain_Pump = ON Then OFF
If Outlet NSW_Pump = ON Then OFF