Appliances with batteries can benefit homeowners and the grid.