HOW DOES A RESIDENTIAL ENERGY STORAGE SYSTEM INTERACT WITH THE GRID