Smart EMS for C&I storage