Re: Dumb idea?
It can be done locally. At least until bribes and lobbying from greedy power companies kill it, you can get credit for exported power. The trick is to have enough battery capacity to not import anything between sundown and the end of peak rates. It works out like:
Morning: Import power at normal cost
Noon: Solar provides power and charges the batteries
Afternoon: Batteries are full. Solar provides power and exports at peak cost
Evening: Batteries provide power until peak cost ends
Night: Import power at normal cost
Since you rigged the system to import at normal cost and export at peak cost, you have a lot of credit to use for dark rainy days when there's insufficient solar power. Power companies are OK with this from an operational point of view because high loads on hot sunny days is what overheats the grid. Except Texas, where it blacks out when it's cold.