[RELEASE] OwnTracks for Hubitat Presence Detection

He just left but there is no command

What device logs is that from? It looks like it’s pinging it every 60-seconds. This integration doesn’t allow for a ping back to the phone (which is probably why there is a 408 error of no response). It can only wait for the phone to call home.

If you check the logs on that iPhone for OwnTracks it should say why it cannot reach your Hub.

I think it works now. I deleted his phone and reconnected it, now it looks like it’s working

Another Challange, I control the HVAC with the location, can I set it that when my wife is leaving work the HVAC goes into a pre cooling stage and when she's home it goes into real cooling. I'd need a trigger when she leaves a specific location. I know that's a bit much I'm just wondering if I can set and report the leaving of a specific 2nd location. I really like this owntracks and it's a lot of fun playing with it :wink:

Thanks

If you have the region configured in OwnTracks then yes, you can. Look at the Transition Direction & Transition Region on the OT device page and then you can use that in a rule to do the actions that you want.

Something along the lines of: Wife's OT device Transition Direction = Departs & Transition Region = Wife Work THEN turn on pre-cooling

I do this with HA. I already had HA to run the mysubaru app. The leaving work location needs some guardrails (like timeouts). Otherwise, it will trigger when you leave the area for lunch, just an FYI

I have the locations set but I can only see the option present or not present in Rule machine and only for the main location. Do I need the APi settings for that ? I don't wanna pay google for that service

No need to pay more. This is out of the box with this app. In rule machine you want to select custom attribute to find / use the non-standard ones.

Here is an example:

this is where I get lost, I don't have this pixel and transition option. Do I have to install the Owntracks recorder ?

Screenshot 2026-08-04 162653

No, it's part of the OwnTracks driver functionality.

You would pick your phone device - the above was named 'CodyPixel10', and that would have been whatever the phone device shows in OwnTracks. Mine is just called 'Lyle':

image

In that device what you are looking at is the attributes for that device in the right panel. You can trigger off transitionDirection and transitionRegion:

I must be doing something wrong, I don't get the option to choose what location is present nor do I get the option for transition. When I choose present it's always the home location, I can't change it to work location. THe top screenshot is from the Owntracks app, the bottom is from my rule machine. I might be a PITA, I just don't get it :wink:

Ahhh that is your issue. You cannot use "presence sensors" since they only show present/not present.

You need to pick "custom attribute" and then you can use any attribute on the device:

@lpakula

Change request...

I'm using the secondary hub feature to forward Owntracks data to a hub at another location, and then on that hub I'm forwarding it to the Owntracks integration in HomeAssistant. Works great, until I added a SSL certificate on all my hubs and routers (to get rid of the annoying browser nags about untrusted http connections).

I'm using certs created from a self-signed root CA. For whatever reason, HE is ok sending the data to the other hub, but it doesn't like sending the data to HomeAssistant, even though the certs on HA and HE are all derived from the same self-signed root CA.

The preferred solution would be to add a root CA to HE, but AFAIK that's not possible. Adding ignoreSSLIssues: true to the OwnTracks app resolved the issue.

I added that to the def postParams = [...] statements at lines 1209, 1215 and 2076.

Could you add this to the code, or perhaps better, add an option in the secondary hub setup to add the ignoreSSLIssues setting.

Thanks!

Good catch! Self-signed can be tricky with some of those linux/java based apps.

I just pushed v1.9.7 that adds two sliders - one for secondary hub, the second for the recorder. They default to "off" which was the previous behavior. Just select them to address the issue you are having.

What took you so long :grinning_face: ? I made the request over 8 hours ago.

Seriously, thanks very much. This whole exercise with creating and installing certs on all my devices turned out to be a real pita.

Just had nothing better to do last night. :grinning_face_with_smiling_eyes: