Check the Applicable Local to YOU rules with care. In many areas you can only "get paid" for basically knocking your bill back to the monthly service charge (what you pay even if you use no power for being connected.) So if you produce 10,000 kWh and use 10,000kWh (typically over a year) you get to pay just the service charge. If you produce 9,000 and use 10,000, you get to pay the service charge and for 1,000. If you produce 11,000 and use 10,000, you...still...get to pay just the service charge, and NYSEG gets 1,000 kWh for free.
But what about those solar farms? They are operating under a different ruleset (and tariff) than you as a consumer/user/producer. In most areas. I think there are a few places where consumer producers can actually get paid, but they are the exception, not the rule.
Basically the grid makes for a mostly reliable (but not during storms) battery without the maintenance hassle of physical batteries when all the way off-grid. Two of my friends have Powerwalls and panels under a program where the utility leases them and has control so they can use them for peaking power - for the most recent 2-3 day outage, the utility saw the storm coming and drained their powerwalls just in time for the power to go out and leave them hosed...