Stop in for a cup of coffee

So basically a automatic transfer switch to the inverter if the power goes out?
We have a whole house generator power goes out 30 seconds later automatically kicks on the generator runs till the power comes back on