Tie all of your panels onto a DC buss. Then hang your battery string off of the DC buss, along with a grid tie and non grid tie inverter.

You will end up with solar to PoCo system, along with an independant system to power up the pool pump and charge your batteries. When the PV panels output more than what the batteries and pump can take, the excess will go to the PoCo. Pump the cool pool water thru heatsinks mounted behind the PV panels to increase their output. A transfer switch to switch on the non grid tie inverter when the PoCo goes away and you are all set.