-
-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate Geofence-based Presence #343
Comments
I wouldnt know how to do this without exposing some interface to the internet. You will need at least openhab or openhab cloud companion to connect to.
Technicaly you could use homekit tags in some way. See comment of @digitaldan #334 (comment)
Also have a look at #269 which is quite similar |
I'll see what I can put together. |
We should get some thoughts of @digitaldan about this feature in generell and from @kaikreuzer about homekit tags usage in clients |
Geo tagging would be a great feature for sure.
I agree this would be a simple solution and best for battery life. I also like that it would be easy to duplicate on IOS and does not require any special configuration. |
Ok great. I should have a basic PoC working shortly. Thoughts on how to get the home location (and radius) from the server? |
Would be great if you could implement this in a way that makes it easy to send other stuff to oh |
I would keep this very simple and just associate entering/exiting a geofence with an existing switch in OH. The user can then decide if that switch is "home". |
Yup, that's exactly what I have implemented -- working great! As it is, the
center and radius is defined in app preferences. That's certainly workable,
but starts to become a pain as the number of users grows.
…On Sat, Aug 26, 2017, 08:53 Dan Cunningham ***@***.***> wrote:
thoughts on how to get the home location (and radius) from the server?
I would keep this very simple and just associate entering/exiting a
geofence with an existing switch in OH. The user can then decide if that
switch is "home".
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#343 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABAZqxBESNQUwGhaLjQqP6FI4Wn7n8huks5scD9zgaJpZM4O5d4P>
.
|
@jjhuff Does this rely on Google Maps? |
As of now, no. Just lat/lng fields. Super user friendly!
…On Sat, Aug 26, 2017, 09:36 mueller-ma ***@***.***> wrote:
@jjhuff <https://github.com/jjhuff> Does this rely on Google Maps?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#343 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABAZq7OnrImGGda7EZIY3ffS0ttF8naWks5scEl6gaJpZM4O5d4P>
.
|
Ok, please keep a option for users without GMaps |
On Android or desktop? It does depend on Google play services, but I think
that was already a dependency.
…On Sat, Aug 26, 2017, 09:41 mueller-ma ***@***.***> wrote:
Ok, please a option for users without GMaps
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#343 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABAZqydntklGUhD2PiiTZ-HL0xcBHlUgks5scEq0gaJpZM4O5d4P>
.
|
Well, I hope #30 will be fixed anytime |
How about the mobile devices (android, ios) simply sends its lat/long coordinates? This can be disabled by the app, and the interval can be customised. It'd be much like the current reporting of wifi ssid, BT, etc. The geofencing is up to the rule writers. This way it can check device's proximity against a list of locations, e.g. "home", "school", "local shops", "post office", etc. It's way easier to configure this in the rules. |
The reason I didn't implement it this way is that getting GPS coordinates requires some error handling. Getting the wifi ssid for example always succeeds, but GPS may fail. |
Could you provide some links/pointers on this? I'm unfamiliar with android development in general. Would it be possible to send it when it can and just log the errors when it couldn't? Is it a matter of permissions? |
You can look at the commit 264682e. Sending GPS coordinates is mostly the same, except for getting the value to send. There's probably no Android event when the coordinates change, like there is for bluetooth connects. So you can ignore everything related to |
I'm in the process of migrating from SmartThings, and I'm missing how easy geofence-based presence detection was on ST. With OH2, I need to setup MQTT, secure it, expose it to the 'net, AND all my family's devices need to have another app installed and configured.
This seems like ideal functionality to just integrate into the Android (and iOS) app.
I'm thinking something like:
I'm happy to do the work, but I wanted to discuss the approach, design, concerns before diving in.
The text was updated successfully, but these errors were encountered: