Skip to content
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

Region Departing/Entering Notification Not Working #1764

Open
anthonycle67 opened this issue Jul 23, 2024 · 10 comments
Open

Region Departing/Entering Notification Not Working #1764

anthonycle67 opened this issue Jul 23, 2024 · 10 comments
Assignees
Labels

Comments

@anthonycle67
Copy link

Regions are defined to provide notifications when the device enter and exit the region used to work. However, a while ago, this no longer works even before V2.5.0. Only home region works. Looking at the OwnTracks device details in Hubitat, it only shows that the device departing or entering Home region but never for other defined regions. Is there something that I have to change to make this works again?

V2.5.0 is installed from Google Play Store.

Thanks.

@jpmens
Copy link
Member

jpmens commented Jul 23, 2024

It's possible this is an artifact of your device not reporting positions. Please see this issue regarding enabling "Always on" for location reporting.

@growse
Copy link
Collaborator

growse commented Jul 23, 2024

Hmm, there's nothing special about 'Home' (or any region name), so it's weird that it's working for one and not the others.

I assume that home is your first defined region?

@anthonycle67
Copy link
Author

Yes, Home is the first region I defined. Also, for Home region, I also specified it in the "Home Place" where as the other regions I didn't specify anything for them.
Screenshot_20240723_061659_Samsung Internet

@ckrey
Copy link
Member

ckrey commented Jul 23, 2024

Can you tell us which backend you are using? We don't know this UI

@anthonycle67
Copy link
Author

anthonycle67 commented Jul 23, 2024 via email

@jpmens
Copy link
Member

jpmens commented Jul 24, 2024

You'll have to check with the Hubitat people then; that's out of scope for us.

@jpmens jpmens closed this as completed Jul 24, 2024
@compuguy
Copy link

I'm not using hubitat as my back end. Owntracks recorder + frontend. I get the location info, but I just don't get any notifications on endpoints (Android app).

@growse growse reopened this Aug 13, 2024
@growse
Copy link
Collaborator

growse commented Aug 13, 2024

There is a bug here with events and notifications. Using this to track.

@growse growse added the bug label Aug 13, 2024
@growse growse self-assigned this Aug 13, 2024
@speckenbuettel
Copy link

Hi,

not sure if my problem is related to this bug?

When I leave a region, and on the map both my current position and the latest position received via MQTT are outside the region, the device is still shown "in region" under regions:

Screenshot_20240816_070653_OwnTracks
Screenshot_20240816_070702_OwnTracks

Attached two screenshots (sorry all in German, but it should be self-explaining when you are familiar with the UI).

@growse
Copy link
Collaborator

growse commented Aug 16, 2024

I'm just re-poking the logic here for 2.5.2.

The behaviour you're seeing could be because the device also takes location accuracy into account. E.g. if your location is 120m away from a 100m-radius region centre, and your location accuracy is more than 20m, then you might not get an exit transition.

Locations are circles of uncertainty, not points, so the actual business of working out if a device is likely in a region is a little non-trivial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants