Here in South Africa we have something called loadshedding. The National grid "cant" handle the load, so they turn power off for 2 - 4 hours a couple of times a day.
Thus we had to make a plan some time ago already. We are lucky in the sense that we rarely get cloudy days, majority of rain is in summer.
So we installed a 5kw Inverter, 5520 watt panels and 11kw lithium batteries.