Energy storage charging pile detects battery abnormality