Why do these two identical Geofence constraints give different results?

JoeReMi

Member
Hi, I'm having a weird Geofence issue, see video.
The settings for the constraint in both macros:
  • Zone name: Thuis + GR (which is where I am)
  • Inside Area
  • Do not set constraint to true if no location is available
  • Location Update Rate: 5 minutes
So then, does anyone know why in the first macro the constraint evaluates to False, while in the second it evaluates to True?

 
Last edited:

Endercraft

Moderator (& bug finder :D)
Set constraint to true if no location is available
In your video this isn't enabled, but because it isn't enabled in both macros that's still odd. What happens if you copy the second constraint to the first macro and test it there?
 

JoeReMi

Member
What happens if you test the second macro first and then the first macro second?
The order in which the constraints are tested does not seem to matter.

In your video this isn't enabled, but because it isn't enabled in both macros that's still odd.
Right, my bad! Edited 😅

I decided to test this issue a second time, when I was not inside the area. I cloned the two macros and changed the constraint in the clones to Outside Area while keeping everything else the same. Things got weirder I think:


  • Inside area, geofence control: I am inside the area (incorrect)
  • Inside area, geofence issue: I am not inside the area (correct)
  • Outside area, geofence control: I am not outside the area (incorrect)
  • Outside area, geofence issue: I am not outside the area (incorrect)
  • Note that for the first two macros I am asked if I want to save my changes, despite not having made any.

What happens if you copy the second constraint to the first macro and test it there?

I tried copying the constraint in the second macro (which correctly reports that I am not inside the area) to the first. I think that's in the spirit of your suggestion. The copied constraint still gives the same (correct) result while the original constraint in the first macro is still wrong.

Restarting my device after this test has changed the results somewhat:
  • Inside, control: I am not inside the area (correct)
  • Inside, issue: I am not inside the area (correct)
  • Outside, control: I am outside the area (correct)
  • Outside, issue: I am not outside the area (incorrect)
  • Me, issue: I am slowly going mad (correct)
Halp.
 
Last edited:
Top