Charging and maintenance of energy storage charging piles