[HowTo] Location and Presence (Owntracks)

Thank you, I now have it working with accurate presence status.

have you reassigned your phone in the owntracks flow ?

Scanno the fence in bigger fence will also fix additional complexity with owntracks getting false possitives. So if you go walking around your area the gate does not need to go open. If you have been out of you 2km fence then it should trigger again to open the gate.
I now have fixed this with adding logic variables but it could be much easier when you have multiple triggers possible or if trigger entered big geofence and home geofence entered than true if entered home geofence but no trigger entering big geofence then false

I found out I can ā€˜lockā€™ apps on my phone, to prevent them from closing, or sleeping, or something. I must say itā€™s been working fine the last couple of days.

On what phone and OS?

:+1:t5:

Xiaomi Mi Mix 2S, Android 9. In the overview of running apps, I can longpress in on an app. I then get a submenu with three options. One is a lock and it prevents apps from closing (I guess). Even though Iā€™ve already turned off battery optimization for Homey and Owntracks, I still had issues, but now it seems to work.

Testing right now with multiple fences. Seems to be working so far. And I guess having a logic card that gives back true/false if you are in a fence is something I could add.

Main change is that I now have an array a fences that a device is in. Leave removes a fence from that array and enter adds it.

I somehow canā€™t get this to work. i get a
http 500 error

Any tips?
for now Iā€™m on 1.5

The URL for 2.0 changed, so itā€™s logical that you get a 500 right now.
For 1.5.x use https://[cloudid] .homey.athom.com/api/app/nl.scanno.owntracks/events/?token=[tokenid]

In other words, change connect in the url into homey.

1 Like

I have homey in the url (what is it for 2.0 then?)
https://[cloudid].homey.athom.com/api/app/nl.scanno.owntracks/events/?token=[owntrackid]

https://[cloudid] .connect.athom.com/api/app/nl.scanno.owntracks/events/?token=[tokenid from user]

You get a HTTP 500 and the app does not work any more or it still does?
Can be that athom shut down the old cloud endpoint.

owntrack gives me a 500 error, the app on homey shows undefinied, aka , enver connected.

Idk, it enver workedā€¦also before 2.0 I think.
If Iā€™d upgrade to 2.0 now? what would be the new url I need to fill in?

https://[cloudid] .connect.athom.com/api/app/nl.scanno.owntracks/events/?token=[tokenid from user]

Itā€™s also in the first post

You did replace the [cloudid] with the cloudid value of your Homey? And the the token with the value that is shown next to the username in the settings?

okay, I updated, and after doing everything right and checking the 401 error before asking :wink: :slight_smile: I got ti to work.
awesome! thanks!

1 Like

All,

Iā€™ve implemented Location and Presence as an alternative voor Homey native Presence not working at all.

Iā€™am using Homey 2.x and installed the Location and Presence app on Homey and Owntracks client on my mobile phone (One Plus). Using http and followed instructions for it. Have a geofence Home on the client (and see it in the Homey app).

I have some difficulties:

  1. Using significant change monitoring mode when the latest update is just outside my fence short before I actually arrive at home Homey (off course) will never detect me as being home. How do I solve this?

  2. Even stranger. My household members also have Owntracks client installed and configured with Home geofence (Huawei and iPhone). Now I see two of them in Owntrack as being outside the house, but Homey thinks they are still at home!?
    Updating the position in Owntracks doesnā€™t help. Neither does restarting the Homey app?

  3. What happens if press Delete data within the Location and Presence app?

  4. I see EY as an - to me - unknown friend within Owntracks? Is this actually the Location and Presence app on Homey?

Regards

Joepie, het werkt ineens weer! Ook voor mijn man waar het helemaal niet meer werkte.

Hi.

When i enter a region in the OwnTracks app. It jumps in to the presence and locatio app in homey but it dissapers in the owntracks app. Is it How it should be?

I would Also like the right link for version 2.0 users, and it would be nice if the desceiption tells the link as well.

I would like to add my girlfriend. Is it the same on her phone as the description says?

Last but not least. Sorry for my bad swenglish

Evening All - I have just moved over to Homey from Stringify and I am really struggling to get Location and Presence working.

Iā€™ve installed Owntracks on my partnerā€™s phone and mine and set up exactly the same GeoFence on both handsets in the Owntracks App. When looking at Owntracks, it correctly shows that we are at home or outside the region

When I look at the overview in the Location and Presence App, more often than not, it shows a blank space instead of the fence name.

Iā€™ve tried everything including uninstalling and reinstalling the apps on both our phones and redoing the HTTPS URL again. Iā€™ve double checked, the radius is set to 150 as per the recommendations in this thread.

I really am not sure what else I need to try, so please could I have some help and advice!

Many thanks