Adding solar energy to energy storage systems