0
Calculate battery percentage by kWh instead of API response
How about now using Teslas battery percentage (which is heavily rounded as you state) but your own calculations based on the rated miles at 100% (individual car factor) and the rated miles used for this drive. Like you do for the kWh, if I got that correct.
This way the value would be more exact and would be in line with the kWh.
Customer support service by UserEcho