HESS in micro-grid and smart grid