Batteries in energy storage distribution cabinets