No, unfortunately there is no way to do that if you are just connecting the native controller to the APEX since the way the APEX works is by turning the power OFF. Unfortunately there is no way for the pump controller to know if the OFF is because the user turned OFF the outlet or it is a power outage.
IF you want to use the gyre with the APEX and a backup battery, you will need to connect the gyre to the APEX using the IceCap Gyre Interface and the variable port on your APEX.