[RELEASE] OwnTracks for Hubitat Presence Detection

That's interesting. Let me see if there is a way to get that. I was pulling from the "formatted address" to match what the phone was returning, but there is the whole breakdown of the actual address components as well. Might need to reconstruct a formatted address. I'll look into this!

Oh, and the latest version does a check on the lat/lon to see if the location was within 10m/33ft of the last location, and then re-uses the old address instead of a new one. Let me know if that seems to work. I started with a direct 1:1 lat/lon check, but you can get chatter on the location just sitting at one spot which was trigger the lookup.

2 Likes

Looks like it can return "name" for a physical business if its the only place in that location. Let me play with the results, but this will be easily fixable.

2 Likes

All of recent changes have been great! Yesterday I noticed the reverse geocoder settings and I added an API key - that's going to be a really useful addition.

I haven't fully switched my family to OT yet (it'll be hard to break from Life360 but I'll get there). Anyway, I've been playing around with OT on my phone and a test phone just to get a feel for how well it works.

I also wanted to push out a few updates for HD+ to better support these OT devices too. I had a couple of questions/thoughts if you get time:

  • I see the imperialUnits : true value and I believe that applies to the distanceFromHome attribute. When metric, is that value in meters or kM? For imperial, is it in miles?
    • does imperialUnits apply to any other attributes? For example accuracy or lastSpeed? Today I'm assuming accuracy is always in meters since that's how most OS's report that value. I use it to show a radius around the location. I'm not using lastSpeed today but that would be another value I'll try to support

I'm using your forked OT Android app -- thanks for doing that btw! I remember using the OT Android app months ago and it didn't start on boot and the devs didn't really want to fix that as I recall.

  • When I hit the "Report" button it doesn't seem like anything happens. I don't notice any update happening in the OT device or app. Is there something stopping this (ie: it will only send an update every X seconds?)
  • I read you blocked the 'change monitoring mode' button and that's probably a good idea. But, at least for my own testing I like to be able to quickly disable the app or enter the 'frequent' mode so I can get faster updates. Can it be unblocked in debug mode or something like that (not sure if there is a debug mode but figured I'd ask)
    • also, it could be useful to show a little toast message or something saying the mode is blocked and a report is being sent.. just so it's clear it worked.. very minor just my $.02

Anyway, keep up the great work!

4 Likes

I think you've finally found your "separated at birth" developer twin. You guys must be the most active developers on HE. :wink:

5 Likes

I am getting an error: Http code 504: timeout since yesterday, last location report was 21 hours ago for all devices.
Any suggestions please?

MultiPlace has been updated to work with OwnTracks.

1 Like

Unfortunately still seeing issue where Device attributes are updating great, but tile Speed and Distance gets stuck and does not update.

That's awesome. I will update and will give it a try. Thanks, man

I'm still in the beta territory though so changes could have affected the reporting of battery settings.
I'm at 23125.009 and you are 231005.007

Can you please provide information what needs to be updated in MultiPlace? That would be very helpful.

As I recall correctly only the relevant "People" need to be linked to OwnTracks, right?

That's right. You can ask any Multiplace-related questions on the MultiPlace thread. Thanks!

You are right. Sorry! I think I found the relevant settings.

This still confuses me:

It is phone problem because phone really stays at home but it suddenly jumps 0,8km away from home. I did not find any way to fix that issue in that particular phone (oneplus nord 2).

But if I'm thinking about your app. I do still see log line where it says distance 0,8km and SSID: GHome.
For me it seems like app trusts distance information without checking SSID information. If it would check distance and SSID and if distance is more that 0,0km and SSID is empty..then it would have to mean that phone has really left home circle.

Like I said before.. I'm probably the only one who has to dead with this stupid issue but if your app could somehow help..

Getting this set up and configured for the first time. I seem to be having the same issue that @user6566 was having, but I do have a region called "Home" defined and have that set as the Home place.

On the mobile side, I'm getting http response code error 500. The URL is correct and when I go to it from a web browser on PC or the phone, I get what looks to be a JSON file of location related data.

On the HE app side, I'm getting a lot of this in the logs

I've reinstalled the mobile app at least once, and I did an HPM repair on the HE app. I can try a reinstall of the HE app if that might help.

HE app version: 1.6.31
Mobile app version: 17.1.3/en-_US
iOS 17.3

So I am not sure what version I was on 2 days ago, It has been a week or so since I installed. And 2 days ago I updated and since then my rules I setup no longer work. I was using location and checking for "Left" or "Arrived" as part of the field and it looks like it no longer states left or arrived.

Can you see what changed and get it fixed.

I updated my driver and code to the latest version yesterday and experienced some 500 errors. I reconfigured the app and pushed it to OT and after deleting all the regions that got multiplied again, it all settled down.

I am still having concerns over the updates in so far as they are very poor and slow on my partners iphone, semi regular on mine.

@HAL9000 I deleted and reinstalled the HE code maybe 3-4 times before it started to connect.

So far this isnt a replacement for L360 but thats not by any means a dig at the author who has been extremely dedicated to the cause. I find the push update when leaving or arriving from home simply too slow to be of benefit so far. Trouble is I dont see anything better to take L360s place right now so continuing to trial this for now. Maybe its better on Android?

I am about to update from a C7 to C8Pro so I will let the community know if I see any gains with presence... I might see some improvements with improved performance but the main reason for this jump personally is to implement "matter" interfaces. Wish me luck!

@albertjmulder Mine says Arrived and Departed? Check also you have lost the devices in the upgrade somehow?

its not the arrived / departed, its the left home, arrived home I am looking for. It was under location before not it just says home when home and does not change to anything when leaving. I will be having more "locations" Regions that I add and trigger things based upon that, but now I cant.

1 Like

@lpakula well this is a bit strange. iPhone OT just stopped working out of the blue this afternoon. iPhone was moving then just stopped reporting, even with manual update on map from device.

Interesting, I'm experiencing the reverse. It notifies 'Left' but not when Entered region.