Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Whirlpool Integration "Authentication Failed" #124244

Open
LangJV opened this issue Aug 19, 2024 · 9 comments
Open

Whirlpool Integration "Authentication Failed" #124244

LangJV opened this issue Aug 19, 2024 · 9 comments

Comments

@LangJV
Copy link

LangJV commented Aug 19, 2024

The problem

I'm trying to configure the whirlpool integration. I have my username (email address) and password. These work without issue on the whirlpool.com website, as well as on the whirlpool mobile app (android). On both of these i can also see my appliances and get notifications via the app when wash is done, for example.

Whenever I attempt this in homeassistant - I type my credentials, select my Region (US) and Brand (Whirlpool) and i simply get an "Authentication Failed" message in the UI. In the logs - I see:
2024-08-19 12:12:57.252 ERROR (MainThread) [whirlpool.auth] Authentication failed
2024-08-19 12:16:14.351 ERROR (MainThread) [whirlpool.auth] Authentication failed
2024-08-19 12:18:16.778 ERROR (MainThread) [whirlpool.auth] Authentication failed
2024-08-19 12:18:31.328 ERROR (MainThread) [whirlpool.auth] Authentication failed

I "had" a pretty complex/long password generated via a password generator, so went back and made it much simpler/shorter - while still meeting the sites security requirements, but that didn't seem to change the behavior at all. I get the same error/issue.

I see guides on enabling debug logging but they always involve going to the installed plugin to enable. I cannot get it "installed" because i cannot complete (or skip) the configuration wizard. Ditto for the diagnostics data requested. If there's a way to get that anyways, id love to, but following this at least (and a few others) isnt pointing me to how to do it for a "not yet setup" integration: https://www.home-assistant.io/docs/configuration/troubleshooting/

What version of Home Assistant Core has the issue?

2024.8.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

whirlpool

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2024-08-19 12:12:57.252 ERROR (MainThread) [whirlpool.auth] Authentication failed
2024-08-19 12:16:14.351 ERROR (MainThread) [whirlpool.auth] Authentication failed
2024-08-19 12:18:16.778 ERROR (MainThread) [whirlpool.auth] Authentication failed
2024-08-19 12:18:31.328 ERROR (MainThread) [whirlpool.auth] Authentication failed

Additional information

No response

@home-assistant
Copy link

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

Code owner commands

Code owners of whirlpool 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 whirlpool Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


whirlpool documentation
whirlpool source
(message by IssueLinks)

@mkmer
Copy link
Contributor

mkmer commented Aug 19, 2024

They (whirlpool) are a bit odd on which "brand" to use - try using maytag for the brand in the US.

@LangJV
Copy link
Author

LangJV commented Aug 19, 2024

Thanks for the suggestion @mkmer !!

I tried that (as well as all other brand/region combinations just to rule it out) but wasn't able to get anything else in terms of a different error or behavior - all failed identically

2024-08-19 13:13:55.709 ERROR (MainThread) [whirlpool.auth] Authentication failed
2024-08-19 13:14:08.966 ERROR (MainThread) [whirlpool.auth] Authentication failed
2024-08-19 13:14:22.563 ERROR (MainThread) [whirlpool.auth] Authentication failed
(this isn't all failures - just the last few)

Would enabling "global" debug logging for homeassistant possibly show more detailed info that might be useful?

@mkmer
Copy link
Contributor

mkmer commented Aug 19, 2024

Enable debug on the integration, after failed attempt "disable" debug and share the file.
Also share the "diagnostics" if there are any -> 3 dots on the integration, then download diagnostics.

@mkmer
Copy link
Contributor

mkmer commented Aug 20, 2024

I suppose you should try KitchenAid as well, maybe...

@LangJV
Copy link
Author

LangJV commented Aug 26, 2024

Apologies for the delay in response. This may be a basic question, but how do i enable debug logging?

I can see here: https://www.home-assistant.io/docs/configuration/troubleshooting/ to do it from the integration's settings itself. Which i've done before for integrations that are already setup. This one never shows up in integrations because i can't complete the "setup wizard" so its never "installed". I can only "add integration" and then never complete it.

I've googled around on and off for a few days, but can't seem to find a way around this to enable debug logging for an integration before "adding it"

Would i want to enable debug logging globally here? Would this accomplish the logging level I need to reproduce this?

@LangJV
Copy link
Author

LangJV commented Sep 1, 2024

I dove down into this a bit more. I "think" i found the logger component that can be set to enable logging ahead of time.... But i can't seem to figure it out?

With this configuration:

# Logger Configuration for custom stuff
logger:
  default: info
  logs:
    homeassistant.components.whirlpool: debug
    homeassistant.components.whirlpool.auth: debug

This is the logging i get:

2024-09-01 09:25:44.698 INFO (Recorder) [homeassistant.components.sensor.recorder] Detected new cycle for sensor.daily_usage_cost, last_reset set to 2024-09-01T13:24:49.035403+00:00 (old last_reset 2024-09-01T13:19:21.249154+00:00)
2024-09-01 09:25:44.699 INFO (Recorder) [homeassistant.components.sensor.recorder] Detected new cycle for sensor.rt_ac68u_f2f8_b_received, value dropped from 4279853559.0 to 47556858.0, triggered by state with last_updated set to 2024-09-01T13:24:47.218331+00:00
2024-09-01 09:25:46.477 INFO (SyncWorker_14) [homeassistant.loader] Loaded whirlpool from homeassistant.components.whirlpool
2024-09-01 09:25:49.128 INFO (MainThread) [homeassistant.components.mqtt.client] MQTT client initialized, birth message sent
2024-09-01 09:26:09.615 INFO (MainThread) [whirlpool.auth] Using user/pass in auth body
2024-09-01 09:26:10.650 INFO (MainThread) [whirlpool.auth] Using user/pass in auth body
2024-09-01 09:26:11.215 ERROR (MainThread) [whirlpool.auth] Authentication failed

It seems like i don't have the component specified correctly as i only get "info" log levels, which is my default
I tried enabling "debug" as the default as well, but evertthing began timing out - my guess is because the log level globally was too high to keep up? Can someone help me with the specific "component" string I should pass here to get actual "debug" logs for the whirlpool component/integration here?

@LangJV
Copy link
Author

LangJV commented Sep 1, 2024

Think i got the proper logs finally.....

This logger config:

# Logger Configuration for custom stuff
logger:
  default: error
  logs:
    homeassistant.components.whirlpool: debug
    homeassistant.components.whirlpool.auth: debug
    whirlpool: debug
    whirlpool.auth: debug

These logs:

2024-09-01 09:39:40.637 INFO (MainThread) [whirlpool.auth] Using user/pass in auth body
2024-09-01 09:39:41.703 DEBUG (MainThread) [whirlpool.auth] Auth status: 401
2024-09-01 09:39:41.703 INFO (MainThread) [whirlpool.auth] Using user/pass in auth body
2024-09-01 09:39:42.268 DEBUG (MainThread) [whirlpool.auth] Auth status: 423
2024-09-01 09:39:42.268 ERROR (MainThread) [whirlpool.auth] Authentication failed

401 seems pretty normal - but the 423 is interesting? It seems like it tries two separate "auth" methods, but im not clear on what the difference is. I cna confirm i still have no issues logging into (and out of) the whirlpool website, and the whirlpool android app, using the same username and password.

For giggles i tried a made up/invalid username - and got "401" for both auth attempts in the logs.

@LangJV
Copy link
Author

LangJV commented Sep 7, 2024

I attempted another failed test:

  • Upgraded to Latest Homeassistant (2024.9.1)
  • Created a BRAND NEW account on whirlpool.com
  • Confirmed i could login at whirlpool.com with my user/pass - Didn't even add any appliances to this account yet, just an empty account
  • attempted login via homeassistant integration using all 6 combinations (US/EU - Whirlpool/Maytag/Kitchenaid)

All 6 combinations were unable to login, and returned the 401/423 Errors detailed above.

Is there additional logging beyond debug i can enable to get more specific info/data?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants