Open dennis8989 opened 3 years ago
I have the eame error. I’m assuming it’s because Dyson has switched to 2-factor authentication
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.
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 fromDYSON_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.
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