Massive investment in large batteries and the power grid is badly needed, and investors and foreign governments are paying close attention.