Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some vehicle data questions` #170

Open
idonkeyliu opened this issue May 17, 2024 · 8 comments
Open

some vehicle data questions` #170

idonkeyliu opened this issue May 17, 2024 · 8 comments

Comments

@idonkeyliu
Copy link

  1. How can I determine the total battery capacity from the vehicle data?
  2. How can I obtain the energy consumption information?
  3. How can I distinguish between the new Model 3 and the old Model 3?
  4. How can I differentiate between the long-range version and the standard version?
@patrickdemers6
Copy link
Collaborator

  1. You could extrapolate from vehicle_data's charge_state.battery_range / charge_state.battery_level * 100
  2. This is very vague, you can aggregate data however you need. The API provides up-to-date data.
  3. You should be able to find a field in vehicle data's vehicle_config object which indicates. I haven't tested between the two to see the differences.
  4. Check out the vehicle options endpoint

@jlestel
Copy link

jlestel commented May 30, 2024

Hi @patrickdemers6

Another question about vehicle_data: is the field drive_state.power available on Telemetry? Can't find it.

@patrickdemers6
Copy link
Collaborator

I don't think it's available at this time. I'll create a note to consider adding it in a future firmware version.

@kanhaiya-2000
Copy link

kanhaiya-2000 commented Jun 11, 2024

Hi @patrickdemers6
where can i find details about units of every field in charge_state ? And also details like battery capacity(in kwh) and vehicle's model details ? Can u please provide some help here ?

@idonkeyliu
Copy link
Author

idonkeyliu commented Jun 13, 2024

  1. You could extrapolate from vehicle_data's charge_state.battery_range / charge_state.battery_level * 100
  2. This is very vague, you can aggregate data however you need. The API provides up-to-date data.
  3. You should be able to find a field in vehicle data's vehicle_config object which indicates. I haven't tested between the two to see the differences.
  4. Check out the vehicle options endpoint

A1. You could extrapolate from vehicle_data's charge_state.battery_range / charge_state.battery_level * 100
charge_state.battery_range / charge_state.battery_level * 100.
this can obtain total range for full battery, but can not obtain battery capacity (kwh)

A4.
image

@idonkeyliu
Copy link
Author

Hi @patrickdemers6 where can i find details about units of every field in charge_state ? And also details like battery capacity(in kwh) and vehicle's model details ? Can u please provide some help here ?

I have same question too. Looking forward to receiving a reply.

@kanhaiya-2000
Copy link

I hope i got an approach.

To calculate battery capacity:
We have these fields in charge_state
"charge_energy_added": 47.01,
"charge_miles_added_ideal": 201.0,
"charge_miles_added_rated": 201.0,
These miles and energy added should be proportional to each other.
So ideal battery capacity for a full range = (charge_energy_added / charge_miles_added_ideal)*(ideal_battery_range / battery_level) * 100

Model details:
vehicle_config.car_type provides this details.

I have put it so that anyone else doesn't go through all the troubles of looking at the vast json carefully.

@idonkeyliu
Copy link
Author

I hope i got an approach.

To calculate battery capacity: We have these fields in charge_state "charge_energy_added": 47.01, "charge_miles_added_ideal": 201.0, "charge_miles_added_rated": 201.0, These miles and energy added should be proportional to each other. So ideal battery capacity for a full range = (charge_energy_added / charge_miles_added_ideal)*(ideal_battery_range / battery_level) * 100

Model details: vehicle_config.car_type provides this details.

I have put it so that anyone else doesn't go through all the troubles of looking at the vast json carefully.

Currently, this is how I am doing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants