An old battery technology could give new hope for incorporating solar and wind energy into public power grids.