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

unable to login to Dyson account #40

Open
dennis8989 opened this issue Jul 8, 2021 · 3 comments
Open

unable to login to Dyson account #40

dennis8989 opened this issue Jul 8, 2021 · 3 comments

Comments

@dennis8989
Copy link

I try to log in dyson account like below code.
dyson_account = DysonAccount("XXX@hotmail.com","123456","US")
logged = dyson_account.login()
if not logged:
print('Unable to login to Dyson account')
exit(1)

but it shows unable to login to Dyson account.
Is the account and password the same as APP Dyson link?
or anything wrong?
Thanks

@azizcontractor
Copy link

azizcontractor commented Nov 24, 2021

I have the eame error. I’m assuming it’s because Dyson has switched to 2-factor authentication

@Yawnder
Copy link

Yawnder commented Dec 11, 2021

The way to work around that that I read somewhere (and worked for me) was to logout in the App, then login, answer the challenge, and try once again with the code. Answering the challenge in the app basically suspends the MFA for a few minutes.

@pangeli
Copy link

pangeli commented Mar 13, 2022

Is this library still working with Dyson 2FA? I tried the workaround from @Yawnder but still cannot login.

I've also tried changing the end point from DYSON_API_URL = "api.cp.dyson.com" to DYSON_API_URL = "appapi.cp.dyson.com" and I passed the language code as a country code (ie. GB).

I'm wondering if it would be possible to pass the OTP into the request in the DysonAccount class.

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

No branches or pull requests

4 participants