Onsite is certainly ideal, but won't be possible in every case. I have been reading about costs for solar alone approaching 1c/kwh 2019 and that includes the manufactures markup:
Cheapest electricity on the planet is Mexican solar power at 1.77¢/kWh – record 1¢/kWh coming in 2019, sooner
1.77c recently in Mexico but that is closer to the ideal place for solar.
My thought is that the exchange with utilities would compensate for that because solar would be built close to where it is used, saving the utility transmission costs or crediting Tesla with higher wholesale rates which would directly offset grid tied usage at the megachargers. The utility will pay a premium to satisfy renewable requirements and or sell the renewable electricity at higher rates to people who chose green options. Either way, if Tesla is manufacturing everything themselves, the costs could be as low as 1c/KWh by 2019, which leaves 6c for batteries and profit. How much is whole sale energy? Including transmission. My original thought is that Tesla would charge competitive rates for the mega chargers and have lower margins on the truck, but it's clear now the truck well have normal margins, 30%+ and electricity and maint will be just over break even.
Either way, Tesla is going to be building thousands of micro grids for themselves and Tesla could be the biggest utility in the planet in 5 years. I would imagine they have a plan to squeeze some margin out of all that charging, maybe upwards of 30%. All it would take us batteries for under 5c/KWh.
You know I just had a thought... First time for everything.. what if they used recycled Tesla Auto batteries on these microgrids? They are basically free as they cannot be used for anything else and they would be to expensive to breakdown and reuse the raw materials.