Hi Will. I use geofencing myself, but also encountered this problem because my area was set too small. Sometimes during the night my location would bounce outside that area and the lights would come on. I ended up increasing the size of the area which helped.
That being said, location tracking with IFTTT can be temperamental as well, so may not completely solve your problem.
You could try to prevent it retriggering if you leave and arrive home too quickly. To do this I think the following steps would work:
- Trigger: When x_at_home changes to 0
- Change variable x_at_home_recent = 1
- Pause 5 minutes
- If x_at_home_recent = 1
- Run whatever steps should run when this person leaves home
- Change variable x_at_home_recent = 0
- Else
- Change variable x_at_home_recent = 0
- End if
You would also need a sequence to do the following:
- Trigger: When x_at_home changes to 1
- Change variable x_at_home_recent = 0
Combined, these two sequences should do it. When you disconnect from wifi the 'leave home' sequence will trigger but wait for 5 minutes. If you reconnect before 5 minutes are up, x_at_home_recent will be reset to 0 causing the first sequence to stop after the 5 minute pause. If you have not reconnected, x_at_home_recent will still be 1 and the sequence will continue after the pause.