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

South Africa #247

Open
greg10810 opened this issue Feb 4, 2023 · 24 comments
Open

South Africa #247

greg10810 opened this issue Feb 4, 2023 · 24 comments
Labels
enhancement New feature or request

Comments

@greg10810
Copy link

We have a large community of Ford owners here, would be great to have this integration available.

@cyrenaud
Copy link

I would love to have this integration available for South Africa too. I'm sure there are plenty of us that would be willing to assist (with guidance) if required.

@itchannel
Copy link
Owner

Have you tried selecting the other regions and trying to see if it works? I'm guessing the south African Fordpass app is the same as the US one?

In order to make it fully compatible I would need to guide someone through using Burp (Proxy) to intercept the Fordpass application on their device so I can get the relevant region code which I'm happy to do if someone wants to give it a try. Just need some Fordpass details first e.g.

  • Screenshot of data displayed in Fordpass app
  • Version of Fordpass avaliable on your local app store

@greg10810
Copy link
Author

greg10810 commented Feb 21, 2023 via email

@itchannel
Copy link
Owner

I don't see any of the attachments you mentioned. Can you do me a favour and enabled debug logging for fordpass in your HA configuration and then send me the relevant logs when you try logging in so I can see exactly the error you are getting back.

logger:
  default: warning
  logs:
    custom_components.fordpass: debug

If you can do the above first before going down the proxy route as it's not the easiest to explain and can be a little fiddly if you've never used a proxy before.

@jonathankretzmer
Copy link

jonathankretzmer commented Apr 1, 2023

I'm quite interested in getting this integration working for South Africa as well.

Here are my debug logs:

2023-04-01 14:04:09.765 DEBUG (MainThread) [custom_components.fordpass.config_flow] UK&Europe
2023-04-01 14:04:09.765 DEBUG (MainThread) [custom_components.fordpass.fordpass_new] /config/custom_components/fordpass/(REMOVED)_fordpass_token.txt
2023-04-01 14:04:09.765 DEBUG (SyncWorker_3) [custom_components.fordpass.fordpass_new] New System
2023-04-01 14:06:13.410 DEBUG (MainThread) [custom_components.fordpass.config_flow] North America & Canada
2023-04-01 14:06:13.411 DEBUG (MainThread) [custom_components.fordpass.fordpass_new] /config/custom_components/fordpass/(REMOVED)_fordpass_token.txt
2023-04-01 14:06:13.412 DEBUG (SyncWorker_2) [custom_components.fordpass.fordpass_new] New System
2023-04-01 14:06:52.134 DEBUG (MainThread) [custom_components.fordpass.config_flow] Australia
2023-04-01 14:06:52.135 DEBUG (MainThread) [custom_components.fordpass.fordpass_new] /config/custom_components/fordpass/(REMOVED)_fordpass_token.txt
2023-04-01 14:06:52.135 DEBUG (SyncWorker_6) [custom_components.fordpass.fordpass_new] New System

Tried getting the Burp proxy working, you're right it is quite fiddly. Started going down the road of loading the CA certificate onto the Android phone, but then ran into instructions for using ADB, etc. Is this the right direction?

@theunidj
Copy link

theunidj commented May 9, 2023

Keen to see this working for South Africa too. Let me know if I can help with logs too.

@greg10810
Copy link
Author

@itchannel would be great if we could revisit this, seems that there is some interest in this working in SA.

If you still need logs, happy to send

@itchannel
Copy link
Owner

@greg10810 Out of interest does it let you login here: https://sso.ci.ford.com

That's what the API authenticates against. If that works for you then we can troubleshoot from there.

@theunidj
Copy link

@greg10810 Out of interest does it let you login here: https://sso.ci.ford.com

That's what the API authenticates against. If that works for you then we can troubleshoot from there.

i get "We’re sorry, an error has occurred." when trying to reset my password on that link. I don't think i ever created an account.

@itchannel
Copy link
Owner

It's the same account you use to login to the fordpass application on your phone. That's just the web interface for the fordpass backend.

@theunidj
Copy link

the ford pass app requests a mobile number whilst the link above (when accessed on PC) requests an email. when I access that link on mobile it requests a mobile number and I am able to log in.

@itchannel
Copy link
Owner

oh interesting. For most people it asks for an email not a phone number.

So for you does it ask for phone number and password?

Any chance you could send me a screenshot of the login you see?

@theunidj
Copy link

sign in on mobile- https://i.imgur.com/Z1zbMx5.jpg
sign in on desktop - https://i.imgur.com/SoI0w9G.png
ford pass sign in on mobile - https://i.imgur.com/mSULtW7.jpg

@theunidj
Copy link

theunidj commented Aug 24, 2023

if i put in my email or mobile number from desktop it doesn't log in. but i can log in from mobile and it presents me with a screen showing "My apps", all some version of "Ford Credit Native Mobile app"

@theunidj
Copy link

theunidj commented Aug 24, 2023

sooo, after looking into the fordpass app on my mobile under the accounts section, i noted that they don't keep the 0 in front of my mobile number. when removing the 0 from the username field and just using the rest of my mobile number, I've managed to add the intergation to HA selecting the Europe and Uk option.

@itchannel
Copy link
Owner

@theunidj Nice! If another couple of people can also confirm that works for them. Then I can make a couple of changes to the workflow for anyone required to use a mobile number rather than email.

@greg10810
Copy link
Author

@greg10810 Out of interest does it let you login here: https://sso.ci.ford.com

That's what the API authenticates against. If that works for you then we can troubleshoot from there.

I was able to submit my phone number (without the 0) and password, but just get a blank screen

@greg10810
Copy link
Author

@theunidj Nice! If another couple of people can also confirm that works for them. Then I can make a couple of changes to the workflow for anyone required to use a mobile number rather than email.

Screenshot 2023-08-24 at 17 42 02

Unfortunately I am unable to add FordPass integration, as per the screenshot.

@greg10810
Copy link
Author

@theunidj Nice! If another couple of people can also confirm that works for them. Then I can make a couple of changes to the workflow for anyone required to use a mobile number rather than email.

Screenshot 2023-08-24 at 17 42 02

Unfortionately I am unable to add FordPass integration, as per the screenshot.

@itchannel
Copy link
Owner

@greg10810 What version of the integration are you running? and can you turn on debug logging and check your logs for any errors.

Also try signing into the below website and tell me if it works for you:

https://www.ford.co.za/support/vehicle-dashboard

@greg10810
Copy link
Author

@itchannel currently running 1.49, I can log into the site and view my vehicle.

I am currently updating the vehicle firmware to the latest version - will revert with debug logs

@greg10810
Copy link
Author

greg10810 commented Aug 25, 2023

@itchannel here are the logs:

This error originated from a custom integration.

Logger: custom_components.fordpass.config_flow
Source: custom_components/fordpass/fordpass_new.py:370
Integration: FordPass (documentation, issues)
First occurred: 09:31:08 (1 occurrences)
Last logged: 09:31:08

Unexpected exception
Traceback (most recent call last):
File "/config/custom_components/fordpass/config_flow.py", line 83, in async_step_user
info = await validate_input(self.hass, user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/fordpass/config_flow.py", line 62, in validate_input
vehicles = await(hass.async_add_executor_job(vehicle.vehicles))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/fordpass/fordpass_new.py", line 370, in vehicles
response.raise_for_status()
File "/usr/local/lib/python3.11/site-packages/requests/models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://api.mps.ford.com/api/expdashboard/v1/details/

@greg10810
Copy link
Author

@itchannel let me know if you need more info

@SquidBytes
Copy link
Collaborator

#417 #400

@SquidBytes SquidBytes added the enhancement New feature or request label May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants