if the smart transfer switch is from am solar here's the wire diagram i used from am solar it was confusing at first till i call am solar for help
1.move the main breaker cable to the smart transfer switch
2.run your new inverter cable in/out to the smart transfer switch
3.run a jumper from the smart transfer switch to your oem transfer switch were you removed the main breaker cable
i installed my smart transfer switch next to the oem transfer switch cause i used the existing main breaker cable i had just enough cable to swing into the smart transfer switch and i purchase 6/3 electrical cable recommended from am solar
good luck