Energy storage charging pile current sampling