I don't see batteries being able to store the amount of power (for a practical battery lifetime to be cost effective) needed to make solar a practical primary electricity source.
Many countries like Israel have black water containers on top of every home to heat their water, so it stays there warm for the night.
Storing energy can be made in diverse and original ways, mostly adapted to the local constraints.