I would use Reliance Controls generator transfer switch to hook up with the main service panel as detailed in the YouTube video below. This is a manual backup option, not an automatic setup with a Tesla gateway which would cost up to $6K to install by an licensed electrician.
Instead of using...