Thanks for the response,,,
I was worried that the relay might make the transisitionfrom mains to inverter too fast. I have an aims 2500 inverter that stopped working for one reason or another shortly after installing this switch. I guess now that it would have failed any way..
My switch was made of a lm3914 voltage indicator, a 555 timer, an n channel fet, and a heavy duty relay.
I used the last voltage indicator pin, that is set to drive an led, to go to ground level at 12,72 volts, and ran this output to the trigger of a 555 timer, and the output of the 555 to an n channel fet, which drives the relays center contacts from the normally closed (grid power) to the inverter power. If the battery is 12.72 or above, the relay is activated to the inverter for 90 seconds, and then will turn back to the grid unless at this point the voltage of the battery is 12.72 or above, in which case it will stay on.