Battery SoC?
andig opened this issue · comments
Hi, does ffpass allow reading the battery soc for Ford EVs?
Do you get the information you’re talking about in your fordpass app?
It would be great to get the following from the api if available:
- battery soc
- remaining range
- remaining charge duration (if available)
Also wondering if there's any way to get the list of vehicles. api/vehicles/v4/status
doesn't work.
UPDATE: answering myself. Using the Ford portal I've found there is another API https://api.mps.ford.com/api/users/vehicles
.
@andig So if the data is available in the app then it should be contained in the vehicleData variable here
Line 28 in 3294633
You would simply need to inspect that JSON data and find the reference to it to log it out to the console with the rest of the information already logged in the lines that follow.
@andig I do not have a hybrid or electric vehicle to test with so if you want to post a redacted version of that JSON object returned from the car.status()
call I could make a branch you could test locally.
The status endpoint contains various additional data. Unfortunately, I don't have credentials anymore to provide you the structure, sorry!