Energy storage charging pile motor maintenance