A Tesla battery ensures the home performs well—and allows it to pump excess green energy back into the grid.