# \[APP\]\[Pro\] Location and Presence (Owntracks)

**URL:** <https://community.homey.app/t/app-pro-location-and-presence-owntracks/5126>\
**Category:** Apps\
**Tags:** app, tools, presence, howto\
**Created:** [December 8, 2018, 6:56pm UTC](https://community.homey.app/t/app-pro-location-and-presence-owntracks/5126 "2018-12-08T18:56:48Z")\
**Posts on this page:** 20\
**Page:** 7

<div class="post-metadata">

**Author:** ![Matsaki](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/matsaki/32/13452_2.png) [@Matsaki](https://community.homey.app/u/Matsaki)\
**Post date:** [September 16, 2019, 10:25am UTC](https://community.homey.app/t/app-pro-location-and-presence-owntracks/5126/128 "2019-09-16T10:25:11Z")

</div>

I restarted Homey and now it works. Now I just have to get away from home to test it 🙂

---

<div class="post-metadata">

**Author:** ![PO\_Blomstrand](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/po_blomstrand/32/12476_2.png) [@PO\_Blomstrand](https://community.homey.app/u/PO_Blomstrand)\
**Post date:** [September 16, 2019, 10:26am UTC](https://community.homey.app/t/app-pro-location-and-presence-owntracks/5126/129 "2019-09-16T10:26:13Z")

</div>

Great!

---

<div class="post-metadata">

**Author:** ![MoPepettes](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mopepettes/32/14988_2.png) [@MoPepettes](https://community.homey.app/u/MoPepettes)\
**Post date:** [September 16, 2019, 10:32am UTC](https://community.homey.app/t/app-pro-location-and-presence-owntracks/5126/130 "2019-09-16T10:32:55Z")

</div>

Hi there, where do you find the users tokens? In the Homey system, i’ve got only “Family” the the users but no tokens…

---

<div class="post-metadata">

**Author:** ![scanno](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/scanno/32/8358_2.png) [@scanno](https://community.homey.app/u/scanno)\
**Post date:** [September 16, 2019, 10:48am UTC](https://community.homey.app/t/app-pro-location-and-presence-owntracks/5126/131 "2019-09-16T10:48:49Z")

</div>

User tokens for location & presence should be created in the location & presence app on Homey

 ![Screenshot_Homey_20190916-124639](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/2/2ca07ddc513ab54a79147a6aceecad41158d00ff.png)

Oh and your settings page will look different because this is a Work in Progress

---

<div class="post-metadata">

**Author:** ![MoPepettes](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mopepettes/32/14988_2.png) [@MoPepettes](https://community.homey.app/u/MoPepettes)\
**Post date:** [September 16, 2019, 11:48am UTC](https://community.homey.app/t/app-pro-location-and-presence-owntracks/5126/132 "2019-09-16T11:48:36Z")

</div>

Thanks, i didn’t unsterdand i needed this app.

---

<div class="post-metadata">

**Author:** ![MoPepettes](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mopepettes/32/14988_2.png) [@MoPepettes](https://community.homey.app/u/MoPepettes)\
**Post date:** [September 16, 2019, 4:55pm UTC](https://community.homey.app/t/app-pro-location-and-presence-owntracks/5126/133 "2019-09-16T16:55:58Z")

</div>

ok, so i’m using CloudMQTT, connexions are ok. The problem is Location and Presence doesn’t see the Fence i’ve created in Owntracks. It seems i’ve missed something…

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/0/015edd77e6c25e8d1d05ce35286b48e8ab7feb00.png)

Should i create a fence here, with the same name i’ve used in Owntracks’s region?

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/3/3d2f14567a79786fcc90c8849011312cef306b5d.png)

---

<div class="post-metadata">

**Author:** ![scanno](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/scanno/32/8358_2.png) [@scanno](https://community.homey.app/u/scanno)\
**Post date:** [September 16, 2019, 5:18pm UTC](https://community.homey.app/t/app-pro-location-and-presence-owntracks/5126/134 "2019-09-16T17:18:28Z")

</div>

Can you check the log in the location&presence app?  
If you create a fence in the owntracks app on your phone it should automatically be created in the location&presence app.

---

<div class="post-metadata">

**Author:** ![MoPepettes](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mopepettes/32/14988_2.png) [@MoPepettes](https://community.homey.app/u/MoPepettes)\
**Post date:** [September 16, 2019, 5:20pm UTC](https://community.homey.app/t/app-pro-location-and-presence-owntracks/5126/135 "2019-09-16T17:20:37Z")

</div>

20190916-19:09:27 initVars called  
20190916-19:09:27 connectedClient == null  
20190916-19:09:27 Broker URL: mqtts://Farmer.cloudmqtt.com:26725  
20190916-19:09:27 keepalive: 60  
20190916-19:09:27 rejectUnauthorized: false  
20190916-19:09:28 Subscribed to owntracks/#  
20190916-19:09:28 TriggerHandler constructor called  
20190916-19:09:28 EventTrigger constructor called  
20190916-19:09:28 Trigger constructor called  
20190916-19:09:28 Trigger onInit() called  
20190916-19:09:28 EventTrigger setAutocompleteActions called  
20190916-19:09:28 EnterTrigger constructor called  
20190916-19:09:28 Trigger constructor called  
20190916-19:09:28 Trigger onInit() called  
20190916-19:09:28 EnterTrigger setAutocompleteActions called  
20190916-19:09:28 LeaveTrigger constructor called  
20190916-19:09:28 Trigger constructor called  
20190916-19:09:28 Trigger onInit() called  
20190916-19:09:28 LeaveTrigger setAutocompleteActions called  
20190916-19:09:28 BatteryTrigger constructor called  
20190916-19:09:28 Trigger constructor called  
20190916-19:09:28 Trigger onInit() called  
20190916-19:09:28 BatteryTrigger setAutocompleteActions called  
20190916-19:09:28 registerActions called  
20190916-19:09:28 createAutocompleteActions called  
20190916-19:09:28 registerSpeech  
20190916-19:09:28 registerConditions called  
20190916-19:09:29 MQTT client connected  
20190916-19:09:29 Connected Topics: owntracks/#  
20190916-19:09:29 Broker State: CONNECTED  
20190916-19:09:29 OnMessage called  
20190916-19:09:29 received ‘{“cog”:184,“batt”:22,“lon”:0.14673317782594517,“acc”:5,“p”:101.16678619384766,“bs”:1,“vel”:0,“vac”:3,“lat”:47.933135986328125,“t”:“u”,“conn”:“w”,“tst”:1568653022,“alt”:55,"\_type":“location”,“tid”:“9C”}’ on ‘owntracks/Yohann/EB194A2A-4CB5-497F-8AD5-199F4119D09C’  
20190916-19:09:29 Device changed for user Yohann to EB194A2A-4CB5-497F-8AD5-199F4119D09C  
20190916-19:09:29 We have received a location message  
20190916-19:09:29 Set battery percentage for Yohann to 22%  
20190916-19:10:25 getLogLines called  
20190916-19:16:15 getFenceArray called  
20190916-19:17:11 getFenceArray called  
20190916-19:17:27 Delete fence called: Maison  
20190916-19:17:27 Deleted fence: undefined  
20190916-19:17:27 saveFenceData called  
20190916-19:17:27 getFenceArray called  
20190916-19:18:42 getLogLines called

---

<div class="post-metadata">

**Author:** ![MoPepettes](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mopepettes/32/14988_2.png) [@MoPepettes](https://community.homey.app/u/MoPepettes)\
**Post date:** [September 16, 2019, 5:21pm UTC](https://community.homey.app/t/app-pro-location-and-presence-owntracks/5126/136 "2019-09-16T17:21:49Z")

</div>

> [@MoPepettes](#):
>
> 20190916-19:17:27 Delete fence called: Maison

It’s me trying but as you said, the fence should be created by the app

---

<div class="post-metadata">

**Author:** ![MoPepettes](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mopepettes/32/14988_2.png) [@MoPepettes](https://community.homey.app/u/MoPepettes)\
**Post date:** [September 16, 2019, 5:25pm UTC](https://community.homey.app/t/app-pro-location-and-presence-owntracks/5126/137 "2019-09-16T17:25:32Z")

</div>

Got it! I had to publish the waypoints in owntracks. Then the fence appeared.

---

<div class="post-metadata">

**Author:** ![Pacho](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pacho/32/12515_2.png) [@Pacho](https://community.homey.app/u/Pacho)\
**Post date:** [October 4, 2019, 5:40pm UTC](https://community.homey.app/t/app-pro-location-and-presence-owntracks/5126/138 "2019-10-04T17:40:21Z")

</div>

Hi, Im trying to work this out.

I have created a cloudmqtt no problem there, set the access to read/write  
I have setup the mqtt broker app in the homey and generated a certificate, pasted it and emailed it to my comp, used nano and created a file with the pem extension. and airdropped it to my iphone.

But when I enter the owntrack and press i on the proto 4 line I cant find any certificates…HTH do I save them so that I can load them in the app??

---

<div class="post-metadata">

**Author:** ![Frans\_Keeman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frans_keeman/32/79711_2.png) [@Frans\_Keeman](https://community.homey.app/u/Frans_Keeman)\
**Post date:** [November 11, 2019, 7:42pm UTC](https://community.homey.app/t/app-pro-location-and-presence-owntracks/5126/139 "2019-11-11T19:42:31Z")

</div>

Hello all,

As nothing seems to work so far as a location tool i want to try if Owntracks works. Starting with HTTP connection first as i want to see first if it works. MQTT will be an option for later if i can figure out how that works. I have installed the app on homey and on 2 phones. Both huawei mate 20 pro’s. Android 9.0.  
Homey had 3.1 installed. I made 1 region called “thuis”. so far so good. I don’t. See the correct settings in the homey app

 ![homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/2/22c5ebd019f96d0c8df3c15e900df5907caab360.jpeg)

the fence data is not updating! What am i doing wrong. Already been out today several times so thats not the case.still not updating . Tried to set inregions in location. No change

 ![homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/8/e893abf6529e64c9c4c714f2a72c4109bf5b01ce.jpeg)

this is what the log tells me

I have tried restarting homey, no luck. remote commands is on, inaccurate locations is set to 50.

i am out of options to try, can anyone tell me what i am doing wrong?

---

<div class="post-metadata">

**Author:** ![ChrisBoer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/chrisboer/32/1252_2.png) [@ChrisBoer](https://community.homey.app/u/ChrisBoer)\
**Post date:** [November 28, 2019, 4:25pm UTC](https://community.homey.app/t/app-pro-location-and-presence-owntracks/5126/141 "2019-11-28T16:25:43Z")

</div>

Did you define the geofences in the APP on your mobile and did you put your app on “MOVE” mode when you click on the MAP on Owntracks application on your mobile.

When you define your fences there they will automatically be created in the homey app.

---

<div class="post-metadata">

**Author:** ![Brammert](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/brammert/32/12965_2.png) [@Brammert](https://community.homey.app/u/Brammert)\
**Post date:** [January 27, 2020, 4:25pm UTC](https://community.homey.app/t/app-pro-location-and-presence-owntracks/5126/142 "2020-01-27T16:25:27Z")

</div>

I installed Own tracks on the recent Samsung of both my wife and myself, and set up an HTTP link via the Homey cloud to my Homey (standard version, standard OS level) and the Location and Presence app, all conform the guidelines given in the top of this thread. No need for geofencing and Homey flows at this stage.

I can see the location data for both Samsungs appearing correctly in Homey’s Location and Presence, but it is unclear to me how to arrange access to “friends” location using this approach, as I need access to my wife’s location as well as my own, and vice versa. I see only the user “te” in the friends list (guess that’s me). Same for my wife.

I am used to chasing the Internet for solutions, but so far no luck. The HTTP section in the Owntracks booklet only confuses me. So what am I missing???

---

<div class="post-metadata">

**Author:** ![scanno](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/scanno/32/8358_2.png) [@scanno](https://community.homey.app/u/scanno)\
**Post date:** [January 27, 2020, 4:42pm UTC](https://community.homey.app/t/app-pro-location-and-presence-owntracks/5126/143 "2020-01-27T16:42:05Z")

</div>

The current implementation of Owntracks in the store can only receive events. It is not bidirectional. When using a MQTT broker that will work fine (all connected devices will receive the location changes from other devices that are authorized). So with https, the friends list on your phone does not get populated. You need a MQTT broker for that.

I have a highly experimental version that supports directional https and a lot of more enhancements, but due to lack of time, i am not able to finish the last bits (mainly configuration interface).

---

<div class="post-metadata">

**Author:** ![Hannes85](https://avatars.discourse-cdn.com/v4/letter/h/e79b87/32.png) [@Hannes85](https://community.homey.app/u/Hannes85)\
**Post date:** [January 27, 2020, 5:04pm UTC](https://community.homey.app/t/app-pro-location-and-presence-owntracks/5126/144 "2020-01-27T17:04:28Z")

</div>

With MQTT broker here and the friends are not populated either. Has never been working properly (last update of my partner on my phone was 3 months ago…). Still do not understand what the problem is there. Geofencing itself is working properly.

---

<div class="post-metadata">

**Author:** ![Brammert](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/brammert/32/12965_2.png) [@Brammert](https://community.homey.app/u/Brammert)\
**Post date:** [January 28, 2020, 11:52am UTC](https://community.homey.app/t/app-pro-location-and-presence-owntracks/5126/145 "2020-01-28T11:52:49Z")

</div>

The Owntracks booklet advises to use HTTP rather than MQTT when dealing with Android smartphones, because of the Android restrictions imposed on apps running in the background. That’s why I chose the HTTP route. Are there any positive experiences in the field running MQTT with Owntracks on Android smartphones (“friends” feature)??

---

<div class="post-metadata">

**Author:** ![Brammert](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/brammert/32/12965_2.png) [@Brammert](https://community.homey.app/u/Brammert)\
**Post date:** [April 29, 2020, 2:57pm UTC](https://community.homey.app/t/app-pro-location-and-presence-owntracks/5126/146 "2020-04-29T14:57:27Z")

</div>

Further to my HTTP troubles depicted above: I finally decided to try out the MQTT route. I installed the Mosquitto MQTT broker on my Centos 7 server, took out a Lets Encrypt certificate, adapted the Owntracks app on both Samsungs and Homey’s Location @ Presence app to work with my MQTT broker, and even installed Owntracks Recorder on Centos 7 (with some difficulty: no viable installation package at this stage other than Docker).

It all works like a charm now. Today I set up a geofence for “home” together wit a bunch of Homey flows and even that seems to work. Kudos for all the developers, and thanks for the support given in this thread: very helpful!

---

<div class="post-metadata">

**Author:** ![Tangodelta](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tangodelta/32/9471_2.png) [@Tangodelta](https://community.homey.app/u/Tangodelta)\
**Post date:** [April 30, 2020, 11:15am UTC](https://community.homey.app/t/app-pro-location-and-presence-owntracks/5126/147 "2020-04-30T11:15:23Z")

</div>

draining battery as much as an drunken sailor empties the bar.

---

<div class="post-metadata">

**Author:** ![Lars\_Faber](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/lars_faber/32/8118_2.png) [@Lars\_Faber](https://community.homey.app/u/Lars_Faber)\
**Post date:** [April 30, 2020, 11:38am UTC](https://community.homey.app/t/app-pro-location-and-presence-owntracks/5126/148 "2020-04-30T11:38:16Z")

</div>

Do you have it on “Significant changes monitoring” mode?

[Previous page](https://community.homey.app/t/app-pro-location-and-presence-owntracks/5126.md?page=6)

[Next page](https://community.homey.app/t/app-pro-location-and-presence-owntracks/5126.md?page=8)
