Energy storage charging pile expansion detection