Automatic panel that switches to generator power during mains failure and restores when supply returns.