Grid < Primary solar > Battery < Secondary Solar
Where the house is powered by inverter directly on the battery (and maybe a second inverter for primary solar to grid?)