home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.14k stars 29.82k forks source link

BMW ConnectedDrive - MyBMW: Invalid authentication #97427

Closed mac22321 closed 1 year ago

mac22321 commented 1 year ago

The problem

I'm unable to add the integration to my Home Assistant instance (which otherwise is working with several integrations). I have verified that my username (email address) and password are the same ones being used in my BMW Connected Drive application, which authenticates and communicates with my car w/o error. I've tried providing my credentials using all three regions (I'm located in NA). My connected drive account is using a valid gmail address, if that matters). The only error than what's shown in the UI is what I posted below in the diagnostics section. Note that my password does include one "special character" (a plus symbol, "+") that's required by Connected Services.

image

Screenshot_20230728-124419

Screenshot_20230728-124510

What version of Home Assistant Core has the issue?

core-2023.7.3

What was the last working version of Home Assistant Core?

core-2023.7.3

What type of installation are you running?

Home Assistant OS

Integration causing the issue

bmw_connected_drive

Link to integration documentation on our website

https://www.home-assistant.io/integrations/bmw_connected_drive

Diagnostics information

Logger: bimmer_connected.api.authentication Source: components/bmw_connected_drive/config_flow.py:44 First occurred: July 27, 2023 at 1:02:21 AM (21 occurrences) Last logged: 12:27:00 PM

MyBMWAuthError due to HTTPStatusError: invalid_client - Client authentication failed (e.g., login failure, unknown client, no client authentication included or unsupported authentication method) MyBMWAPIError due to HTTPStatusError: True -

Example YAML snippet

Unable to install integration.

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 year ago

Hey there @gerard33, @rikroe, mind taking a look at this issue as it has been labeled with an integration (bmw_connected_drive) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `bmw_connected_drive` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign bmw_connected_drive` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


bmw_connected_drive documentation bmw_connected_drive source (message by IssueLinks)

rikroe commented 1 year ago

Just to double check: can you login with your credentials to the MyBMW website? We have had reports where logging in to the website force a password change, but logging in to the app didn't.

mac22321 commented 1 year ago

Hi, Yes I did access the BMW web portal trying to troubleshoot the issue. I've also changed my password a few times to see if one of the other special characters is the issue. My email address also contains a period - I removed it and that also made no difference (**@gmail.com instead of . **@gmail.com).

Please let me know if there's anything else I can try or any other logs I can provide to help debug the problem.

On Sat, Jul 29, 2023, 2:27 AM Richard Kroegel @.***> wrote:

Just to double check: can you login with your credentials to the MyBMW website? We have had reports where logging in to the website force a password change, but logging in to the app didn't.

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/97427#issuecomment-1656682446, or unsubscribe https://github.com/notifications/unsubscribe-auth/BBSTQQFE4V3JZIREIC6RDFLXSTJOLANCNFSM6AAAAAA235P7EA . You are receiving this because you authored the thread.Message ID: @.***>

mac22321 commented 1 year ago

BMW web portal access using the same credentials I'm trying to use to authenticate with for this integration.

Screenshot_20230729-073626

mac22321 commented 1 year ago

Please consider this issue closed. After attempting to authenticate many timrs over a 2 day period I was able to authenticate. Thank you.