ENERGY MANAGEMENT FOR HOME ESS