-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Get credentials #5
Comments
Thx! But I am still stuck on getting the credentials. I am running Home Assistant on a PI4, and have no idea how to get them. Any suggestions? :) |
@ripburger you need to run that python code snippet (quoted above) after installing the libpurecool library from bfayers (linked above).
|
@proatwork I keep getting Any tips? |
Hey @soffes |
@proatwork I tried this: $ python3 -m pip install https://github.com/bfayers/libpurecool/archive/fix_auth.zip
$ python3 dyson.py
I verified that the credentials I used work in the iOS app and can control my fan. Any help would be awesome. Super appreciate your time on this! :) |
|
Hello, I have the same problem, I reproduced what you described ☝️ and I get "Unable to login to Dyson account". I still can logout and login to the mobile app with those credentials. I also tried with a new account without success. Are there any other step to take into account ? |
@krazar you might want to make sure that you have the |
That's really strange. I can connect with my account on the dyson website (from my region) |
Same here @krazar. The |
Not able to get credentials here, either - I finally managed to get I have tried the mobile login/logout process already.
|
ok, i'm new to this don't shoot me, but when i enter into the bash session inside my home assistant docker session, i've tried to execute the bfayers python code, except i get the following:
is the path for the package correct: /usr/local/lib/python3.8/site-packages/libpurecool I think I am missing something here to get the credential info, any help is appreciated! |
@kintaroju I managed to get Still having a problem logging in, but that's a different problem. |
@eiddor i am guessing it's related to the new 2FA issue? lol |
Yeah, that's what I suspect. |
@eiddor totally hear you. I think if the developer can somehow trigger the 2FA email and integrate the 2FA value I think we can be in the clear. |
That may work ok for Dyson Local and grabbing the credentials once, but I don't know how well it would scale for the native HA Dyson implementation or @shenxn's Dyson Cloud. I'm not a dev, so maybe I'm missing something - I think it's more a matter of Dyson catching their API up with their mobile app. |
@eiddor , you are right, but let's see what developer can do. if the developer can figure this out, big thank you in advance! |
I manually copied the github folder and when I go into the libepurcool folder and run dyson.py I get this. C:\Python\libpurecool\libpurecool>python dyson.py |
@monsieurlatte you're not supposed to run that :) |
Thanks, that helps a ton, figured it out, now I just get the same as everyone else with the whole unable to log into dyson account. |
I also managed to get the credentials by using my android phone. I used this to monitor the Dyson app for a couple of seconds (by pressing the triangle icon with the |
that's awesome, dont see anything for iOS in my first look through the app store. |
Haven't tested, but maybe you can make it work with Bluestacks |
@monsieurlatte this might help if you've used Wireshark before https://stackoverflow.com/a/8512455 |
I'll work on the new 2FA over the weekend. Hopefully that will fix the problem. |
|
So here's something, I updated the App on my phone, opened the dyson link app on the phone made sure it connected and all that. Then I just added in the HACS Dyson Cloud integration and now it works? Seems like you need the new Dyson app to trigger something to allow it to work. |
Confirmed! Just opening the app and then rerunning the script with no changes fixed it for me! Thanks so much ❤️ |
I've added 2FA support to |
Now, I can get the credentials. |
Just tried your libdyson and it works like hot cakes. Do you plan to integrate it with your Dyson local implementation @shenxn to simplify the process? |
@kintaroju Use |
hey, nice managed to get my dysons fans connected using the packet readrer on my Android phone. Question, for some, I have: Dyson Purifier Hot+Cool Formaldehyde HP09
|
How did you do this? I have been unable to get credentials using libdyson after months of trying. I have credentials for Homebridge, but there doesn't seem to be a way to convert them to work in Homeassistant. |
Scroll up to the instructions from monsierlatte, and that's what I followed. Once I got the username and credentials, sometimes I had to try a couple of times before it actually submitted successfully probably due to Wi-Fi connection to the fan. |
cheers. I am on iOS so was looking for it's equivalent, but Apple won't let you do it (security). |
Probably, You may wish to make friends with Android people LOL |
Ha, yes! 👍 |
Maybe this post helps you: #178 |
Update:
@shenxn: #5 (comment)
Old
Not an actual issue, but wanted to make this available for other people
I've managed to get credentials in two ways:
1. Using
libpurecool
Use this fork of libpurecool (fix_auth branch): https://github.com/bfayers/libpurecool/tree/fix_auth
python3 -m pip install https://github.com/bfayers/libpurecool/archive/fix_auth.zip
whatever.py
python3 whatever.py
2. Using an Android phone
You can probably do this with an iOS device, but I haven't tested (https://stackoverflow.com/a/8512455)
Packet Capture
app from Google Playstore (https://play.google.com/store/apps/details?id=app.greyshirts.sslcapture&hl=en&gl=US)1
and choose the Dyson Link appThe text was updated successfully, but these errors were encountered: