So, on to the first big actual design challenge. The electrical system.
There will ultimately be several electrical buses:
Vehicle DC - Starter, running lights, cab stereo, shit like that. Home to starter batteries
House DC - All other interior and exterior lights (LEDs only), DC accessories, house stereo. Home to deep cycle batteries.
House AC - AC outlets and appliances
Vehicle AC - House and vehicle battery chargers
These will be bonded in the following states:
Genset off, ground power off, engine off: House AC is powered from house DC bus via inverter. DC buses are isolated. Vehicle AC is isolated.
Genset on, ground power off, engine off: House AC is powered from genset, vehicle AC is tied to house AC. DC buses are isolated.
Genset on, ground power on, engine off: Shutdown signal to genset, otherwise same as Genset off, ground power on, engine off
Genset off, ground power on, engine off: Vehicle AC bus tied to ground power, house AC tied to vehicle AC. DC buses are isolated.
Genset off, ground power off, engine on: House AC is powered from house DC bus via inverter. DC buses are tied. Vehicle AC is isolated.
Genset on, ground power off, engine on: As Genset off, ground power off, engine on, send genset shutdown
Genset on, ground power on, engine on: As Genset off, ground power off, engine on, send ground power eject and genset shutdown
Genset off, ground power on, engine on: As Genset off, ground power off, engine on, send ground power eject
I suspect I'll switch the bonding modes with a Raspberry Pi powered from the house DC bus driving some fat solenoids/solid state relays. I'll need to watch the failure-mode state for that carefully, though.
Incidentally, this reminds me of my favorite feature of this entire thing. The ground power socket has an ejection solenoid, so in fire service, it can be left plugged in all the time, and you don't have to remember to unplug it before you drive away - just get in and it will eject the ground power lead when the engine starts. This does not work at this time.
I also need to source a genset and inverter. Diesel gensets, even intended for RV use, seem to be rare on the secondary market. That's annoying. I don't want or need a gasoline tank. I suppose I could always source a small diesel engine and a separate generator head (Harbor Freight has the second one of those tantalizingly cheap).