[RELEASE] OwnTracks Presence

Can I just say (again) how happy I am w/this automation? Oops, just did it. :slight_smile:

This continues to be one of my best "set it and forget it" features I use in Hubitat.

1 Like

I wish I could say the same... Isn't working consistently on my Pixel devices. I've got a Pixel 4 and Pixel 6 Pro and neither are consistent with reporting. I've turned off battery optimization and tried tweaking the options, but still doesn't work anywhere near as good as Life 360; which is unfortunate, because I'd much rather be able to rely on this app and integration instead.

1 Like

This is exactly my experience as well, previously with a Razer Phone 2 and now with my Pixel 5a. It is very frustrating because I want to like OwnTracks but I just cannot seem to make it reliable in any way, but for iPhone it is perfectly reliable with the exact same settings as my Pixel.

1 Like

Interesting, I'm running it on a Galaxy S21 and I've had no issues with it. I wonder what is different.

I'm running OT on a Moto G Fast, latest Android build and and iPhone 6 as well. Both have been stable and perfectly usable in my case. It took a lot of effort to get here!
In the last couple months, a change occurred in the OS for the Android that stopped the OT from running after a reboot. I accidentily once saw a screen on the Moto that said something like 'OT can't run after a reboot until it has been opened and brought to the forefront'.
From that day, I've begun closing OT, re-opening it and mashing the status and region button. I usually also push the move monitor button through the settings 4 times. After that it works perfectly. Theres something about how it works after a reboot of your phone that needs tlc.
On a side note - I also monitor iPhone and Moto as presence via the Hubitat app - that never works correctly. It too may have something to do with the GF not opening the app once in a while. As I sit here, she and her phone are in the next office but HE says 'iPhone Not Present' but my Moto says 'present'.
I don't fault the HE apps/drivers - it feels like its related to the phones and their quirks.

1 Like

Having an issue after the latest Hubitat release update/s. The iphone shows `error http response 500 The operation couldn't be completed (HTTP Response error 500.) {}

The HE logs show me this repeating endlessly:

app:1942022-06-11 11:10:57.916 errorjava.lang.IllegalArgumentException: The JSON input text should neither be null nor empty. on line 125 (method updateLocation)

I've refreshed the user and location/region in the virtual device.
I've re-copied the URL (which does test successfully in the browser) to ensure it hadn't updated and I was just missing the change.

The iphone is on iOS 16 dev beta and I noticed my regions were gone. I've since readded a couple so far, most importantly BeachwalkerOT to represent home.

What am I missing?

I just reinstalled and confirmed it’s still working for me on 2.3.1.142, but I’m not on iOS 16.

1 Like

What does that error specifically point me to? Here’s the thing: your Geofency app is working just fine, same phone.

FWIW, I have an automation set up on the Tasker app on my Android phone that starts Owntracks any time the phone reboots.

I never have to worry about it or remember to do anything, very nice.

Tasker is amazing, I started using it when it was first written. I only wish iOS had something like it.

2 Likes

Ok, I took the nuclear option and wiped OwnTracks completely from my phone and reinstalled from scratch.

Works fine.

:face_with_raised_eyebrow:

2 Likes

Very cool Brian. Thanks for developing. The Hubitat app geofence has been unreliable for me so I have been looking for a more solid solution. Anyway to make this work for multiple hubs (also a feature lacking in the Hubitat app)? Since the URL is tied to a hub, I'm guessing this can't be done.

You can use Hub Mesh to share presence status between hubs, if that's what you want to do. Maybe I don't get your question.

Not sure how to do it with Owntracks unless you use hub mesh. If you’re on iOS, you can use Geofency and setup multiple regions with unique URL’s per region.

1 Like

If your two hubs are in two different locations, you can use HubConnect to share devices between them, including Presence sensors - like an OwnTracks presence sensor.

If they're in the same location, then Hub Mesh would work well - as recommended by @danabw and @brianwilson

2 Likes

Thanks for the quick replies. The hubs are in different locations. I thought about HubConnect but didn't want to add another layer to this. I just set up Geofency and it appears that will solve my problem since you can configure each place to have it's own webhook. Thanks!

While I have you, any advice on buying iBeacons? Is spoofing a concern when using them in this way?

Great! The good thing about beacons is they aren’t doing the work, your phone is. So if someone were to spoof it, you’d still need to get control of the phone. My iBeacons are from TwoCanoes (who previously had The Geohopper app). They don’t sell them any more.

Got it. Thanks again!

Looking for a little help here, from @brianwilson or anyone else who can help with Android setup.
I have set this up on my Android phone following the instructions I think, but I'm not getting results.
I have also set it up on an iPhone, for a different user - that works perfectly I think.

The Android Owntracks logs are all look good, and the status is showing "Response 200", so it seems like it's getting to the endpoint....
I have added a username in the appropriate point in the URL for both Android and iPhone.
I have left the app identification blank in both.
the URL passes the test when pasted in to a browser -I get:
["This is the right URL! Add it directly into the OwnTracks URL field and make sure your virtual presence device is configured with the the location/region and user (James) within the device preferences."]
The Owntracks logs show lines like this every 10 secs:
2022-08-19 13:15:38.893 I MessageProcessorEndpointHttp: Message id=1660911337863-aa9687 sent in 404ms
But in the HE logs all I see for the android user app is:

[app:651](http://192.168.86.20/logs#app651)2022-08-19 12:35:33.952 [debug](http://192.168.86.20/installedapp/configure/651)OwnTracks-Presence: Updated with settings: [isDebug:true, presence:[OwnTracks Location James Home]]

[app:651](http://192.168.86.20/logs#app651)2022-08-19 12:35:33.919 [warn](http://192.168.86.20/installedapp/configure/651)debug logging for OwnTracks: true

[app:651](http://192.168.86.20/logs#app651)2022-08-19 12:34:58.468 [warn](http://192.168.86.20/installedapp/configure/651)debug logging for OwnTracks: false

What should I check next?
Thanks,
James

What is your region named in OwnTracks app? What do your prefs say for your device in HE?