Location tracking keeps changing while home?

I have a problem,

I am using location based tracking to trigger lights and found that the lights kept randomly turning on. I checked the location tracking history and found that when users where home, the location would update from away and back to home for like a minute.

This would then trigger the lights. This can happen around 3 or 4 times throughout the night.

Any ideas why this is happenning?

Thanks

You can mix gps based tracking with ip based ones.

If your phones are connected to home internet all the time, you can use it next to location based one.

Or, you can increase the diameter of home zone to reduce false triggers.

Clients are not always connected to wifi

What sort of location based tracking are you using?

When you move indoors your phone can no longer receive a gps satellite signal and relies on cell tower and hotspot triangulation which can be way less accurate, so your location may wander by hundreds of meters.

You can increase the radius of your home zone to take this into account. Or use other location integrations.