-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Workaround for logout in the Xplora® App #24
Comments
When would I need to do this? I just got the watch and want to set the integration for the first time. |
Use the Xplora app to find the contact's number as described above. |
They only allow "2" administrators, which is me and my wife - so I cannot add the watch itself as an admin. |
@mschiessl create an account with your watch's phone number and include the number as a contact. The integration does not require an admin as a user. |
Thanks, @Ludy87, makes total sense now!
could be better:
|
How and where do you create an account? |
You are still logged into the app:
|
I struggled with this manual at first. I found this manual very useful: Maybe this is helpful for anyone else... BTW: Excelent Work Ludy87! |
I'm a little confused by this workaround..
Don't need answer to all of it, but something to shed some light on the confusion.. It seams to be multiple issues that have problems with login. |
An admin/user/parent can only login on ONE device, either in the app on the mobile phone or in the integration. It is therefore necessary to create an app account on the mobile phone in order to be able to use an "extra" user for the integration.
The watch usually has its own phone number, hence its own key 'child_phonenumber'
|
Does this trick work anymore? When logged in as a parent, I can see the watch have it's own phone-number as contact. I can also login using the same phone-number in the app and verify that it sees itself.
I removed, password, timezone, userlang and country_code below in the configuration examples # This gives `pyxplora_api.exception_classes.LoginError: Login to Xplora® API failed. Check your input! - 1`
xplora_watch:
phonenumber: "111"
child_phonenumber:
- "111"
# This works, but throws me out from the app on the phone when home-assistant is starting
xplora_watch:
phonenumber: "222"
child_phonenumber:
- "111" I also tried "manually" using the code found in # This works
gql.runGqlQuery(gql_mutations.SIGN_M.get("issueTokenM", ""), {'countryPhoneNumber': '+47', 'phoneNumber': '222', 'password': 'password-hash-here', 'userLang': 'nb-NO', 'timeZone': 'Europe/Oslo'})
# same with phoneNumber of watch gives
{'errors': [{'code': 'E000025', 'message': 'Incorrect password.'}], 'data': {'issueToken': None}} I got Any tips? |
@xeor Has a user account been created with the phone number from the watch? |
@Ludy87 yes, I have created one from the xplora app and I can login using it. I see in it's profile-page that it has a dedicated mail-address as well. It can see the watch when logged in, but there is no information like location and such (since it's not a guardian?). I have also tried to remove the 111 number from the contact-list and readd it using the qr code instead of adding it using guardian>add-contact. Both methods yields the same error.. |
Try the minimal configuration! https://github.com/Ludy87/xplora_watch#minimal-configuration xplora_watch:
country_code: "+49"
phonenumber: "151XXXXXXXX"
password: "password"
userlang: "de-DE"
timezone: "Europe/Berlin" |
@Ludy87 same error as before.. I also tried to change the password on the 111 number and confirming that it works to login using the app using 111. |
@xeor I ran some tests and came to the conclusion: You are using the wrong password. Please check if all characters are correct. No hash value, no additional characters such as spaces. |
Thanks for checking! I will do some more checks tomorrow. I'm copy-pasting the password from where it works into the config, and I have made sure it doesnt contain any strange characters. I even had the same password on both accounts to test and verified every login (outside home-assistant) worked.. I'll come back with some more tests :) |
@Ludy87 ! I finally got it to work! Very useful the new version I installed from HACS with better errors. :) In the app, way I ended up doing it was (I think); "Create an Account" > "Skip" > "Log in" > "Forgot password" > "Phone number" > the 111 number > ... Before this, I was able to login using the account on myxplora and in the app, but the account was still not correctly created using the phone-number.. So for the next; use the phone-number! Don't invent a new mail-address |
I was having similar issues with this process as @xeor and I can confirm that using the "forgot password" process (using my phone number as login) also did the trick for me (curiously the service sends the phone number verification code to your email, waited for quite a bit for it to arrive as sms before noticing that...) |
How can I create an account without an email adress? When selecting "create account" i only get an option to enter email and password. I if i select forgot account and enter child_phonenumber I get "User doesn't exist". |
@jonathanbower I'm pretty sure you have to create one with an email, then attach a phone number to it, and then reset the password using that phone number. At least those were the steps I had to take to get this to work. |
@Aunion , that did the trick, thanks! |
I don't really understand this.
Not sure if it has to do with the above or something else, but "last tracking" hasn't updated for me for more than an hour now, and battery level is -1. |
The -1 might be another problem.. I just noticed the smell of thing on my setup, but didn't investigate yet |
This doesnt seem to work. What actually worked was that one of my sons friends watch became avalible! And i got all the information from that watch! Because they have added eachother as contacts |
Ok so managed to get it to work. For me i had to remove the contact on my admin account and then re add the contact (that is used for authentication to the API) Since my sons number is added on his friends account we can still view information from that watch not good, but this workaround wouldnt work if not. BUT now i need help. When i removed the addon from HACS i also cleaned up the entities ect. And if i recall also cleaned up known_devices.yaml? I do not manage to get a sensor now for tracking the device?! |
@eirikgrindevoll can you also read your friend's watch in the app? That would be a massive data breach. |
If they didn't continue to develop so much, then they could also close another sizeable security gap. |
The article from Digi with paywall removed: |
I like the link to my repository 👍 |
please check: #96 |
@Ludy87 does this still work? Or only works to login with admin account now? I believe it is the last and only works with admin and this work around is not working anymore, If you just could please confirm. |
I don't get this to work.
I then tried it a second time, this time for my second son.
I can go to "lost password", type in one of their phone numbers, In the next step I can type in a password, twice. Submitting results in "Invalid request". Can anyone help? |
@xsirpreisx this method described in this post not works anymore, just use your own phone number and password you also use as guardian to login to the integration. Like that it works for me. |
But then I will get logged out on my phone?! Which I don't want. Am 12.03.2023 18:39 schrieb sesame_madness ***@***.***>:
@xsirpreisx this method described in this post not works anymore, just use your own phone number and password you also use as guardian to login to the integration
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@xsirpreisx no you won't, I am logged in on my phone and on HA and also my wife is logged in as guardian with her own phone number |
Weird.
I’m being logged out.
And when I asked Xplora, that is how it should be.
I’ve tried asking Xplora about support for three admins or being logged in with three devices simultanously.
There can be many reasons for that, for an example if a kid is a part of two house-holds, and more than two adults is by all means a guardian.
So. Maybe more people should ask them? It’s needed for several reasons regardless of HA..
…On Sun, Mar 12, 2023 at 19:26, sesame_madness ***@***.***> wrote:
***@***.***(https://github.com/xsirpreisx) no you won't, I am logged in on my phone and on HA and also my wife is logged in as guardian with her own phone number
—
Reply to this email directly, [view it on GitHub](#24 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AK5CXK3RQKQHT4GRMXIVW43W3YIOPANCNFSM5S6WB6NQ).
You are receiving this because you commented.Message ID: ***@***.***>
|
@BigFriendlyDuck I not get logged out from anywhere, but I never have the xplora app open, I just log in and close it, but I receive notifications from app and if I open the app I am already logged in and not get logged out on HA nor app.... so not understand why you do, did you try this recently?.... anyway the above work around method not works anymore to my knowledge.... if it still does then I also not get it to work |
I got logged out also when logging in via HA. |
@xsirpreisx strange I not have this, and when you log back in again on app? It logs you out from HA? |
I have a problem with the no sensors being created after the second step with adding the integration. The login works and the Xplora-integration is created, but no sensors is there! Why is it doing this? |
@MrGlad8 you have to select the appropriate sensors in the configuration. |
Same here. Followed the same process and got the same problems with "number is already used", also having the frequent logging out of the app with the adminstrator account (HA 2023.2.5). |
I cannot create a user with watches own number? While being logged in as admin user on the App, I added the number of the sim card in the watch itself to the contacts on the watch. Then logged out and attempted to create a new user using the number. First of all, I could only create a new user by also using a new email, and when I typed in the watches own number I got the "number is already used". |
I have a similar experience of the two previous comments: always logged out of app (which is bad, because one cannot receive messages anymore) and registering with the watch's number is not possible. This effectively breaks the extension. |
I was not able to implement the workaround and keeping two admins active. Any plan/idea by when this issue may get solved? |
Unfortunately the workaround also doesn't work for me:
Also tried to reset the password function
I even tried to install an older Xplora apk (from 02/2023). There I was able to get to the page that tells me "please enter the verification code we sent to your number" but I'm not getting any verification code. Looks like they prohibit creating an account with the smart watches phone number. |
@thmz82 What do you want to do afterwards? If you want to fully use the integration, you have to log in with your admin account. |
Primarily I would like to use the integration for tracking the GPS location and battery state. Also I'd like to enable/disable the school mode or alarms via automations (for example on holidays). The problem I currently have is that when I use my admin account in the HA integration, I get logged out from my mobile app. And when I log in again on my mobile phone, the HA integration gets in trouble (all sensors stop updating or get "unknown"). It's a pity that they allow us only to add 2 admin contacts. Already wrote to the support if there's a way (or maybe in the future) to add a 3rd one but no answer until now.. |
Yes, I know, there is no way to get around this behavior.
I can tell you the answer: "Hi Ludy, thank you very much for the feedback & message, unfortunately it is currently only possible to appoint a total of 2 administrators." |
This issues seems to have been fixed by xplora. At least I can now be signed in via the app and the integration with the same (admin) user at the same time. |
When I have a watch again I will test it. Thanks for the info. |
I tested it with an Xplora X6 (Firmware w112.8.1.002_2405101) and was not successful. |
Just another "works" comment. I added the watch to HA using my own account (e-mail, not phone number). It works (after I understood how to add the entities) and I'm not logged out from the app (at least not for the last 30 minutes). Thank you, Ludy87. This integration will help me a lot. |
I tested again today. After login with email it works great and I did not get logged out for several hours. Seems this issue has been solved. |
add phone number from watch to contacts (as admin)As an admin user, add watches phone number to watches contacts Workaround for logout in the Xplora® App #24 (comment)The text was updated successfully, but these errors were encountered: