I installed 14.5 kW of PV panels on the barn roof a few years ago and hooked them up to a 10 kW hybrid inverter. Hybrid inverters can divert energy (from the PV panels or from the net) to a battery which can be used at a later stage to feed consumers in the local installation or to backfeed to the net. Since we currently have a contract which allows us to sell energy at market rates we do not have a battery yet but I don't know yet what the next contract (in 2 years) will look like. Assuming that we can no longer sell at market rates I'll install around 60-80 kWh in battery capacity to soak up excess production and dump the rest in the water heater etc. If we ever get a hybrid or electric car/tractor/whatever I'll add battery capacity so as to be able to charge those with excess energy. By that time we'll be close to ready to go off-grid which is fine by me, electricity prices here in Sweden have skyrocketed due to the demand from (mostly) Germany for excess capacity since you shut down your nuclear power plants. The more transmission capacity is built in the Baltic, the higher our prices get.