# Presence with owntracks cloudmqtt and homey headache

**URL:** <https://community.homey.app/t/presence-with-owntracks-cloudmqtt-and-homey-headache/2218>\
**Category:** Questions & Help\
**Created:** [September 28, 2018, 1:02pm UTC](https://community.homey.app/t/presence-with-owntracks-cloudmqtt-and-homey-headache/2218 "2018-09-28T13:02:11Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marius\_Muresan](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marius_muresan/32/9541_2.png) [@Marius\_Muresan](https://community.homey.app/u/Marius_Muresan)\
**Post date:** [September 28, 2018, 1:02pm UTC](https://community.homey.app/t/presence-with-owntracks-cloudmqtt-and-homey-headache/2218/1 "2018-09-28T13:02:11Z")

</div>

Hi, hopefully i´m in the right place for my problem… 🙂

I have tried homey´s presence and smart presence but the one i see more reliable is owntracks (iphone) and a cloudmqtt + homey app owntracks.

So everything is set up according to guides found in the archive and homey app is getting info from the broker like pushes when fences are changed or get in and out of fences but my main issue is that no flow is triggered (not even testing the flow) based on the owntracks triggers.  
The users and geofences are shown in the triggers also and i have a simple flow like leave the fence then set boolean to false and vice versa also set user presence tag to yes or no. But these are not working at all… 😫

In fact i even tried a flow based on homey location, nothing regarding location seems to work…

Is there enyone there using this setup for presence as the archive forum is read-only…

My homey is running on 1.5.13-rc11 and rebooted a couple of times.

Appreciate some help.

---

<div class="post-metadata">

**Author:** ![Deadlifter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/deadlifter/32/32142_2.png) [@Deadlifter](https://community.homey.app/u/Deadlifter)\
**Post date:** [September 28, 2018, 1:58pm UTC](https://community.homey.app/t/presence-with-owntracks-cloudmqtt-and-homey-headache/2218/2 "2018-09-28T13:58:12Z")

</div>

Hi Marius, i use Owntracks and Smart Presence as my automatic alarm system and this works great. Have to admit that sometimes after updates it’s hard to get everything working again but restarting Owntracks server on cloudmqqt and the app works for me. If needed i can send you on Slack in a direct message my setup to help.

---

<div class="post-metadata">

**Author:** ![Marius\_Muresan](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marius_muresan/32/9541_2.png) [@Marius\_Muresan](https://community.homey.app/u/Marius_Muresan)\
**Post date:** [September 28, 2018, 3:13pm UTC](https://community.homey.app/t/presence-with-owntracks-cloudmqtt-and-homey-headache/2218/3 "2018-09-28T15:13:05Z")

</div>

Hi there and thanks 🙂  
I don´t use slack but messenger instead.

I did a restart but it didn´t helped. My concern is that even testing this simple flow is doing nothing. It runs without errors but nothing happens…!?

P.S. maybe i´ll install slack as well 🙂

![mqtt_flow](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/b/b5117e9ca68f8ff349007574b67fb3b48650ec30.jpeg)

---

<div class="post-metadata">

**Author:** ![Deadlifter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/deadlifter/32/32142_2.png) [@Deadlifter](https://community.homey.app/u/Deadlifter)\
**Post date:** [September 29, 2018, 6:45am UTC](https://community.homey.app/t/presence-with-owntracks-cloudmqtt-and-homey-headache/2218/4 "2018-09-29T06:45:47Z")

</div>

![41](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/9/90ab888573c8d441ab20dd8b7c3f99b60eb2505e.jpeg)  
Try this instead to mark a user as at homer or away  
I use similar flows for leaving and other users

---

<div class="post-metadata">

**Author:** ![Deadlifter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/deadlifter/32/32142_2.png) [@Deadlifter](https://community.homey.app/u/Deadlifter)\
**Post date:** [September 29, 2018, 6:47am UTC](https://community.homey.app/t/presence-with-owntracks-cloudmqtt-and-homey-headache/2218/5 "2018-09-29T06:47:47Z")

</div>

![51](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/5/51a16d686c10b3fec0286b4b6930e6b99ebad316.png)  
And this is the way to switch the alarm system on

---

<div class="post-metadata">

**Author:** ![Marius\_Muresan](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marius_muresan/32/9541_2.png) [@Marius\_Muresan](https://community.homey.app/u/Marius_Muresan)\
**Post date:** [September 29, 2018, 12:58pm UTC](https://community.homey.app/t/presence-with-owntracks-cloudmqtt-and-homey-headache/2218/6 "2018-09-29T12:58:00Z")

</div>

Tried, it is exactly what is not working. It´s like somewere the presence function is disabled globally in the system. Nothing with presence works… !? Dont even know what to investigate any longer…😫

I´ve got Slack installed but dont know what to do next. I´ve created a work place also. Newbie at this…

/M

---

<div class="post-metadata">

**Author:** ![Marius\_Muresan](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marius_muresan/32/9541_2.png) [@Marius\_Muresan](https://community.homey.app/u/Marius_Muresan)\
**Post date:** [September 29, 2018, 1:08pm UTC](https://community.homey.app/t/presence-with-owntracks-cloudmqtt-and-homey-headache/2218/7 "2018-09-29T13:08:52Z")

</div>

just to make shure

in homey owntracks, the user name must be the user name for the broker, right. not for my user.  
In the iphone app the user name i my user name as i´ve created it in the broker with read/wright rights.

I´ve now changed my home region radius and i can see in the homey logs that it has received the update for radius. That should mean that the connection is ok and the flows should be triggered.

20180929-14:28:12 received ‘{“batt”:96,“lon”:15.498794700734914,“acc”:32,“p”:100.96738433837891,“vel”:1,“vac”:3,“lat”:58.496804440228019,“inregions”:[“hemma\_ljungs”],“conn”:“w”,“tst”:1538224085,“alt”:77,"\_type":“location”,“tid”:“NE”}’ on ‘owntracks/Marius\_Muresan/Marius\_iphone’  
20180929-14:28:12 We have received a location message  
20180929-14:28:12 Set battery percentage for Marius\_Muresan to 96%  
20180929-14:50:01 getUserArray called  
20180929-14:50:06 getLogLines called  
20180929-15:05:08 OnMessage called  
20180929-15:05:08 received ‘{"\_type":“waypoint”,“tst”:1538123042,“lat”:58.496924843754002,“lon”:15.498893865267,“rad”:70,“desc”:“hemma\_ljungs”}’ on ‘owntracks/Marius\_Muresan/Marius\_iphone/waypoint’  
20180929-15:05:08 We have received a waypoint message  
20180929-15:05:08 saveFenceData called  
20180929-15:05:08 Fence: hemma\_ljungs changed  
20180929-15:05:14 getUserArray called  
20180929-15:05:20 getLogLines called  
20180929-15:09:34 getLogLines called

/M

---

<div class="post-metadata">

**Author:** ![Marius\_Muresan](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marius_muresan/32/9541_2.png) [@Marius\_Muresan](https://community.homey.app/u/Marius_Muresan)\
**Post date:** [September 30, 2018, 7:04pm UTC](https://community.homey.app/t/presence-with-owntracks-cloudmqtt-and-homey-headache/2218/8 "2018-09-30T19:04:11Z")

</div>

@Deadlifter  
In owntracks app in homey do you see in what fence your user is?  
 ![fence](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/a/a2952175e677105b3691b22cfbf0111a11824e74.jpeg)

---

<div class="post-metadata">

**Author:** ![Deadlifter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/deadlifter/32/32142_2.png) [@Deadlifter](https://community.homey.app/u/Deadlifter)\
**Post date:** [October 26, 2018, 7:21am UTC](https://community.homey.app/t/presence-with-owntracks-cloudmqtt-and-homey-headache/2218/9 "2018-10-26T07:21:31Z")

</div>

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

As you see i can but i’m aware it shows not always up

---

<div class="post-metadata">

**Author:** ![Deadlifter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/deadlifter/32/32142_2.png) [@Deadlifter](https://community.homey.app/u/Deadlifter)\
**Post date:** [October 26, 2018, 7:23am UTC](https://community.homey.app/t/presence-with-owntracks-cloudmqtt-and-homey-headache/2218/10 "2018-10-26T07:23:36Z")

</div>

Sorry for answering so late, i didn’t get notified. If you need help i can support you if you send me a DM on Slack, My username there is Deadlifter

---

<div class="post-metadata">

**Author:** ![Marius\_Muresan](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marius_muresan/32/9541_2.png) [@Marius\_Muresan](https://community.homey.app/u/Marius_Muresan)\
**Post date:** [October 26, 2018, 12:25pm UTC](https://community.homey.app/t/presence-with-owntracks-cloudmqtt-and-homey-headache/2218/11 "2018-10-26T12:25:22Z")

</div>

No problems, i gave up on that and started using the automation in HomeKit instead. That works quite well now.

Thanks anyway 👍

---

<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 19, 2018, 3:46pm UTC](https://community.homey.app/t/presence-with-owntracks-cloudmqtt-and-homey-headache/2218/12 "2018-11-19T15:46:48Z")

</div>

Hi all,

Because presence is not working at all i tried to get owntracks working. After reading for 2 days and trying to figure out how this work the result is still zero. What am i doing wrong.

I am using a CloudMQTT acount and made 3 users. 1 for Homey en 2 phones . So far a walk in the park. I added the topics with read and write acces.

have edited the post as i am still going forward. All the errors seem the be fixed and the app says “connected” at my home adress. I there a way to see its all working now? I am not sure if everything in homey is fine now?  
Do i have to add users in the Homey app?  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/d/deabc67b229bd2e814b51b54249a206f3218e252.png)

Looks like there is still an issue. Homey is connected i think  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/4/47afde4c477d945dfcc02a0bc4db9ef459e7d85c.png)

in the CloudMQTT log i find the following which is an error i think  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/2/23e00d7555ee1f3d1bc626d5839409b37b81fd09.png)

manmanman finally got it to work. tjis is wat i see now in the log of CLOUDMQTT  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/7/7d2a089f2c740a08ecccd7796c26b8f246207453.png)

now some flows and maybe it wil work finally
