itchannel / fordpass-ha

Fordpass integration for Home Assistant
317 stars 60 forks source link

FordPass- Home assisant - Invalid Credentials #516

Open Gittface opened 5 months ago

Gittface commented 5 months ago

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 "cleartokens" service call."

FordPass HA

denperss11 commented 5 months ago

im having the same issue suddendly.

Gittface commented 5 months ago

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

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

denperss11 commented 5 months ago

Yes its been working fine for years. Just suddenly stopped. So i tried to reinstall but getting same issue.

On Tue, Jun 25, 2024, 16:16 Gittface @.***> wrote:

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

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

— Reply to this email directly, view it on GitHub https://github.com/itchannel/fordpass-ha/issues/516#issuecomment-2189084690, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR6F2TSWSVOAPXU34P66FA3ZJF3SJAVCNFSM6AAAAABJ3LY5YWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBZGA4DINRZGA . You are receiving this because you commented.Message ID: @.***>

garide78 commented 5 months ago

Hi im having the same issue suddendly.

Gittface commented 5 months ago

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 commented 5 months ago

Same issue for me

SquidBytes commented 5 months ago

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.

Jeppedy commented 3 months ago

So, tricky, but no solution?

jojkopeter commented 3 months ago

Same issue for me

tomn46037 commented 3 months ago

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 commented 3 months ago

Just use that work arround and it works just fine 💪💪

On Sun, Aug 11, 2024, 04:18 Tom Neville @.***> wrote:

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 https://github.com/hacs/integration/issues2024-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!

— Reply to this email directly, view it on GitHub https://github.com/itchannel/fordpass-ha/issues/516#issuecomment-2282354915, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR6F2TUNG6752P2IMUIAYATZQ3CWFAVCNFSM6AAAAABJ3LY5YWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOBSGM2TIOJRGU . You are receiving this because you commented.Message ID: @.***>

tomn46037 commented 3 months ago

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 commented 3 months ago

@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 commented 3 months ago

@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 commented 3 months ago

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 commented 3 months ago

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.