I'm sure that Tesla purchases surplus electric power on the wholesale spot market. That's the purpose of the large accumulator batteries at the supercharger stations. Wholesale spot prices in Texas can be quite cheap. <$0.07/kwh https://www.ercot.com/content/cdr/contours/damSpp1Hg.html