Any electricians in the house?

Here's and example of a "single line" electrical drawing for a system with a generator and transfer switch. It's not rocket science in theory. But physical installation will take some expertise though.

The PE (Professional Engineer) Stamp in lower right corner is only needed when you are tapping in before the main breaker.

This drawing shows tapping in after the main breaker.

upload_2022-2-5_7-59-3.png