Where might I find a schematic for switching from hydro to generator in the home?

I need to build a transfer switch that is hot when the hydro is on but a power outage will kick in the generator.
2 answers 2