fordpass-ha icon indicating copy to clipboard operation
fordpass-ha copied to clipboard

Locking issue

Open J-shw opened this issue 1 year ago • 7 comments

My lock status seemed to have stopped working a few updates ago. It always shows 'unlocked' and if I try to lock the car using HA it throws this error:

File "/config/custom_components/fordpass/fordpass_new.py", line 264, in auth_step5
    if response.text is not None:
       ^^^^^^^^
UnboundLocalError: cannot access local variable 'response' where it is not associated with a value

Followed by this if I try again:

File "/config/custom_components/fordpass/fordpass_new.py", line 281, in auth
    raise Exception("Step 1 has reached error limit")
Exception: Step 1 has reached error limit

It started working when the 'double lock' feature was added. It would show my my car being locked, and would allow me to unlock/lock using HA. However it soon broke after more recent updates.

I have tried deleting the integration and redownloading it, logging out/in.

Also, thanks for all your hard work!

J-shw avatar Nov 01 '23 20:11 J-shw

Following, I have the same issue. I removed my vehicle and re-added it through the integration and I no longer have the lock/unlock control. It seems one of the updates broke/removed that control.

Very much appreciate this integration. Having automatically locking doors through HA has been amazing, I'd love to have it back.

danantonson avatar Nov 04 '23 16:11 danantonson

@danantonson Can you please provide me with the logs from HA, these should indicate why the sensor wasn't added. As the control is working for a lot of other users I expect it's something with your setup or vehicle so need to narrow down the cause.

Can you provide the following information:

  • Model and Year of vehicle
  • Version of Fordpass integration
  • Version of Home Assistant including install type e.g. HAOS, docker
  • What is missing e.g. door entity

If you have time debug logging would also be beneficial https://github.com/itchannel/fordpass-ha/wiki/Obtaining-Integration-Logs

itchannel avatar Nov 05 '23 00:11 itchannel

Thanks for this @itchannel.

Model and Year of vehicle: 2018 Ford Escape Version of Fordpass integration Version 1.59 Version of Home Assistant including install type e.g. HAOS, docker VMWare VM What is missing e.g. door entity lock.fordpass_doorlock

I did the debugger; I need to sanitize the file, but the relevant lines I see are:

2023-10-28 22:06:50.269 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities lock.fordpass_doorlock are missing or not currently available 2023-11-05 06:47:34.459 DEBUG (MainThread) [custom_components.fordpass.lock] Ford model doesn't support remote locking

Seeing that remote lock isn't supported prompted me to dig into my FordPass app (I never use it because of this integration), and I noticed that I'm getting an error when I try to lock the doors through that. I wonder if that has something to do with it. I'll see if I can get on the line with Ford Tech. Support today and provide an update here.

image

danantonson avatar Nov 05 '23 12:11 danantonson

@danantonson Check your sync settings in your vehicle and make sure it's up to date to support the new Ford API. Also check your privacy settings in the vehicle and make sure connected is enabled.

itchannel avatar Nov 05 '23 21:11 itchannel

Model and Year of vehicle: 2017 Ford Escape TI Version of Fordpass integration Version 1.63 Version of Home Assistant including install type e.g. HAOS, Proxmox What is missing e.g. door entity lock.fordpass_doorlock

I am also missing the doorlock. Everything else seems to work, love the ability to automate preheating my car in the morning. Unlike the previous commenter, I can still use the FordPass app to unlock and lock my car.

I get the same error in logs. 2023-11-27 20:02:20.035 DEBUG (MainThread) [custom_components.fordpass.lock] Ford model doesn't support remote locking

I have no idea if this is a contributing factor, but two of the attributes of fordpass_doorStatus (hood and inner tailgate) always report "UNKNOWN".

rkeberhardt avatar Nov 28 '23 02:11 rkeberhardt

Model and Year of vehicle: 2017 Ford Escape TI Version of Fordpass integration Version 1.63 Version of Home Assistant including install type e.g. HAOS, Proxmox What is missing e.g. door entity lock.fordpass_doorlock

I am also missing the doorlock. Everything else seems to work, love the ability to automate preheating my car in the morning. Unlike the previous commenter, I can still use the FordPass app to unlock and lock my car.

I get the same error in logs. 2023-11-27 20:02:20.035 DEBUG (MainThread) [custom_components.fordpass.lock] Ford model doesn't support remote locking

I have no idea if this is a contributing factor, but two of the attributes of fordpass_doorStatus (hood and inner tailgate) always report "UNKNOWN".

I'd recommend checking the Sync version in your vehicle and make sure it's up to date. I've seen the non supported issue on 2017 vehicles before and sometimes a Sync update enables the feature and unfortunately on some models they've just dropped support for it in the API.

itchannel avatar Nov 28 '23 03:11 itchannel

Has anyone made any progress on this or found any potential solutions? I updated my SYNC3 system, did a factory reset on that after the update which forced me to reauthenticate and setup FordPass itself. I then reinstalled the HACS FordPass integration and, unfortunately, that didn't seem to make a difference. All I have is the ability to do the ignition; ability to lock still isn't there. Any other ideas or suggestions?

Capture

danantonson avatar Feb 05 '24 20:02 danantonson