I was inside, all accessories were off (HVAC, radio), but the screen was on in daytime mode at auto-brightness. The only way I have to control the current is from the in-car charge screen so to gather these 6 data points rather quickly I didn't think to change it then get out of the car and back in to change it each time
[...]
This was all automated input collection from the API (other than calculated columns from that info). Any thing lower_case_with_underscores is the actual API field name (all from the charge_state API endpoint, except where specified otherwise, e.g. drive_state.power).
The API reports the same values as the car charge screen. It is actually querying the car via Tesla's servers to get those numbers. Every time I looked they matched.
I was just intrigued by
@pdx_m3s 's data and wanted to try to replicate it. I agree we are close. Only reason I bumped up from 250 to 350 was to try to get to his constant charger efficiency.
I hadn't considered the 2-chargers factor either. I'm relying purely on the API and have no current clamps or other measuring devices.
As an aside, I'm happy with my 219 Wh/mi figure for my SR+ (this was previously calculated based on many Supercharger data samples recovered manually from a video). At 30A, the calculated charger power is 5.45 while the drive_state API reports -5 kW. At 25A the calculated power is 4.51 kW and the drive_state API still reports the same -5 kW. This tells me I'm in the sweet spot and any lower than 219 and my 25A number would have rounded down to 4 kW (0.01 above the rounding threshold) and any higher than 219 and the 30A number would have rounded up to 6 kW (my number was 0.05 kW below the rounding threshod).
My assumption is that the drive_state.power field is the DC power delivered to the battery for charging, rounded to nearest kW, and that the reported charge_state.charge_rate in mi/hr is that same underlying number multiplied by a constant dependent on your trim (219 Wh/mi for SR+).
When you are driving, drive_state.power is a positive number, unless you are doing regen, then it is negative.
Also note that the loss is clear in at least one data point even from the rounded power numbers. At 30A the charge_state.charger_power was 6 kW, while the drive_state.power was -5 kW (for all my other data points, 25, 20... 5A the charger and drive state powers match).