# IOS Presence app (locative)

**URL:** <https://community.homey.app/t/ios-presence-app-locative/14451>\
**Category:** Ideas & Suggestions\
**Tags:** presence\
**Created:** [June 15, 2019, 2:23pm UTC](https://community.homey.app/t/ios-presence-app-locative/14451 "2019-06-15T14:23:17Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [June 15, 2019, 2:23pm UTC](https://community.homey.app/t/ios-presence-app-locative/14451/1 "2019-06-15T14:23:17Z")

</div>

**An IOS presence app working with webhooks.**

Found an IOS presence app in the app-store working with webhooks or GET requests. So you can use the build-in logic cards in Homey for receiving a webhook or the Better Logic app for receiving a GET request.

Go with your IOS device to [this link](https://apps.apple.com/nl/app/locative/id725198453) and download the app.

**Setting a geofence**

When you first downloaded the app the geofences will be empty. Click the + sign on the top right to add a geofence.

 ![Geo](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/9/9e3447d116f186af54c624fdca20bb1a6f97ebf4.png)

**Setting the url**

When the geofence is added you can also add the GET url for the webhook at the “Trigger on Arrival”. The url for the webhook will look like this:

`https://Homey-cloud-ID.connect.athom.com/api/manager/logic/webhook/event?tag=tag`

In this example i used “locative” as event and “rocohome” as tag.  
The url should look like this then:

`https://Homey-cloud-ID.connect.athom.com/api/manager/logic/webhook/locative?tag=rocohome`

Your Homey Cloud ID can be found [here](http://developer.athom.com/tools/system).

We can also fill in an url for “Trigger on Departure” ofc, works the same way but with a different tag.

 ![url](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/0/0dc7b08a8d93c917c48c6edbdc483fb304507fe3.jpeg)

**Making some flows**  
Now it’s time to make some flows to do something with the webhooks we get. I’ll explain 1 flow, rest should be doable me guess.

**The WHEN part**  
Flow starts with a logic card (build-in in Homey) and we choose “A webhook has been recieved”.

![webhook1](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/f/fa817cd1a952dda09396c4e60a82a507f8bad843.png)

With event we fill in the event we are triggering on, in my case this is “locative”

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

**The AND part**  
For the AND part we pick a logic card again and choose “contains”.

![chrome_2021-04-08_17-21-30](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/3/f39b6bc1906a38bb5e06289612acf410302cad0e.png)

After that we click the tag thingie with the ? in it and we choose the “tag” tag on the top where it says “This flow” .

![chrome_2021-04-08_17-24-01](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/d/dd255cbe0e6fd6e19b26d74715321aeaa43266b9.png)

For the txt from that tag we choose what we filled in in the IOS app. In my case this is “rocohome”

![chrome_2021-04-08_17-24-34](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/4/d4967560cdbd267420e5446b5fff2a1aea2791be.png)

**The THEN part**  
For this part you can choose whatever you like ofcourse.

Hope you enjoy using this app and please let us know your findings in this topic.

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [June 15, 2019, 3:40pm UTC](https://community.homey.app/t/ios-presence-app-locative/14451/2 "2019-06-15T15:40:31Z")

</div>

Reserved

---

<div class="post-metadata">

**Author:** ![TonD](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tond/32/50_2.png) [@TonD](https://community.homey.app/u/TonD)\
**Post date:** [June 17, 2019, 1:40pm UTC](https://community.homey.app/t/ios-presence-app-locative/14451/3 "2019-06-17T13:40:37Z")

</div>

Great @Rocodamelshekima, looking forward to play with this. However the urls are wrong, the “&tag=” should be “?tag=” 😉

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [June 17, 2019, 2:06pm UTC](https://community.homey.app/t/ios-presence-app-locative/14451/4 "2019-06-17T14:06:28Z")

</div>

That will be correct! Dunno how it got there but changed it, thnx

---

<div class="post-metadata">

**Author:** ![Marcel\_Ubels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ubels/32/18860_2.png) [@Marcel\_Ubels](https://community.homey.app/u/Marcel_Ubels)\
**Post date:** [June 17, 2019, 2:47pm UTC](https://community.homey.app/t/ios-presence-app-locative/14451/5 "2019-06-17T14:47:16Z")

</div>

On a lazy sunday I will give this a go. Hope this will make presence detection better. At this moment presence detection is not as accurate as I want(tried homey, nest and fing presence). Only slight problem is I don’t know nothing about webhooks and GET requests😄. Thx;-)

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [June 17, 2019, 2:50pm UTC](https://community.homey.app/t/ios-presence-app-locative/14451/6 "2019-06-17T14:50:19Z")

</div>

> [@Marcel\_Ubels](#):
>
> Only slight problem is I don’t know nothing about webhooks and GET requests

And there for is this explanation ofc. 😉

---

<div class="post-metadata">

**Author:** ![TonD](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tond/32/50_2.png) [@TonD](https://community.homey.app/u/TonD)\
**Post date:** [June 17, 2019, 6:03pm UTC](https://community.homey.app/t/ios-presence-app-locative/14451/7 "2019-06-17T18:03:49Z")

</div>

Tested this on my way home today and seems to work very well. Problem is, almost all location solutions work initially and stop working after a little while. So too early to tell if this will be more reliable or not.

@Rocodamelshekima Have you been using this solution for a while already, i.e. are you able to comment on reliability of a longer period?

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [June 17, 2019, 6:05pm UTC](https://community.homey.app/t/ios-presence-app-locative/14451/8 "2019-06-17T18:05:28Z")

</div>

> [@TonD](#):
>
> of a longer period?

Using it for like 4 days now so cannot answer that yet. Made 2 geofences and they both work like they should for those 4 days.

---

<div class="post-metadata">

**Author:** ![Ikon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ikon/32/11729_2.png) [@Ikon](https://community.homey.app/u/Ikon)\
**Post date:** [June 17, 2019, 8:49pm UTC](https://community.homey.app/t/ios-presence-app-locative/14451/9 "2019-06-17T20:49:13Z")

</div>

Should the cloud id in the locative app be with or without the ” marks?  
Like ”xxxxxxx”

---

<div class="post-metadata">

**Author:** ![ktd](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ktd/32/11761_2.png) [@ktd](https://community.homey.app/u/ktd)\
**Post date:** [June 17, 2019, 9:03pm UTC](https://community.homey.app/t/ios-presence-app-locative/14451/10 "2019-06-17T21:03:22Z")

</div>

Do “we” think this way will work for a while?

> PLEASE NOTE: As announced in [https://blog.locative.io/bye-everyone-df01871fe949](https://blog.locative.io/bye-everyone-df01871fe949) I’ve shut down [my.locative.io](http://my.locative.io) effectively 14th of May 2017. This app will remain in the App Store for reference reasons but won’t ben further supported. Please look at [Locative · GitHub](https://github.com/LocativeHQ) for its Source Code.

Seem to be a good and easy way to do presence though.

---

<div class="post-metadata">

**Author:** ![Marcel\_Ubels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ubels/32/18860_2.png) [@Marcel\_Ubels](https://community.homey.app/u/Marcel_Ubels)\
**Post date:** [June 18, 2019, 4:02pm UTC](https://community.homey.app/t/ios-presence-app-locative/14451/11 "2019-06-18T16:02:31Z")

</div>

> [@Rocodamelshekima](#):
>
> n this example i used “locative” as event and “rocohome” as tag.

Just curious, how did you find “locative” in the app I don’t fiend anything pointing to that. Is that some kind off standard search string? I did manage, quit easely, your tutorial. So it is “Monkey proof”.😉

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [June 18, 2019, 4:04pm UTC](https://community.homey.app/t/ios-presence-app-locative/14451/12 "2019-06-18T16:04:46Z")

</div>

> [@Marcel\_Ubels](#):
>
> Just curious, how did you find “locative” in the app

Not sure what u mean. Like how did i find it in the app-store or?

---

<div class="post-metadata">

**Author:** ![Marcel\_Ubels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ubels/32/18860_2.png) [@Marcel\_Ubels](https://community.homey.app/u/Marcel_Ubels)\
**Post date:** [June 18, 2019, 4:19pm UTC](https://community.homey.app/t/ios-presence-app-locative/14451/13 "2019-06-18T16:19:00Z")

</div>

No, you use the term locative. How do you know that?

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [June 18, 2019, 4:32pm UTC](https://community.homey.app/t/ios-presence-app-locative/14451/14 "2019-06-18T16:32:43Z")

</div>

Still confused. The app is called Locative so i used it in the examples. U can replace locative in the above examples with whatever u like as long as u use the same replacements in the flows.  
U send a webhook in the locative IOS app with /locative?tag=tag.  
Can also be /amstel?tag=tag as long as u use the same eventname in the Homey flows.

> [@Ikon](#):
>
> Should the cloud id in the locative app be with or without the ” marks?  
> Like ”xxxxxxx”

Cloud ID is without the quote marks.

---

<div class="post-metadata">

**Author:** ![Marcel\_Ubels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ubels/32/18860_2.png) [@Marcel\_Ubels](https://community.homey.app/u/Marcel_Ubels)\
**Post date:** [June 18, 2019, 6:23pm UTC](https://community.homey.app/t/ios-presence-app-locative/14451/15 "2019-06-18T18:23:05Z")

</div>

Ah now it makes sense.

---

<div class="post-metadata">

**Author:** ![Ikon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ikon/32/11729_2.png) [@Ikon](https://community.homey.app/u/Ikon)\
**Post date:** [June 19, 2019, 4:39pm UTC](https://community.homey.app/t/ios-presence-app-locative/14451/16 "2019-06-19T16:39:08Z")

</div>

I can’t it to work, i think i’ve done all the correct settings. Anyone else having problems.  
I’ve set up flows for both me and my gf, none work.

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [June 19, 2019, 4:48pm UTC](https://community.homey.app/t/ios-presence-app-locative/14451/17 "2019-06-19T16:48:37Z")

</div>

In the settings part there is an option to test the webhook. Can u test that to rule some things out?

---

<div class="post-metadata">

**Author:** ![Ikon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ikon/32/11729_2.png) [@Ikon](https://community.homey.app/u/Ikon)\
**Post date:** [June 20, 2019, 7:20am UTC](https://community.homey.app/t/ios-presence-app-locative/14451/18 "2019-06-20T07:20:23Z")

</div>

Hmm, where? Can’t find it

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [June 20, 2019, 7:40am UTC](https://community.homey.app/t/ios-presence-app-locative/14451/19 "2019-06-20T07:40:39Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Ikon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ikon/32/11729_2.png) [@Ikon](https://community.homey.app/u/Ikon)\
**Post date:** [June 20, 2019, 7:47am UTC](https://community.homey.app/t/ios-presence-app-locative/14451/20 "2019-06-20T07:47:22Z")

</div>

U greyed out URL? What should i put in there?

[Next page](https://community.homey.app/t/ios-presence-app-locative/14451.md?page=2)
