[RELEASE] Life360 with States - Track all attributes with app and driver. Also supports RM4 and Dashboards!


#1

Introducing 'Life360 with States'
Life360 with all States Included

Hubitats built-in app only exposes the 'presence' attribute, This app and driver expose all available attributes. All attributes are available for use in Rule 4.0 and any other app.

Works great with my Life360 Tracker app for both Life360 paid and free plans!

Features:

  • Port of ST Life360 app and driver by tmleafs
  • Tons of under the hood changes, modifications and cleanup
  • Exposes all available attributes, can be used with Rule 4.0!
  • Ability to add a dashboard tile with avatar and attributes

Special thanks goes out to @cwwilson08 for figuring out the oauth and webhook stuff! This would not be possible without his work. I am so glad he ask me to help with the other parts of the code. Together, we knocked this out!

App can be found on my Github (in the 'Ported' section):

App:
V1.1.4 - 07/23/19 - Places list now in alphabetical order.

Driver:
V1.1.1 - 07/19/19 - Place is now clickable on the status tile.


[RELEASE] Life360 Tracker - Works with the Paid and Free versions of Life360!
More Life 360 states in official app please - UPDATE: Now available in Community Life 360 Integration
#2

Differences between this app and the built-in app...

Built-in
life360-old

New - Life360 with States

Dashboard Tile
life360%20tile%20-%20Edited


#3

This looks great! Thanks. Does anything about this require the Plus version of Life360? Specifically, can you name more than two locations in the app?


#4

I have Plus so I don't know if the states will show up or not if you don't. Give it a shot and let us know!


#6

Sounds like a challenge. OK, I've successfully installed the app and driver, and have restored all my presence related rules. I left my fence and observed events showing I'd gone away and long/lat changed. I had created a test dashboard with some of the extended attributes and it seemed those didn't change on the dashboard as expected. But since I was driving, could really look into it. I won't be able to test that unless I can make my wife go away, and if I knew how to do that .. but I digress.

So far, I haven't seen how my question of naming locations in the app makes sense. Perhaps that is a concept known to the tracker app which I haven't looked at yet. Of course, what I'm speaking of is the ability to put a friendly name on locations beyond just Home and Work.


#7

Well at least we know some of the states will change. Naming locations is done in the life360 app on the phone. I've had plus for so long I don't know how many locations you can have on the non plus.


#8

The free version is limited to two named locations. I asked the question after reading the thread in the ST Community about tmleafs version, and there was mention of the limit being alerting locations, and you could have more named locations. That doesn't appear to be accurate, but we'll see what we can do with this. Nice work!


#9

The life360 app (free) will only allow 2 places. The (Premium) version which is $2.99/mo has unlimited places.


#10

Yes, exactly. As I said above, there was an implication (in the ST thread) that this app/driver had the ability to independently put names on more locations than the Life360 knows about. Obviously, it could since Lat/Long is available, even for those running the free version. But there is no facility to calculate proximity to a known named location in this app. There's still much richer info to expose than with the native app, so I'm glad I went through the process to use this.


#11

Very interesting! Let me think on that one but it shouldn't be too hard to do. :thinking::thinking::thinking:


#12

@bptworld Thanks for all the hard work.

Just to confirm after install, it should create Life360 User devices automatically?

Currently it does not for me, I've uninstalled/re-installed 2x and no joy. Latest hub update (117) fyi.


#13

did you install the driver?

If yes, use the search function on the devices page and type in Life360. They should come right up.


#14

I did install the driver and they are definitely not there in devices after install. It appears install goes ok
and looking at the code "installed()" seems to do the device creation, I even added installed() to the display() command and reloaded the app once to trigger and they don't get created.

I'm wondering if something went wrong with my install, after I go through the token part I get a page that says everything went succesfully, go back to hub. Then life360 states app is not there so I go "install" again and it pops right up with my circles etc. Sound right?


#15

@bptworld

Not sure if this helps, but it seems perusing the code that I'm not getting some options in the interface on the states app.

After I select my circle it seems like I should select places etc. But that is not the case.

I clicked done and it never changes when I come back. I can see a request going to the server but nothing updates.


#16

Do you by chance have more than one circle?


#17

I do have more than one circle, is that the issue? @cwwilson08


#18

I think it could possibly be..


#19

@rob121, you win the prize... first person with more than one circle! lol

I'll take a look.


#20

So you have the debug logging enabled? When you push done do you logging with a list of places?


#21

It won't, the next selection should just pop up after each selection.

I think I got it...