Companies are using California homes as batteries to power the grid