So I want a switch, or more a "statement", that when the switch Closes that means water level is low and turn the return pump off until i tell it to turn back on again. Still working on the ATO set up. Telling it to turn off is not a problem its when the overflow drains, which raises the water level in the sump which will "OPEN" the switch again.
You will then need to use virtual outlets to create a "latch" situation. Although there is more than one way to accomplish this, I would do it something like as follows: Create two virtual outlets, call them "PumpDisable" and "ResetDisable".
For "PumpDisable", use the following lines:
If Float1 CLOSED Then ON
If Outlet ResetDisable = ON Then OFF
(Note that there is no "Set" command for this outlet. On an Apex power up or reset, the default state of outlets is "off" unless a "Set" or other command says otherwise.)
For "ResetDisable":
Set OFF
(Not absolutely necessary to have this command here, but I always use it for outlets used solely to toggle others.)
And for your return pump outlet, you would re-write it to:
Set ON
Fallback ON
If Outlet PumpDisable = ON Then OFF
Defer 005:00 Then ON
So, when Float1 closes, it "permanently" toggles "PumpDisable" ON until you manually toggle "ResetDisable" from "Auto" (or OFF) to ON and back again. And after you do this, the pump will not come on again for 5 minutes, if you still want to have the delay. Otherwise, remove the defer statement.