Brandawg93 / homebridge-fordpass

Control your Ford vehicle in HomeKit using Homebridge.
GNU General Public License v3.0
62 stars 15 forks source link

[Bug]: Auth failed with status: undefined / Ford locked my account #196

Open stephondoestech opened 2 years ago

stephondoestech commented 2 years ago

Describe the bug

My ford devices are not updating at all. When I removed and re-added the FordPass Plugin in Homebridge the devices never appeared in my Home app again. When I look in the logs the error listed is [07/08/2022, 23:56:37] [FordPass] Auth failed with status: undefined

I am running version 1.8.0 of the plugin now. Node is updated to version 16.16 on my Raspberry Pi.

Debug Output

[07/08/2022, 23:56:36] Homebridge v1.5.0 (HAP v0.10.2) (Homebridge 9866) is running on port 51628. [07/08/2022, 23:56:37] [August Locks] [{"id":"FA0DC6E26E3340258E3E7B2C5D48F9B5","name":"Back Door","macAddress":"78:9C:85:10:6B:22","houseId":"01cc19fa-f6ab-4cef-b452-51ee18d9ccc6","houseName":"Parker's House"}] [07/08/2022, 23:56:37] [August Locks] Restoring existing accessory from cache: Back Door [07/08/2022, 23:56:37] [FordPass] Auth failed with status: undefined [07/08/2022, 23:56:38] [SimpliSafe Alarm] Motion Sensor 'Living Room' requires secret alerts to be enabled in SimpliSafe before you can add it to Homebridge. [07/08/2022, 23:56:39] [SimpliSafe Alarm] SimpliSafe real time events connected.

Steps to reproduce

  1. Follow instructions in the setup to add to Homekit

Device Type

Raspberry Pi 4

iOS Version

15.6

Bug Persistence

Consistently

Last Working Version

1.6.1

yuxinli915 commented 1 year ago

It’s all good now.

LeFumiste commented 1 year ago

Really ??? Sure ??? Waiting more and more responses before re-activating the plugin. I don’t want to be banned by FORDPASS !!! But it’s a good things if it works great now !!! Is it possible to have more returns of the 1.8.2 version please ???

BatMahn commented 1 year ago

Been using it for months with the 15 minute thing.

Doesn’t appear to reliably report status to HomeKit if it’s locked, but it responds to Siri start commands and no ban.

LeFumiste commented 1 year ago

Ok, thx for response... Do you have (need) to change the some setting or is it great without changing anything ??? Can i see your setting's picture please ???

LeFumiste commented 1 year ago

Excuse me !!! If we are ban, is it possible to create another FORDPASS account with the same vehicule as the banned account. Just for recovering the native app of Ford ???

mcneyens commented 1 year ago

Yes that’s what I did. Sent from my iPhoneOn Apr 28, 2023, at 7:10 AM, LeFumiste @.***> wrote: Excuse me !!! If we are ban, is it possible to create another FORDPASS account with the same vehicule as the banned account. Just for recovering the native app of Ford ???

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

grizzalorian commented 1 year ago

2 days ago I started getting this error "[4/28/2023, 5:49:48 PM] [FordPass] User failed with error: ERR_BAD_REQUEST"

my fordpass is not locked and I had the refresh rate at 60.

LeFumiste commented 1 year ago

It doesn't run ok ??? I don't know what to do ??? Waiting a moment or activating 1.8.2 ??? Which one do you recommend me please ???

jcleek commented 1 year ago

2 days ago I started getting this error "[4/28/2023, 5:49:48 PM] [FordPass] User failed with error: ERR_BAD_REQUEST"

my fordpass is not locked and I had the refresh rate at 60.

I am having the same issue, and my refresh is at the default 180.

LeFumiste commented 1 year ago

Do you know what's the problem and how to resolve it ???

LeFumiste commented 1 year ago

image

LeFumiste commented 1 year ago

Is it the PIN or Face ID who break the plug ??? => error bad request !!!

joshuamio commented 1 year ago

2 days ago I started getting this error "[4/28/2023, 5:49:48 PM] [FordPass] User failed with error: ERR_BAD_REQUEST"

my fordpass is not locked and I had the refresh rate at 60.

same here..

mcneyens commented 1 year ago

Same hereSent from my iPadOn May 2, 2023, at 2:42 PM, joshuamio @.***> wrote:

2 days ago I started getting this error "[4/28/2023, 5:49:48 PM] [FordPass] User failed with error: ERR_BAD_REQUEST" my fordpass is not locked and I had the refresh rate at 60.

same here..

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

LeFumiste commented 1 year ago

And we have a solution for this ??? 😅

LeFumiste commented 1 year ago

What can we do for a good job of this plugin ??? Some News of Ford Connect admin ???

joshuamio commented 1 year ago

It works now after the update! Thanks so much!

LeFumiste commented 1 year ago

Yes, it works...🤓 Thx a lot 🙏

jonpeng commented 1 year ago

I had been using this plug-in since Feb 2022 with no issues, until Nov 9th my Ford Pass account was locked. I called Ford @ 1-833-385-0512 on Nov 10th, and got my Ford account uncloked today, Nov 15th. I was really enjoy with this plug-in, and had my Bronco intergrated with my Homekit smart home system. Unfortunately, I have to uninstalled it now. Hopefully there is a alternate solution soon.

I Re-installed v1.8.3 as of Jun 9th, 2023 to see if Ford will lock my Fordpass account again or not. Will keep everyone posted.

blaine07 commented 1 year ago

I, too, want to mess with this again but terrified my Ford account will get locked again.. :-(

mcneyens commented 1 year ago

Just create another. And then another and when you’re done you have them move all your points etc…. 😉😉😉Sent from my iPhoneOn Oct 29, 2023, at 9:13 AM, blaine07 @.***> wrote: I, too, want to mess with this again but terrified my Ford account will get locked again.. :-(

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

blaine07 commented 1 year ago

Just create another. And then another and when you’re done you have them move all your points etc…. 😉😉😉Sent from my iPhoneOn Oct 29, 2023, at 9:13 AM, blaine07 @.> wrote: I, too, want to mess with this again but terrified my Ford account will get locked again.. :-( —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.>

I thought I was never going to get my actual account unlocked; how long or convoluted is it to just get points moved lol? (Sorry, legit not being negative here… I realize it’s a risk we take here…)

mcneyens commented 1 year ago

Super easy. I called asked for someone in rewards and she merged all my accounts. WAY easier than getting an account reinstated. Sent from my iPhoneOn Oct 29, 2023, at 10:31 AM, blaine07 @.***> wrote:

Just create another. And then another and when you’re done you have them move all your points etc…. 😉😉😉Sent from my iPhoneOn Oct 29, 2023, at 9:13 AM, blaine07 @.> wrote: I, too, want to mess with this again but terrified my Ford account will get locked again.. :-( —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.>

I thought I was never going to get my actual account unlocked; how long or convoluted is it to just get points moved lol? (Sorry, legit not being negative here… I realize it’s a risk we take here…)

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

gagegreg commented 1 year ago

Is this issue still happening? I had my account locked last year, but didn't see this thread in the issues (although I did see it in the GitHub Repo description). I notice people are still getting their accounts locked. Is this common, or is there a known issue why its happening? Is anyone on the Ford Dev team aware of these issues? Is there a better way to integrate this Plugin into Fords ecosystem? Perhaps using their Oauth2? I now know a developer at Ford. Curious if that can help.

Brandawg93 commented 1 year ago

Using OAuth would require a client_id and secret which typically doesn't work for opensource code like this. That's why a lot of plugins use things like the web auth flow to circumvent it.

I spoke with a ford dev over a year ago who said they were looking to add Siri functionality to the app. I haven't heard or seen anything since. They've also changed their API so many times that I think they have more basic issues to worry about at the moment rather than focusing on new features. Their documentation still shows the old API system that was shut off with no notice.

To be honest, I don't think they care very much about others using this API and especially not opensource plugins like this. But if your ford dev friend wants to talk, I'd be happy to chat with someone again to make this plugin for robust.

logal727 commented 1 year ago

I just refreshed my HOOBS box and wanted to start using this plug-in again, is there still issues with accounts being locked with the new 180sec refresh rate?

BatMahn commented 1 year ago

I just refreshed my HOOBS box and wanted to start using this plug-in again, is there still issues with accounts being locked with the new 180sec refresh rate?

I don't think so? Been using mine for several months without any issues.

If worried, create a secondary account and use that. Then if it gets banned, you can fallback to your primary.

(poke around in the ford app, there's a way to "share" it with another person).

gagegreg commented 1 year ago

@BatMahn - Thanks, mate. This is a brilliant idea. Just updated mine. I already had 1 strike from Ford from a year ago. Was able to get the account back after a phone call with support, but have read some horror stories from others.

navigat0 commented 1 year ago

I too created a second account and installed v 1.9.0 directly on HomeBridge for the first time and immediately upon starting up I get the error “Auth failed with status: Undefined”. However the account I created to use with the plug-in still allows me to login tonFord.com and the FordPass app.  Only set username pass and region during install - all other options left default.  Added “name” and “vehicles” subse but still getting the error. Thoughts on why or how to resolve?On Nov 17, 2023, at 9:40 AM, Gregory Gage @.***> wrote: @BatMahn - Thanks, mate. This is a brilliant idea. Just updated mine. I already had 1 strike from Ford from a year ago. Was able to get the account back after a phone call with support, but have read some horror stories from others.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

bartolini9 commented 1 year ago

Hi, After FordPass plugin update to 1.9.0 I have the problem with login as well. Homebridge UI version v4.52.3

[11/20/2023, 12:13:15 PM] Homebridge v1.7.0 (HAP v0.11.1) (Homebridge 12A6) is running on port 51623. [11/20/2023, 12:13:15 PM] [FordPass] Auth failed with status: undefined

All seems to be good with my account, I can start/stop my Ford through FORDPASS app, also no problem with login via website.

prezmc commented 1 year ago

seeing the same messages as well.

Brandawg93 commented 1 year ago

I wonder if they changed their API again...I'll have to dig into the code when I get a chance.

mcneyens commented 1 year ago

Pretty sure they did. I was playing with the dev environment to also make Siri Shortcuts work. How do you go about getting “real access” to fords API. Seems like you need to sign up somewhere but I couldn’t figure it out. Made me think it was only for the “big time” developers. 🤣🤣🤣Sent from my iPhoneOn Nov 20, 2023, at 8:06 AM, Brandon McFarlin @.***> wrote: I wonder if they changed their API again...I'll have to dig into the code when I get a chance.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

Brandawg93 commented 1 year ago

for the “big time” developers

That's exactly what it's for. 😞 And that's the reason their API keeps changing. It's a constant game of cat and mouse for developers like myself just looking to make something convenient for the community.

Seems like you need to sign up somewhere but I couldn’t figure it out

There is no set way to sign up. Most plugins use the credentials of their iOS or android apps. It can be found in this project.

mcneyens commented 1 year ago

Great info thank you.  I dabble in too many things so when I couldn’t find what I was after I chased another 🐿️. 🤣🤣🤣Sent from my iPhoneOn Nov 20, 2023, at 9:52 AM, Brandon McFarlin @.***> wrote:

for the “big time” developers

That's exactly what it's for. 😞 And that's the reason their API keeps changing. It's a constant game of cat and mouse for developers like myself just looking to make something convenient for the community.

Seems like you need to sign up somewhere but I couldn’t figure it out

There is no set way to sign up. Most plugins use the credentials of their iOS or android apps. It can be found in this project.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

julienpmorand commented 1 year ago

If they changed the API again, it sorta baffles me how they have no regard to break existing API calls without notice...

stephondoestech commented 1 year ago

Hi, After FordPass plugin update to 1.9.0 I have the problem with login as well. Homebridge UI version v4.52.3

[11/20/2023, 12:13:15 PM] Homebridge v1.7.0 (HAP v0.11.1) (Homebridge 12A6) is running on port 51623. [11/20/2023, 12:13:15 PM] [FordPass] Auth failed with status: undefined

All seems to be good with my account, I can start/stop my Ford through FORDPASS app, also no problem with login via website.

Having the same issue so likely they updated their API. They are really the worst about anyone else using it.

bval commented 1 year ago

Brand new install of 1.9.0 and also receiving the auth failed with status undefined. There was a recent change in auth systems underpinning the Ford API, and the HA project seems to have figured it out (I have an HA install as well right now and it can auth just fine). I suspect this plugin will need to mirror their changes to continue to allow new installs to obtain authorization tokens.

LeFumiste commented 1 year ago

image

LeFumiste commented 1 year ago

The same issue at home 😥

Brandawg93 commented 1 year ago

I took a look to see how easy (or not) this would be to fix. It looks like yet another complete rewrite of the auth workflow...And from the looks of it, it will probably be changed again soon.

Just wanted to give everyone a heads up that this is still on my radar.

BatMahn commented 12 months ago

I took a look to see how easy (or not) this would be to fix. It looks like yet another complete rewrite of the auth workflow...And from the looks of it, it will probably be changed again soon.

Just wanted to give everyone a heads up that this is still on my radar.

All good! I'm sure all of us are appreciative of the efforts you've already made previously. If you fix it great. If not, all good too. I've gotten way more use out of the plugin than I ever thought I would, plus you've had to re-write it a few times because of Ford being a silly goose.

oskapt commented 11 months ago

Ford now requires 2FA for all logins. If you embed a TOTP system into the plugin, people can configure it with their 2FA auth secret and have both your plugin and their external TOTP generator produce the same codes. If someone chooses email or SMS as the auth method, then they're going to be SOL.

LeFumiste commented 11 months ago

What to do for working good please ???

BatMahn commented 11 months ago

What to do for working good please ???

You do nothing and wait for our buddy Brandawg to fix it (maybe).

Brandawg93 commented 11 months ago

Two problems:

  1. Ford is continually changing their API and now requiring 2FA which makes authentication infinitely more difficult for a plugin.
  2. I'm out of town and my vehicle went into power saving mode, so I literally can't test anything.  😬

In general, it's just getting cumbersome to keep fixing what Ford is breaking. If they would work with me, I'm sure we could make a very useful and stable plugin together, but their stance on opensource code is obvious with their recent changes.

But remember, this project is still opensource meaning that ANYONE can contribute. It doesn't have to be me. And I'm happy to assist anyone who attempts to work on this.

stephondoestech commented 11 months ago

Two problems:

  1. Ford is continually changing their API and now requiring 2FA which makes authentication infinitely more difficult for a plugin.
  2. I'm out of town and my vehicle went into power saving mode, so I literally can't test anything.  😬

In general, it's just getting cumbersome to keep fixing what Ford is breaking. If they would work with me, I'm sure we could make a very useful and stable plugin together, but their stance on opensource code is obvious with their recent changes.

But remember, this project is still opensource meaning that ANYONE can contribute. It doesn't have to be me. And I'm happy to assist anyone who attempts to work on this.

I'm in the process of getting familiar with the project so I can contribute. Do you have time to buff up the ReadME a little bit or can we set up some time to walk through the project? I started making some updates, but realized quickly I don't even know how to test this lol

Brandawg93 commented 11 months ago

Let's chat on discord. You can find me on the Homepage discord server.

BatMahn commented 11 months ago

In the meantime.. if you guys are desperate to have the Siri start/stop/lock working again. Fire up an instance of Home Assistant, install their Ford plugin, configure with your info.. then you can install the Homekit plugin and expose the ignition and lock back to Homekit.

Bit clunky, but I'll take it while waiting for this one to get patched up / rebuilt.

Screenshot 2024-01-08 at 8 53 52 AM Screenshot 2024-01-08 at 8 53 32 AM
Brandawg93 commented 11 months ago

Another great option is Scriptable

https://github.com/tonesto7/fordpass-scriptable