This is the best I can do that's as "easy" as possible, all done in a Chrome browser.
- Using your gmail account create a new blank Google Sheet.
- In your new blank Google Sheet open Tools > Script editor:
- When the Apps Script page loads in another tab, clear whatever is in there and paste in this code, and save. I noticed that sometimes my browser hangs and you just have to close the tabs and reload the Google Sheet and repeat it until it comes up.
- Refresh the tab with your Google Sheet and you should see a new option appear called Custom Menu:
- If you click on Custom Menu > Get Products, the first time it's going to ask you to authorize access for this script through a series of pages:
View attachment 670239 Click Continue.
View attachment 670240 Pick the gmail account you want to use, if more than one.
View attachment 670241 Click Advanced.View attachment 670244 Click Go to Untitled project.View attachment 670245 Click Allow.
- After you finish the Google authentication steps, one time only, it will show a pop-up asking for your access token. You can get your access token here (use at your own risk) but be careful not to save it where anyone can access it as it will grant full access to your Tesla products - solar, powerwall, and vehicles.
- It will print out the data starting in whichever cell your cursor is in. You can add as many sheets as you want on bottom left corner with the + symbol, Add Sheet, and execute whichever of the Custom Menu items you want to print out data from Tesla API.
If you think it's easy enough, I can add more API calls in the Custom Menu over time. You'll just have to pick the the latest code in GitHub and paste over what was there previously in the Script Editor, save, and reload your Google Sheet.
I figured out how to get the access and refresh tokens working again via Google Apps Script. If you're interested, let me know and I can add it as a function to run from the Google Sheet.