-
Notifications
You must be signed in to change notification settings - Fork 71
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
Adding integration stuck on menu #95
Comments
Have have been debugging for a while. Right now i have found that any username or password (even a bad one) will not work Also, i got a very weird behavior where i already had my account, but after i let the process hang for a while, i got an email from emporia to congratulate me aboute creating my new account |
Adding the integration from my phone finally five my an error, Unexpected exception I can confirm the user does exist. Could it be some caracter support problem ? The email have dots in it ie: sss.jfhd.sjdsfh@gmail.com |
I wouldn't expect the dots to be a problem. What region are you in? Right now it only tries to authenticate against the east us cognito user pool but I don't know if they have added additional ones for different regions or if everyone uses the same pool. If you're outside of the US then that could be the problem. |
Hi, yes im in quebec Canada so that might explain the issue |
Ok, I wonder if they have a separate user pool then. If so then your user wouldn't exist in the one it's trying to authenticate against. I'm not as familiar with the AWS data centers outside of the US. If you want to try to figure out where your account is, capture the network traffic in your browser when logging into the Emporia web view and look for requests with cognito in the url. https://web.emporiaenergy.com/#/ I can get you more specific steps later if you want/need them. |
Hmm, yes that's the same so that's not the issue. On one hand that's good because there's quite a bit of work to make it support different regions but on the other hand that means I'm not sure what the issue is. Would you be willing to run a python script that uses the library that this integration is based on? That would let us remove the Home Assistant layer to hopefully see whether it's an issue with the library or the integration, you'd just need to use pip to get the required dependencies. |
If you're willing to try running the script, I just tested this one with my own account. You'll need to from pyemvue import PyEmVue
email = input('Enter email: ')
password = input('Enter password: ')
print('Attempting to log in...')
vue = PyEmVue()
vue.login(username=email, password=password)
details = vue.get_customer_details(email)
print(f'Successful. Your customer id is {details.customer_gid}') If it can log in then it should print out your customer id, which is something that can only be requested from the server so we know it works. If it can't then it'll throw an exception and print out the whole stack trace. I tested with my own credentials and some made up ones and it worked for mine. |
Yes of course, |
So im not sure yet how to run it on the blue but i runned it on my pc and got this:
|
That's interesting and unexpected. I think the only way that could happen is if python didn't treat the username and/or password as "truthy". The section of code that defines the Since you posted your email earlier I can try to check if it doesn't like something about that. If it's something with your password then you might try changing it to something else? |
yes of course, i will try a simple one right now |
so i just try a very simple password and the error |
I think part of your reply might have been dropped. Did the error go away or is it still happening? |
Oh, there might have been some confusion. Don't enter the email and password into the file, those are just prompts and you should enter them on the command line when it comes up. If you want to just hard code them into the file instead of entering them when running it then replace those lines with email = 'youremail@gmail.com'
password = 'yourpassword' I think the way you have it right now you're probably just pressing enter when those prompts come up so it isn't actually passing in the email or password, just empty strings. |
ho right my bad ! it is working: |
Awesome, that's a good sign. You said that you tried making the password simpler? Does the Home Assistant integration log in correctly with that new password? |
ok now i got this: This error originated from a custom integration. Logger: custom_components.emporia_vue Error communicating with Emporia API: No channels found during update for scale 1MIN I will try a reset of my device just in case |
AFter reboot, it still hang but got those 2 error that i havent seen: Logger: homeassistant.components.hassio.handler /ingress/validate_session return code 401 Logger: homeassistant.components.hassio Failed to to call /ingress/validate_session - not sure how they would be related though |
It looks like you were able to log in at least. Sometimes their API is finicky and doesn't return all the data when it's requested and if that happens during set up it can cause some issues. As long as the initial set up is ok you'll see an occasional issue during updates where data doesn't come back but the next update a minute later usually resolves that. Do you see any of the different "channels" as separate devices with the minute, day, and month sensors on them? |
no unfortunatly, still stuck on the menu where it ask for my email and password. |
After closing the infinit loop windows i got this with this log: Logger: custom_components.emporia_vue.config_flow Unexpected exception |
I can't hop on a call at the moment (technically am at work and already in a meeting) but I might be able to this afternoon/evening. My email is magico1313@gmail.com if you want to send me a meeting invite for some time after 2pm eastern. |
awesome thanks will do and i will continu to debug |
Sooo it started working out but i havent done anything :O |
That last error message did say "already configured" so a reboot might have let it finish setup. I'm not sure if the initial problem was related to the password, I've seen special characters in passwords cause some problems in the past with other software, but hopefully it stays working now. It will reauthenticate with the stored username and password each boot so if you change your password you'll have to remove and readd the integration with the new password, but all the devices and entities should repopulate in-place so you shouldn't mess up any custom displays by doing that. Maybe monitor it for a day and if it stays working (especially through a reboot) then I think we should be safe to close this. Sound good? |
Since this issue have been fixe i will close the issus |
When adding the integration, i get stuck on the looping animation of the lower right in the menu. Nothing else happend.
I have put the home assistant log on debug but nothing gets logs, should i look somewhere else ?
The text was updated successfully, but these errors were encountered: