itchannel / fordpass-ha

Fordpass integration for Home Assistant
301 stars 53 forks source link

Ford Pass stopped working #58

Closed jasonAspireWPG closed 3 years ago

jasonAspireWPG commented 3 years ago

The integration was working but since reinstalling HA I can't get integration to work. Below is the log entry.

Logger: custom_components.fordpass Source: helpers/update_coordinator.py:166 Integration: FordPass (documentation, issues) First occurred: 4:35:31 PM (1 occurrences) Last logged: 4:35:31 PM

Error fetching fordpass data: Error communicating with FordPass for 1*****KFB86523

itchannel commented 3 years ago

Did you reinstall HA to the same box? Has the integration been installed and then getting the error or are you getting that error when trying to install it entering in your details?

pbnj4640 commented 3 years ago

I am seeing some similar results. I have not done any new installations.

Logger: custom_components.fordpass Source: custom_components/fordpass/init.py:162 Integration: FordPass (documentation, issues) First occurred: 12:20:05 PM (7 occurrences) Last logged: 12:24:04 PM

Error communicating with FordPass for 1****LGC06114

V. 1.10 was good, since then, I am seeing this issue. If I interact with my vehicle from fordpass app, the HA entities will sync up, then eventually get dropped again.

jasonAspireWPG commented 3 years ago

It was installed on the same Synology Diskstation using Docker. Would it be the move from Hass.Io to the official HA docker image?

The installation was working perfectly until this change

On Sat, 12 Dec 2020 at 20:53, itchannel notifications@github.com wrote:

Did you reinstall HA to the same box? Has the integration been installed and then getting the error or are you getting that error when trying to install it entering in your details?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/itchannel/fordpass-ha/issues/58#issuecomment-743939319, or unsubscribe https://github.com/notifications/unsubscribe-auth/AISZI5HJUUIAJ7X4QGTTXR3SUQUCPANCNFSM4UYXRLGQ .

itchannel commented 3 years ago

Can I confirm you have both selected the correct region for the application. As the app dropping etc is a result of the region not being set correctly ?

jasonAspireWPG commented 3 years ago

I can confirm that. I reinstalled it and ensured it was set to North America and Canada

On Thu., Dec. 17, 2020, 7:28 p.m. itchannel, notifications@github.com wrote:

Can I confirm you have both selected the correct region for the application. As the app dropping etc is a result of the region not being set correctly ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/itchannel/fordpass-ha/issues/58#issuecomment-747809237, or unsubscribe https://github.com/notifications/unsubscribe-auth/AISZI5BDDQTIULJP3GNXTFLSVKV2ZANCNFSM4UYXRLGQ .

itchannel commented 3 years ago

I'll install a copy of the HA docker image today/tomorrow and have a play to check as a couple of people seem to have issues with the latest docker image from HA.

itchannel commented 3 years ago

So I can't even sign in using the HA docker image and the integration. It appears to be an issue with the python libraries installed on the latest docker image as it's causing URL's to timeout

requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.mps.ford.com', port=443): Max retries exceeded with url: /api/oauth2/v1/token (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ff731dbbd90>: Failed to establish a new connection: [Errno -3] Try again'))

itchannel commented 3 years ago

So I can fix the issue by entering the docker container and changing the DNS server in /etc/resolv.conf to point to 1.1.1.1 or some other DNS server. So it seems like a docker issue. Can anyone else who is having issues try that for me.

itchannel commented 3 years ago

The docker image from HA seems to have dns issue from what I can tell. So not something I can fix from my end as hardcoding an IP is a bad idea considering the fordpass API uses Azures APP gateway

image

sminker81 commented 3 years ago

Im getting the same error. If I reload the integration it starts working right away. About 4-8 hours later I get the error again and entities show as unavailable.

sminker81 commented 3 years ago

I dont know how close this is to a HomeBridge plugin, but they had an update recently that addressed something similar.

sminker81 commented 3 years ago

Is this what you are talking about changing? I can give it a whirl as long as the whole Matrix doesnt come down with it lol.

Screen Shot 2021-01-01 at 7 46 01 PM
itchannel commented 3 years ago

@sminker81 Please try the new update and let me know if it fixes it for you

pbnj4640 commented 3 years ago

This is working for me now.

jasonAspireWPG commented 3 years ago

Worked for me! Appreciate your efforts

On Mon., Jan. 11, 2021, 3:05 p.m. pbnj4640, notifications@github.com wrote:

This is working for me now.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/itchannel/fordpass-ha/issues/58#issuecomment-758222133, or unsubscribe https://github.com/notifications/unsubscribe-auth/AISZI5GMUYDAZD5G4ZHFX7TSZNRXZANCNFSM4UYXRLGQ .

itchannel commented 3 years ago

Awesome. Will close this issue now