home-assistant / iOS

:iphone: Home Assistant for Apple platforms
https://companion.home-assistant.io
Other
1.58k stars 307 forks source link

Device tracker falsely reports being away for 1 second #1836

Open brianegge opened 3 years ago

brianegge commented 3 years ago

Device model, version and app version

Model Name: MacBook Pro M1 macOS Version: 11.5.2 (20G95) App Version: 2021.216 (would be nice if you could copy the text) Safari Version: Version 14.1.2 (16611.3.10.1.6)

Home Assistant Core Version

2021.9.3

Describe the bug When the mac is opened it reports the location as away for < 1 second

To Reproduce Leave for the day with the mac closed, return home

Expected behavior Mac should wait a second or two after waking or connecting to wifi before reporting location.

Screenshots

image

Additional context

zacwest commented 3 years ago

In Location History in Preferences > Debugging, what are the update reasons for those locations? e.g. significant location change, region enter/exit.

brianegge commented 3 years ago

Region exited image

The detail screens all look the same though first (home): image

second (away): image

third (home): image

Woet commented 3 years ago

Same is happening here with the iOS app after updating from core 2021.8.8 to 2021.9.7. As you can tell, I skipped a few versions in between, so I can't pinpoint the exact version where this bug was introduced.

I just randomly get changed to "away" for 1 second: image

Despite the logbook not showing any location changes (besides the one that sets me back to "home"): image

History confirms there hasn't been any location update: image

And my "everyone left the house" and "someone came home" automations get triggered: image image

Hope this helps. :)

miguelarios commented 2 years ago

Same thing is happening for 2021.11.1 on iOS still it is also due to it jumping in geographic region being entered and exited randomly for more than a sec, at for me. It actually happens for about a few mins.