Warning
This integration is not officially supported by Ford and as such using this integration could result in your account being locked out!
Please be aware, that we are developing this integration to best of our knowledge and belief, but cant give a guarantee. Therefore, use this integration at your own risk!
- It's recommended to use/create a separate Fordpass account for this integration (see step-by-step procedure further below).
- It's recommended to use an update interval of 240 seconds or higher to prevent a lock of your Fordpass account.
Note
This fork is WIP - and since I just own a EV (Mustang MachE 2023) I will focus on the features of the electrical vehicle data.
Important
There is a new access-token obtaining system introduced in the origin fordpass integration repository by @itchannel and @SquidBytes.
The access-token used by this forked integration is stored outside the custom integration directory - this will prevent the access-token from being deleted during updates of the integration itself.
Please see the Installation section, or the docs for help.
Warning
Initially I created this fork in order to provide a release version of the v1.70 branch that can be installed via the HACS v2.0 (where you only can install 'released' integration versions).
- The entity names have been changed in oder to ensure that the sensor names include the VIN.
- The sensor attribute names does not contain spaces anymore to make post-processing easier (using camelcase).
- The access-token is stored outside the custom integration
- Additional Sensors for EV/PHEV vehicles
- Buttons to local/remote refresh data in HA
- Sensor to provide EVCC-Charging state see evcc.io website for details
- Translation of Entity names (DE/EN)
- Code cleanup & refactoring
Your car must have the latest onboard modem functionality and have been registered/authorised with the fordpass application.
- In HA HACS, you need to add a new custom repository (via the 'three dots' menu in the top right corner).
- Enter https://github.com/marq24/ha-fordpass as the repository URL (and select the type
Integration
). - After adding the new repository, you can search for
fordpass
in the search bar. - Important there is already a default HACS fordpass integration - Please make sure to select the 'correct' one with the description: _Fordpass integration for Home Assistant [fork optimized for EVCC].
- Install the 'correct' (aka 'this') fordpass integration (v1.71 or higher).
- Restart HA.
- After the restart go to
Settings
->Devices & Services
area - Add the new integration
Fordpass
and follow the instructions:
You will need to provide:- Your Fordpass Email/Account
- Select a Fordpass Region (USA, EU, UK, AU) [it's expected that only USA will work right now]
The actual token request requires an external browser to get finally the Fordpass access token. [Yes this is for sure quite unusual process when setting up a HA integration, but it's the only way to get the token right now]
Please follow the steps:
- Copy the URL listed in the first input field
- Open a new browser (with enabled developer tools) and paste the copied URL it into your second browser
- In this second browser: Enter your Fordpass credentials (again) and press the login button
- Watch the developer tools Network-tab till you see the
?code=
request (this request will fail, but it's not important) - Copy the full
Request-URL
from this?code=
request from the browsers developer tools and paste it in the HA integration setup Token field [you must copy the complete URL - so ist must start withfordapp://userauthorized/?code= ...
]
More details (how to deal with the browser developer tools) to obtain your token can be found in the docs.
Tip
It's recommended to use a separate Fordpass account for this integration. This is to prevent any issues with the Fordpass account being locked due to the polling of the API.
Here are is a short procedure how to create a second account:
- Create a new Fordpass account with a different email address (and confirm the account by eMail) - It's important, that you can access this eMail account from your mobile phone with the installed FordPass App!
- From the Fordpass app (logged in with your original account), you can select
Settings
from the main screen (at the bottom there are three options:Connected Services >
,Location >
&Settings >
) - On the next screen select
Vehicle Access
(from the options:Phone As A Key >
,Software updates >
&Vehicle Access >
) - Select
Invite Driver(s) Invite
and then enter the next screen the eMail address of the new account you created in step 1. - Now you can log out from the Fordpass app and log-in with the new account.
- Wait till the invitation eMail arrives and accept the invitation with the button at the bottom of eMail.
- Finally, you should have now connected your car to the new Fordpass account.
- You can now log out again of the Fordpass app with your second account and re-login with your original Fordpass account.
- You can double-check with a regular browser, that the car is now accessible with the new account by web.
If you are experiencing any sign in issues, please trying clearing your tokens using the "clear_tokens" service call.
This service allows you to manually refresh/poll the API without waiting the set poll interval. Handy if you need quicker updates e.g. when driving for gps coordinates
This service will contact the modem in the vehicle and request to sync data between the vehicle and the ford backends. Please note, that this will have an impact on the battery of your vehicle.
Sensors may change as the integration is being developed
- Fuel Level
- EV-Battery Level (SOC)
- Odometer
- Lock/Unlock
- Oil Status
- Last known GPS Coordinates/Map
- Tyre Status
- Battery Status
- Ignition Status
- Alarm Status
- Individual door statuses
- Remote Start
- Window Status (Only if your car supports it!)
- Last Car Refresh status
- Car Tracker
Supports Multiple Regions- Electric Vehicle Support
- TPMS Sensors
Guard Mode (Only supported cars)- Deep sleep status
- Fordpass messages and alerts
- https://github.com/itchannel/fordpass-ha - Original fordpass integration by @itchannel and @SquidBytes
- https://github.com/SquidBytes - EV updates and documentation
- https://github.com/clarkd - Initial Home Assistant automation idea and Python code (Lock/Unlock)
- https://github.com/pinballnewf - Figuring out the application ID issue
- https://github.com/degrashopper - Fixing 401 error for certain installs
- https://github.com/tonesto7 - Extra window statuses and sensors
- https://github.com/JacobWasFramed - Updated unit conversions
- https://github.com/heehoo59 - French Translation
See the seperate Updates file for the changelog.