Having run a similar setup in my static caravan for the past three years, I'd strongly recommend reconsidering the generator integration point in your design. Most people wire the genny directly to the AC input on the inverter/charger, which works fine until you size the transfer relay incorrectly for your generator's surge capacity.
Key things worth reviewing:
- What inverter/charger are you using? Victron Multiplus-II handles generator integration far more gracefully than cheaper alternatives, particularly with the PowerControl feature limiting draw to what the genny can actually deliver
- Battery chemistry matters enormously here — LiFePO4 (I use Fogstar Drift cells) will accept charge far quicker than AGM, which can actually overwhelm a smaller generator
- Have you accounted for the generator's warm-up period before the transfer switch hands over load?
The emergency backup angle complicates things further. If this is life-critical (medical equipment, heating in winter, etc.), you want at least two independent failure modes covered.
What's your anticipated daily consumption and what size generator are you planning? The answers change the design significantly. Others on here with generator experience will likely have opinions on the automatic start integration as well — that rabbit hole goes deep.