Life360 seems to send notifications properly, but presence status not updated?

Typical useless response from support:

Thanks for reaching out to us. I have added you to the list of customers experience this issue with Life3600. Our engineers are investigating this and working on a resolution. I do not have an exact time line for when this problem will be resolved but I will keep an eye on it and let you know as soon as we have a resolution.

In the meantime, many of our customers have been able to get life360(connect) to start reporting again by updating the smartapp again.

To update the life360(connect) SmartApp:

Tap Automations routines
Tap SmartApps
Tap Life360(Connect)
Tap Next
Tap Next Again
Tap Done
After this Life360 should start updating again with in SmartThings. This is not a permanent solution but will get Life360 to start reporting again.

Blarg. I broke something. Installed your SmartApp and Device Handler via IDE. The only changes that I made were to add ā€œbetaā€ to the names of the SA and DH (I didnā€™t want two with the same name).

When adding the SA, it fails when I try to configure ā€œYou are not authorized to perform the requested operation.ā€ There is a red ā€œRemoveā€ button visible, but nothing happens when I click on it. When I go to remove the SA from within IDE, it fails because a user (me) has it installed. lol, Iā€™m in a loop.

Did you enable Oauth on your beta app?

There isnā€™t much changed in the code both the app and the DH have only had refresh commands added all other code is untouched

Yeah, go through all that and it might report the next couple changes until it stops working again! :disappointed_relieved:

My original code posted last week seemed to only last a few hours before it failed

New code I have been using for a few days and I havenā€™t had to do your original fix since

Enabled Oauth and it let me proceed (I had to uninstall the original Life360 Connect app too). Itā€™s giving ā€œunexpected errorā€ now after I select users, but that might just be STā€™s issue. That happens with the official app too.

Thank you.

Hey man, I am seeing Errors when I hit the refresh button:

f9d7ebe1-a888-42a6-8ed3-7b87f9999b18  12:26:11 AM: error java.lang.RuntimeException: Metadata Error: Missing required page parameter 'name' @ line 379

Just as a hint, you may want to spend a little more time adding versioning and notes to the comments in the beginning. Its a bit confusing trying to verify which piece of code is the most current. Please donā€™t take this as criticism. This is a nice piece of code that will help a lot of us out. thanks for the time and effort!

I didnā€™t read the whole thread, but the way I got around things was to create a virtual presence sensor for each family member. Then I use CoRE to look at the Life360 presence and adjust accordingly. If Life360 and ST get out of whack, I can manually make the adjustment while Life360 catches up.

I think its because Iā€™m in the UK and its not officially supported and only way to install it is though the IDE, If you installed it though the market place itā€™s probably best to remove it, then install my code though the IDE, enable OAuth then run the App from My Apps. I have added comments and a version number to the latest code.

I have made a repository for this patch now

Heres proof of my CoRE piston working

Yesterday My presence sensor left 15:59


10mins later my life360 presence hasnt left and the piston runs the refresh at 16:09 and the device updates perfectly

I have the same issue. error java.lang.RuntimeException: Metadata Error: Missing required page parameter ā€˜nameā€™ @ line 381

I commented out lines 376-382 in the SmartApp and now everything is working!

// If there is a place called "Home" use it as the default
//    def defaultPlace = places.find{it.name=="Home"}
//    def defaultPlaceId
//    if (defaultPlace) {
//    	defaultPlaceId = defaultPlace.id
//    	log.debug "Place = $defaultPlace.name, Id=$defaultPlace.id"
//    }

Ok I tried that but no joy. Now I get:

java.lang.RuntimeException: Metadata Error: Missing required page parameter 'name' @ line 372

I am facing the same problem with multiple usersā€¦ST is not updating the status that I see on Life360. I manually added the device handler and app by @tmleafs and will try it out. Even when I select both the users, I still see only one user there.

I was earlier using the Life360 (connect) inside Social. I went through the My Apps -> Life360 setup after adding the new device handler and app.

Lets try this from the top, since the directions are not very clear IMO.

Hereā€™s how I got this working:
Step 1 - Uninstall existing Life360 (Connect) app
Step 2 - Create new device type handler in IDE using the Life360-User code
Step 3 - Create new smartapp in IDE using the Life360 (Connect) code, and comment out lines 376-382
Step 4 - In the ST app, go to market, smartapps, my apps and install Life 360 (Connect)
Step 5 - Configure Pollster / CoRE / etc to refresh any ONE user
Step 6 - Enjoy

Link to source code: https://github.com/tmleafs/life360-smartthings-refresh

1 Like

The only difference between official smartapp code and my code is the following added to the bottom donā€™t understand why you are seeing these errors

def refresh() {
listCircles()
listPlaces()
listUsers()
updated()
}

I did not comment out any lines and am not seeing any errors using your code. BTWā€¦if this is working, can the official code be updated?

Just had a thought is your home on Life360 called ā€œhomeā€ because mine is.
maybe @cdrom1028 & @tobycth3 have called it something different

Exactly the problem, my home is not called ā€˜homeā€™ so I assume that is why the error is being generated

Yes, mine is called Home as well.

Mine is called ā€œHomeā€

so going by this information instead of uncommenting those lines change this line

def defaultPlace = places.find{it.name=="Home"}

Where it says Home with the name of your home on life360