Open troykelly opened 3 years ago
Yes this has something to do with changes in Dyson API. I'm a little busy recently. It'll be good if someone can somehow find out how the new login process works.
gotta hate it when dyson changes the login process again, this is like the 2nd time they did this within this year.
I just installed this addon and am having the same authentication issue with the Cloud
Getting the same error trying to set up Dyson Cloud too 😞 They keep changing that login api a lot.
I think I found a fix, the Dyson login changed, and requires a "2FAish" setup where they send you a code and then you use your password and code to sign. Log out of the mobile app, close the app, then log back in using the code provided. I did that and my integration was able to login automatically without me manually logging on . I found this answer in a different dyson repository. I guess their 2FA is a one time thing
For anyone still dealing with this Dyson login issue, I've got a fix implemented over in a PR over here: https://github.com/libdyson-wg/libdyson-neon/pull/6. If anyone wants to help test it, you can clone https://github.com/dotvezz/libdyson-neon/tree/task/fix-account-login and run the get_devices.py
script!
Short version I did some reverse-engineering of the Android mobile app. I discovered a mysterious GET
request it was making to a provisioning API. Turns out, just by making that request (and even throwing away its response - no session tokens or cookies to hold onto), it unlocks something on the server side, and allows the rest of the ogin requests from your IP address. I've included more thoughts about this in the code comments and PR description for anyone who is curious.
If it proves robust enough in testing, I'll get it merged and tag a new release of https://github.com/libdyson-wg/ha-dyson-cloud to use the updated new login flow. To use it, you'll need to migrate to the new repositories in your HACS setup, there's a simple how-to in the readme here: https://github.com/libdyson-wg/ha-dyson#migration-from-shenxnha-dyson. Users have reported painless migrations so far!
Quick edit: For anyone curious about the "libdyson-wg" organization those new repositories are on, feel free to check out #20 for more information!
Receiving the error below (with a correct email address)