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

FordPass- Home assisant - Invalid Credentials #516

Open
Gittface opened this issue Jun 25, 2024 · 16 comments
Open

FordPass- Home assisant - Invalid Credentials #516

Gittface opened this issue Jun 25, 2024 · 16 comments
Labels
duplicate This issue or pull request already exists

Comments

@Gittface
Copy link

Gittface commented Jun 25, 2024

Hi all, I'm trying to add FordPass in to my HA. When I get to the FordPass sign on details, I add my information in then I keep getting an ' Invalid Credentials'.

I have checked my Ford Pass log in details and they are correct. I've even changed my password but it still doesn't work.

Anyone got any ideas?

I see from the documentation that you may have to clear your tokens, but I've never done this, so not sure how to go about it..

"Clear Tokens
If you are experiencing any sign in issues, please trying clearing your tokens using the "clear_tokens" service call.
"

FordPass HA

@denperss11
Copy link

im having the same issue suddendly.

@Gittface
Copy link
Author

Hi denperss11, Have you previously had HA connected to the FordPass integration?

I've never been able to connect ... :-(

@denperss11
Copy link

denperss11 commented Jun 25, 2024 via email

@garide78
Copy link

Hi
im having the same issue suddendly.

@Gittface
Copy link
Author

Hi garide78, i guess you had access previosuly but when trying to log in again this occurred?

It would be interesting to know if anyone has been successful in loging in to FordPass on HA integration...

@nicholasmparker
Copy link

Same issue for me

@SquidBytes
Copy link
Collaborator

I'm guessing that in your debug logs you'll probably have an entry with Forbidden for url: https://login.ford.com

In May there was a change and things have been tricky since then

#488 and #509 would be the relevant threads to go through.

@SquidBytes SquidBytes added the duplicate This issue or pull request already exists label Jun 28, 2024
@Jeppedy
Copy link

Jeppedy commented Aug 8, 2024

So, tricky, but no solution?

@jojkopeter
Copy link

Same issue for me

@tomn46037
Copy link

New installation of the Ford Pass custom component through HACS. I am also getting the invalid credentials message. I have reset my password. I have logged out of and logged back into the FordPass iOS app with the new password. I am still having the same problem.

I don't believe I can turn on debug logging until I have successfully installed the Ford integration. I also don't see any service or action calls - again, I suspect that's because the Ford Pass integration won't install until I am successful in logging into Ford.

As further diagnostic steps, have disabled my pi-holes. I have watched for IP traffic to hosts resolved from login.ford.com - and I do see TCP Port 443 traffic. (However, I can't see into the TCP stream as it's TLS.)

I have looked through the docker logs of the homeassistant container and these are the only lines referring to "ford"

grep -i ford /tmp/log-file
2024-08-10 21:39:25.074 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open with args ('/config/custom_components/fordpass/__init__.py', 'wb') inside the event loop by custom integration 'hacs' at custom_components/hacs/repositories/base.py, line 698: zip_file.extractall(self.content.path.local, extractable) (offender: /usr/local/lib/python3.12/zipfile/__init__.py, line 1801: open(targetpath, "wb") as target:), please create a bug report at https://github.com/hacs/integration/issues
2024-08-10 21:39:25.127 WARNING (SyncWorker_46) [homeassistant.loader] We found a custom integration fordpass which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-08-10 21:39:44.611 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration fordpass which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-08-10 21:40:39.214 WARNING (ImportExecutor_0) [py.warnings] /config/custom_components/fordpass/fordpass_new.py:263: SyntaxWarning: invalid escape sequence '\s'

I'm happy to do more digging on my end if there's something specific that would help.

Thanks!

@denperss11
Copy link

denperss11 commented Aug 11, 2024 via email

@tomn46037
Copy link

Ah, I didn't realize the 403 was the same issue. (I was unable to get to logs to see the 403 on login.ford.com.) I'll post what I did here for anyone that happens along behind me. :)

Checked out the git repo
Changed my branch to 1.70
zipped up the fordpass directory under custom components
copied that to my home assistant instance
On the home assistant instance:
cd /homeassitant/custom_components
rm -rf fordpass
unzipped the zip I created a couple of steps ago
restarted home assistant
added the fordpass integration
Opened the URL it provided and logged in. As indicated in the URL below, the login just sat there spinning.. that's expected.
On the "failed" request in developer tools, I copied out the location header (See: https://github.com/itchannel/fordpass-ha/wiki/Obtaining-Tokens-(As-of-25-05-2024))
I then pasted that into the Add Integration in HA and followed the rest of the steps. (Selecting the vehicle and so forth.)

After that, it was working for me.

As a side note, keep a copy of the "fordapp" URL from above. :)

Thanks to everyone for all your hard work on this.. it's very helpful for me as I have an RV where I run Home Assistant.

@TheLizard
Copy link

TheLizard commented Aug 11, 2024

@tomn46037
I would expect the debug logging to work even before doing the entire setup:
can you add the logs: custom_components part of below example:

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

@Gittface
Copy link
Author

@tomn46037 sounds like you have this working now with 1.70 which is great.
I'm still learning on HA and I can't seem to unzip the Fordpass (1.70) folder in File Editor (/homeassitant/custom_components). I'm sure this is a really dumb question, so please excuse my ignorance.
In File Editor it only seems to let me add a new file /folder or upload a file (not a folder). Would you be so kind as to point me in the right direction on how I would do this, many thanks.

@juice444
Copy link

I'm having the same credentials issue but can't seem to work through it. I replaced all of the files with the 1.70 files, restarted HA but never get a URL popup. I just keep getting Invalid Credentials even though I know they work on the app and the website.
Any thoughts as to why my credentials aren't working here?

@Gittface
Copy link
Author

I've now copied the individual files over to in to teh fordpass folder in custom_components in HA file editor. I can then get to the updated login screen when I add the fordpass integration in HA (see below)
image
But when i use this URL to open fordpass (in another window) the userauth token has an error in it 'fordapp://userauthorized/?error=server_e..'
image
..I can't see what is wrong and why i get this error. Any help would be greatly appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

10 participants