Energy storage charging pile power loss detection