I have a few circuits in my house that I would like to be able to power during an outage with a portable battery backup system (something like the Ecoflow Delta Pro). I'm trying to understand if what I'm envisioning is possible with either a transfer switch or some sort of interlock/power inlet box setup.
My setup is as follows:
- 200A main service panel on outside of house
- 100A sub-panel in house, fed by 100A breaker on main service panel
- Various 15A circuits in house sub-panel that I would like to backup (most critically, gas boiler for heating during a winter outage)
Here's a schematic of the main panel and circuit breakers on it:

Due to the way things are physically configured, installing a full transfer switch in the house near the 100A sub-panel would be somewhat disruptive and more expensive due to where the switch would need to be located. By far, the easiest place to install a transfer switch/inlet box and plug in a battery in a backup situation would be near the main service panel outside. Since these portable battery backups supply a max of 30A, I am wondering if it would be possible/safe/to-code to install a 30A transfer switch between the main panel and the 100A house sub-panel, so the house panel is fed either from the breaker in the main panel or the portable battery. 30A is definitely not enough to power every load in the house, so in a power outage, I would plan to shut off all non-essential circuits in the house and monitor the load on the battery.
Is this even feasible? I spoke with an electrician and he seemed to imply I needed a whole-house battery ($$$$) for what I was describing, which is vastly more than I am willing to spend for a maybe once-per-year backup scenario. I'm hoping he just didn't understand what I was asking.