Liquid-cooled energy storage battery as solar cell