Battery energy conversion for solar power generation