yes
there are two ways to "sell" energy back to the grid in CA. one way is you get storage credits with your provider that are used to deduct against your metered usage. so if you "sell" energy during peak times, and use grid supply during non peak times, you come out ahead.
at end of year...