Electric vehicle energy storage cabinet grid factory operation