Skip to content

AutonomicData Tutorial

theUNSTABLE edited this page Oct 27, 2023 · 8 revisions

If you would like to share your vehicles data, or help debug various issues you can generate a json file containing your vehicles data. This can be done using the VSCode Add-on for Home Assistant, or through a terminal if you would prefer to do that.

Precondition:

  • fordpass-ha integration installed
  • Vehicle's VIN
  • VSCode Add-on for Home Assistant

Steps:

1. In the VSCode explorer window open the fordpass integration folder under /config/custom_components/fordpass

image

2. Open autonomicData.py

  • 2.1 Enter your VIN image
  • 2.2 Assign your region image
    • If you need to change your region, remove the # from your region, then add a # to the North American region.
    • UK&Europe region: image
    • Australia region: image

2.3

  • Add your vehicle information, if desired, or disable redaction (not recommended if you wish to share this data) image

3. Open the VSCode Terminal

4. Ensure you are in the correct directory

  • cd /config/custom_components/fordpass

5. Execute python3 autonomicData.py

image

Conclusion:

  • Your vehicles data will be saved in a .json file in the fordpass directory.

TROUBLESHOOTING:

Please enter your VIN into the python script You need to manually input your VIN into the script.

Error finding FordPass token text file: The script is looking for your EMAIL_fordpass_token.txt file. In the above example I used ls -lh to verify that my token file exists, and that it contains data.

HTTP Error: 401 Client Error: Unauthorized for url: Unable to get vehicle capability, saving vehicle status The script attempted to grab your vehicle capability. However, it was unable to do so. The token used may be expired, you can try again at a later time - or after a fordpass-ha refresh. Your vehicle status should still be saved

HTTP Error: 403 Client Error: Forbidden for url: https://api.autonomic.ai/v1beta/telemetry/sources/fordpass/vehicles/<VIN> This means you are not being blocked when trying to access the new API.

Please Verify the following:

  • You can log into the FordPass application on your device
  • You can actively control your vehicle with the FordPass application
  • Your account is not locked out
    • You can try logging into your account on Ford.com
    • You can also try logging out, and then logging back in to see if there may be additional steps needed