home-assistant-garmin_connect icon indicating copy to clipboard operation
home-assistant-garmin_connect copied to clipboard

CNInvalid authentication

Open realall opened this issue 1 year ago • 6 comments

garmin fenix5 APAC CN use email and password show Invalid authentication

realall avatar May 07 '23 17:05 realall

@realall What country did you set in General Home Assistant settings? And can you test with latest version 0.2.16?

cyberjunky avatar May 22 '23 09:05 cyberjunky

tested with version 0.2.16, still show Invalid authentication.

I tried modifying the file (custom_components/garmin_connect/init.py) Line 67: change the self.in_china = True , reboot HA, It still show Invalid authentication

douglasleft avatar Jun 06 '23 07:06 douglasleft

@douglasleft The integration check for certain Country selected and set the correct value (if you run one of the latest versions) Can you tell me which one you have selected? I cannot verify if something changed, it could be that Garmin changed something in their API which stopped it from working, or something er is wrong (temp block on your Garmin Connect account or something like that...

cyberjunky avatar Jun 08 '23 10:06 cyberjunky

config-general - Country - 中国 (China),I can log in to my account at https://connect.garmin.cn/

douglasleft avatar Jun 08 '23 12:06 douglasleft

Ok, I have a workaround for this. Modify line 43 of config_flow.py, change: api = Garmin(username, password) to api = Garmin(username, password, True)

It worked for me.

hellkun avatar Aug 06 '23 03:08 hellkun

Ok, I have a workaround for this. Modify line 43 of config_flow.py, change: api = Garmin(username, password) to api = Garmin(username, password, True)

It worked for me.

Thanks,It worked~

douglasleft avatar Aug 07 '23 02:08 douglasleft