[RELEASE] Life360+ (BROKEN)

Yep, that's right. The app still works the same way as before with 2 ways to get updates:

  1. poll Life360 every 30 seconds
  2. a 'push' from Life360 when someone enters or exists one of your monitored places

if logging is disabled you shouldn't see anything though when nothing has changed from the previous state (location+battery)

2 Likes

I removed and reinstalled app/driver package and same thing. Must be a me thing with the process.
You mention child but I see none. App created no child devices. App info also says - No Child Devices
Install the app via HPM.
Run the app and put in my name and password - hit Next
I get a blank screen with Remove or Done - I hit Done
I looked in the Devices page to see if a device under my User Name was created; didn't see anything so I created a new Virtual Device and used your driver.
The new device shows what I expect but no state data.
What part the of process an I doing consistently :wink: wrong?

I get the same error in the logs:
dev:20732023-05-10 15:25:24.276errorjava.lang.NullPointerException: Cannot invoke method refresh() on null object on line 153 (method updated)
app:15672023-05-10 15:33:55.462errorLife360 initializeLife360Connection, error: groovyx.net.http.HttpResponseException: status code: 403, reason phrase: Forbidden

I just removed and re-installed everything and it worked again.. screenshots below:

After that, hit DONE and the app created 2 devices for the users I selected


app:15672023-05-10 15:33:55.462errorLife360 initializeLife360Connection, error: groovyx.net.http.HttpResponseException: status code: 403, reason phrase: Forbidden

The only thing I can think of is maybe OAUTH isn't enabled for this app. I'm not sure how that works with HPM -- I was hoping it was automatic though. In the past, you had to enable it under Apps section. I didn't do anything but it's "enabled" in this screenshot

Did it again but I don't get the 3 following screens, no Circle, Home or User.
Just the empty screen with Done after my name and password.
Does it do some sort of validation after the first screen? I can log into Life360 just fine.
Hmmmm
Just tried to go back to Life360 with States and I can't get that app to work now, same empty screens after the inital login. WTF.
Been using it for years.

I get Login failed from the built-in Life360 Connector so I dunno. Will have to delete my account and retry that way. Strange it works fine on my cell phone.

Nope, recreating my account won't let me add the app either.
Going to restore my last backup and see if my old Life360 comes back.

PS Tried Enabling Oauth in the App code but that didn;t help. BPTWorld ver didn't have it enabled

Do you have a lovation set in the life 360 app?

Its been awhile but if you back through the old thread i think this has come up before.

Cant quite recall what the resolution is.

I have a Home location set which is where it says I am now.

I tried to restore 2 backups and both kept the CPU at 90%+
I had to soft reset and restore a backup to get back to normal.
After the soft reset my previous Life360 with States now crashes. I deleted the app and tried the built-in Connector and Life360+; everything fails to login to Life360 now.
I'll check the Community for any hints.

OMG!!!!
It's not my frigin registered name it's my phone number with +1
Now it wants a Place but I have to figure out where that is as there is nothing in the dropdown box.
I have a Place in the Android app called Home. I tried the Export Places button but it says No Places.
Created a Place called Work but still no entries.

@jpage4500 I see you had this same problem. Tried Life360 with States and my email but still no Places. You mention I needed to login to the website but I can't see anywhere to add or modfiy the account.

Did I get it right. If I install this driver it won't affect life360 drivers that I'm at the moment using. So it creates just another life360 devices to play with and test how it works?

Hi @jpage4500 ,
I am using this app with the built in dashboard app.
I see the device page contain a state variable for Presence:
image
When displaying this device on the dashboard I can display all attributes but the Presence state variable is not available for display. Can the state variable be an attribute as well?
Or am I missing another option to display its value on the dashboard?

1 Like

I am finding the same thing. Presence always states Not Present, even when I am at home.

Let me check - if it's missing or incorrect than I probably messed something up because I believe the original Life360 with States supported this fine as I remember.

I'll get it fixed

Update: I'm testing a fix now

The Hubitat app will create child drivers using the name "Life360 - ". I think if those drivers already exist they won't be re-created. So, you might need to change the names if you already have drivers with the same name.

Yeah it could be. Actually I suppose that hubitat renames device if the one is already in use. I'll test later.

I just pushed a fix for this

What did the fix do? I do not see presence being reported on the HD+ tile (still shows as Not Present when I change the tile to a presence sensor)

Updated using HPM to the new version.
Still do not see the Presence as an attibute that can be displayed on the dashboard.
Also, the is something wrong with the state variable "status"
image

The user is not present but is 0.00 km from home :astonished:

Also - does it make sence that once this app is installed the built in Life360 app stpped working?

Ok installed Life360+ beside Life360 with States.
It seems to work and it just creates new devices without breaking anything previous.
Not sure if anyone else misses these but I do:

  • distanceKm : 0.0
  • distanceMetric : 0.0
  • distanceMiles : 0.0
    Any chance to add?

I think sobyes. One of the first things the app does is cancel any current webhook calls from life 360. So makes sense this would impact the other integration.

In the driver on line 298 change:

sStatus = sprintf("%.2f", speedUnits) + " miles from Home"

to

sStatus = sprintf("%.2f", distanceUnits) + " miles from Home"

Do the same thing on line 304 for 'km from Home'.

2 Likes

I do see presence as an attribute that is available for the dashboard now. It does take some time from when you update the code until it showed up ..... but it is there for me now.

1 Like

Yep, the next time the location/battery changes it should update
image

The driver fix was to set the presence attribute

I also updated HD+ a few days ago to handle the new app by default - so it'll show up as a map. But even without the update to HD+ the presence attribute should be there (or will show up)

2 Likes