owntracks / android

OwnTracks Android App
http://owntracks.org
Eclipse Public License 1.0
1.39k stars 477 forks source link

Waypoint leave events dropped/missing #1867

Open jstys opened 1 month ago

jstys commented 1 month ago

I recently started experiencing an issue where waypoint leave events are not being logged which is breaking my Home Assistant integration because Home assistant is dependent on receiving all enter/leave events so it can ignore location updates while in a geofence.

I typically lose connection to the MQTT server when leaving my Home geofence because Tasker will switch me over to my wireguard VPN when leaving my Home Wi-Fi so my theory is the waypoint leave event is not being queued properly when this connection is lost. I've noticed that the leave event is also not even triggered on the app itself, I only get a notification that I've arrived at my work waypoint.

jstys commented 1 month ago

Will continue to monitor this because this week I've had 100% failure rate when it comes to receiving home exit events. I'll try to upload a debug log when possible, right now my logs are being truncated by my commute so they are consistently missing the problem time range.

For the purposes of home-assistant I've disabled my broker from listening on transition events because then all location updates are handled individually.