-
-
Notifications
You must be signed in to change notification settings - Fork 122
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
Error: Unable to log in, check credentials #50
Comments
The problem might be caused by an expired token, I plan to add a fix for it. |
Is there something I can try now? |
I don't think so. Does everything work after HA restart? |
No how often I restart I keep looking at the ssecurity error |
You can check if this tool works: Tokens extractor |
Yes that works fine.
|
After running the tokens extractor from the same host as my home assistant it works fine now :) |
That's weird |
Hi! I have exactly the same problem, it started a couple of days ago. I will also be very grateful for the solution! |
For information - it worked again today, but I did not change anything. |
Same problem here: KeyError: 'ssecurity' I used 'Tokens extractor' in another machine in the network and I was able to log in and retrieve the token that I am trying to use in hassio. I am able to control the vacuum using another component but not this one. I will wait a few days as it apparently worked for others... |
Getting same error: |
Same here, just moved from Rasperry pi to a Ondroid n2+. 2021-01-01 11:59:36 ERROR (MainThread) [homeassistant.helpers.entity] Update for camera.my_vacuum_camera fails |
Having the same issue as described above on a Synology NAS, with Home Assistant running in a Docker container. Edit: I tried logging in with email address and user ID, both with same result. |
Please check if problem still exists in v1.0.2 |
Updated to v1.0.2, now getting the following errors in my Home Assistant:
|
Latest version resolved my log in issues
|
Can you check the latest commit on master (not included in v1.0.3)? It will not solve the problem, but there will be no more exceptions in logs |
Hi, That's right. It's now just showing the following:
|
@michelotten great, thanks! From the next release only first failed login attempt in series will be logged in logs |
@PiotrMachowski, is there anything I can still try in getting this issue sorted? |
@michelotten it's hard to say, it seems that the issue is somewhere outside my code, maybe it is caused by versions of dependencies... Can you provide some information about python version/dependencies versions? |
@PiotrMachowski My HomeAssistant Docker container is using Python 3.8.7. Which dependencies are you interested in? I can look these up. |
Please check your credentials using token extractor |
|
@SerialVelocity, @Ton1965 Did you have to do anything using URL from stage 1 or just stage 2 is needed? |
Afaik, just stage 2. Might be worth printing something about having to use the same external IP address as Home Assistant though since that is where most people will hit this bug (if you use the same IP, someone logging in to the website will whitelist the IP for example) |
@SerialVelocity so user just have to go to URL provided in |
I have the same experience. Stage two only was needed. I just copied it to my browser address box and it asked me whether I wanted to be sent a confirmation short message or E-mail. After I got the message I just entered the code they sent me and map extraction started to work. It did not even require HA reloading. |
@SerialVelocity, @Ton1965 Thank you! |
One more comment here. I have encountered this re-authentication request from Xiaomi once more today. The latest cloud extractor version does a good job of putting the required URL into the log (thanks a lot for that). The only problem is it now does it too often. I had several thousands of these messages when I noticed it. I have restarted my HA and got 29 messages in three and a half minutes! Seems too much to me. And probably such often attempts of authentication will make Xiaomi unhappy as well. Besides that it looks like you need the latest URL, they get stale pretty fast. And it is difficult to locate and use it if they are updated that fast. So I have a suggestion: put just a single message into the log and stop authentication attempts after the first failure. New attempt needs to be made only if really necessary like a user trying to view the corresponding UI card. |
I have been experiencing the same issue also. The map extracting was working smooth and now it's unable to login, neither the token extractor. From where should I extract the 2FA link? Is it something that I have to extract from the token extractor? I can not see the link in Home Assistant logs... |
@alexlopezcifuentes 2FA link should be in HA logs. What response do you get in extractor? |
@PiotrMachowski I'm getting this in the complete HA log: I'm using currently v2.0.2 which I believe is the last one. |
@alexlopezcifuentes how about token extractor? |
@alexlopezcifuentes Have you made some changes in your network setup? |
@PiotrMachowski No, I haven't. Everything is as it was a few weeks ago when the map extraction was properly running... |
@alexlopezcifuentes Have you added PiHole/AdGuard or Cloudflare DNS? If not, can you try to manually run python version of tokens extractor and add |
Hey there, I have the same issue and have added the print(response.text) lines. I have pihole disabled and no other DNS. This is the output:
|
I have not added PiHole or AdGuard either. Hopefully this weekend I can find some time to try the Python version of the Extractor and see the output of print that lines. |
@UraniumDonut It looks like you might have placed the second |
@UraniumDonut @SerialVelocity I have prepared a version with prints: link |
Suprise suprise. For some obscure reason your updated version worked perfectly (even with a more verbose output). Thank you! |
@PiotrMachowski Sorry for the delay but it has been impossible for me to check this until now. I used your Token Extractor script with prints version and this is the output I'm getting: I'm still not able to logging neither here nor in HA. |
@alexlopezcifuentes does these credentials work in Xiaomi Home app? |
I have found the problem. Nothing to do with your software but It was like chasing a ghost. It turns out that my old password (the one I have been using for years) contained the word "xiaomi" (I know, not the best approach for a password haha). I changed it from the app and I discovered that Xiaomi now does not enable the use of the word "xioami" in the passwords. I suppose that the account was somehow "blocked"... I'm trying with a new password in HA but at least the Token Extractor is working now. Thanks! |
Working smoothly also in HA! Thanks @PiotrMachowski |
I'm glad you got it working 👍 |
I keep having the error: keyError: 'ssecurity'
What did I try to fix
Keep having this error, on my iPhone I can loggin with email I also have a dev android phone also possible to login with mail or id.
Someone suggestions?
The text was updated successfully, but these errors were encountered: