pnbruckner / ha-life360

A Home Assistant integration for Life360.
32 stars 4 forks source link

Sign In using Access Type & Token #21

Closed stevewrightnz closed 1 day ago

stevewrightnz commented 1 month ago

When using the Access Type & Token method the https://app.life360.com/login page only gives options to enter USA phone numbers.

pnbruckner commented 4 weeks ago

Ok. Remember, the feature that allows one to enter the authorization strings directly is really just a work around for when logging in with a password doesn't work.

How do you log into the Life360 app? Do you use a password, and if so, with what type of "username" (email, phone number, ...???)

If you can log into the Life360 app using a password (with whatever username it accepts), can you try those same credentials with the HA integration? Does that work for you?

If not, using that login link, can you find a way to log in successfully? If so, then maybe the same technique can work for you (i.e., finding the access token.)

If you can't log in using a password, and that link doesn't work for you, can you find a different link via Life360's help center?

stevewrightnz commented 3 weeks ago

OK!! figured it out.

Had a real issue with the password for the email method.

Once that was sorted then following the instructions worked. (the info was in {;} token.json)

Thanks SteveW

pnbruckner commented 3 weeks ago

So, were you able to log in, either via the app, an URL or in the HA integration, using a password? When you finally got the token, how did you get it (i.e., what link did you use)?

stevewrightnz commented 3 weeks ago

Yes I managed to log in using a password after a few tries. The token was in the {;} token.json entry as per the integration instructions.

I can probably replicate and provide some detailed instructions if you would like?

SteveW

pnbruckner commented 3 weeks ago

If you were able to log in using a password, then why didn't you use that with the integration? Then you wouldn't need to retrieve the token.

stevewrightnz commented 3 weeks ago

Because I couldn't make the password work at the start and I went down the token path and by the time I figured out the password issue I was already into the token method.

pnbruckner commented 3 weeks ago

Ok. Yes, if you have any details about how you got the token, that would be appreciated.

stevewrightnz commented 3 weeks ago

Hi Phil

I've replicated the steps here and this seems to be repeatable:-

Hope that helps!

Steve

pnbruckner commented 3 weeks ago

Thanks. But that's basically the same URL & procedure that is already documented. Also, if you're able to log into Life360 using your email & password, then you should be able to use those with the Life360 HA integration as well. No need to use this procedure at all. Although, since you already have it working that way, probably not worth changing.