Ok so building on this, here are some possible loops...any feedback?
pH linked to dosing (alk, Ca, Mg). Hi pH shuts off the doser and alarms.
Feed setting - switch off recirc pumps for 10 minutes
Water change setting - switch off ATO, off recirc pumps, off skimmer, off lights
Substitute...