itchannel / fordpass-ha

Fordpass integration for Home Assistant
301 stars 53 forks source link

Error fetching fordpass data: Error communicating with FordPass for 3XXXXXXXXXXXX #78

Closed ltoolio closed 3 years ago

ltoolio commented 3 years ago

Presented with the error message referenced in the subject line in my log files

Running Home Assistant version 2021.1.5 in a docker on Ubuntu 18.04

Vehicle is a 2018 Ford Fusion Energi Platinum.

Copied the fordpass v1.14 folder to my custom_components folder as I do not run HACS (which may be the source of my issue).

Added FordPass integration via UI.

Authenticated with email, password, VIN and Region.

Reported success, but no entities show up under the integration.

I do not see a "fordpas.refresh_status" under Services, so cannot run that.

Have deleted, rebooted to no avail.

Screenshot from 2021-02-02 23-07-10

Screenshot from 2021-02-02 23-21-51

itchannel commented 3 years ago

Can you add the following to your configuration and restart home assistant. It will then log all the debug calls to the main log to see why it isn't working for you.

logger:
  logs:
    custom_components.fordpass: debug
theOrakle commented 3 years ago

Try 1.12... I have had the same issue after 1.12 (both 1.13 & 1.14), just have not logged a bug yet.

1.14 was just released and I thought I would try, but after everting from 1.14 back to 1.12 it works again.

ltoolio commented 3 years ago

Debug lines are below. Also tried downgrading to 1.12 (deleted prior fordpass folder, added 1.12 folder) with the same result:

2021-02-03 11:37:43 DEBUG (MainThread) [custom_components.fordpass] username
2021-02-03 11:37:43 DEBUG (MainThread) [custom_components.fordpass] password
2021-02-03 11:37:43 DEBUG (MainThread) [custom_components.fordpass] vin
2021-02-03 11:37:43 DEBUG (MainThread) [custom_components.fordpass] region
2021-02-03 11:37:43 DEBUG (MainThread) [custom_components.fordpass] North America & Canada
2021-02-03 11:37:43 DEBUG (SyncWorker_13) [custom_components.fordpass.fordpass_new] Token is valid, continuing
2021-02-03 11:37:47 WARNING (MainThread) [custom_components.fordpass] 'vehiclestatus'
2021-02-03 11:37:47 WARNING (MainThread) [custom_components.fordpass] Error communicating with FordPass for 3XXXXXXXXXXXXXXX4
2021-02-03 11:37:47 ERROR (MainThread) [custom_components.fordpass] Error fetching fordpass data: Error communicating with FordPass for 3XXXXXXXXXXXXXXX4
2021-02-03 11:37:47 DEBUG (MainThread) [custom_components.fordpass] Finished fetching fordpass data in 3.262 seconds
itchannel commented 3 years ago

@ltoolio Is that output from the latest version or 1.12 as its missing the latest debug info.

Also can you tell me the model and age of your car. As it looks like its failing on retrieving the vehicle status array from Ford.

ltoolio commented 3 years ago

@itchannel - I thought it was from the 1.14 install, but may have been from the 1.12 test that @theOrakle suggested (didn't work for me).

Here were my steps to validate that I was using the 1.14 version:

One thing I did not expect - after I did the deletion/reboot/copy 1.14/reboot/authenticate, my prior configured instance of fordpass reappeared. I was expecting to need to re-auth.

I'm assuming that means something is cached, but not sure where to clear it out for further testing.

My vehicle is a 2018 Ford Fusion Energi Platinum. All software updates AFAIK have been applied to it.

2021-02-03 20:18:13 DEBUG (MainThread) [custom_components.fordpass] username
2021-02-03 20:18:13 DEBUG (MainThread) [custom_components.fordpass] password
2021-02-03 20:18:13 DEBUG (MainThread) [custom_components.fordpass] vin
2021-02-03 20:18:13 DEBUG (MainThread) [custom_components.fordpass] region
2021-02-03 20:18:13 DEBUG (MainThread) [custom_components.fordpass] North America & Canada
2021-02-03 20:18:15 WARNING (MainThread) [custom_components.fordpass] 'vehiclestatus'
2021-02-03 20:18:15 WARNING (MainThread) [custom_components.fordpass] Error communicating with FordPass for 3XXXXXXXXXXXXXXX4
2021-02-03 20:18:15 ERROR (MainThread) [custom_components.fordpass] Error fetching fordpass data: Error communicating with FordPass for 3XXXXXXXXXXXXXXX4
2021-02-03 20:18:15 DEBUG (MainThread) [custom_components.fordpass] Finished fetching fordpass data in 2.304 seconds
2021-02-03 20:18:20 DEBUG (MainThread) [custom_components.fordpass] username
2021-02-03 20:18:20 DEBUG (MainThread) [custom_components.fordpass] password
2021-02-03 20:18:20 DEBUG (MainThread) [custom_components.fordpass] vin
2021-02-03 20:18:20 DEBUG (MainThread) [custom_components.fordpass] region
2021-02-03 20:18:20 DEBUG (MainThread) [custom_components.fordpass] North America & Canada
2021-02-03 20:18:20 DEBUG (SyncWorker_25) [custom_components.fordpass.fordpass_new] Token is valid, continuing
2021-02-03 20:18:20 WARNING (MainThread) [custom_components.fordpass] 'vehiclestatus'
2021-02-03 20:18:20 WARNING (MainThread) [custom_components.fordpass] Error communicating with FordPass for 3XXXXXXXXXXXXXXX4
2021-02-03 20:18:20 ERROR (MainThread) [custom_components.fordpass] Error fetching fordpass data: Error communicating with FordPass for 3XXXXXXXXXXXXXXX4
2021-02-03 20:18:20 DEBUG (MainThread) [custom_components.fordpass] Finished fetching fordpass data in 0.258 seconds
itchannel commented 3 years ago

Does your car have an onboard modem and work with the fordpass mobile app?

2018 models don't all have the latest onboard modem for support so might be the reason for the error.

the line 2021-02-03 20:18:20 WARNING (MainThread) [custom_components.fordpass] 'vehiclestatus' indicates that the vehiclestatus array containing all the car information isn't being populated by Ford by the looks which is generally a non supported car.

ltoolio commented 3 years ago

Going to close this one out.

For future searches:

FordPass can be setup for a plug-in hybrid like my '18 Fusion Energi. However, the Fu has an additional app called MyFord Mobile for the remote controls.

So....no dice for me. :(