iOS icon indicating copy to clipboard operation
iOS copied to clipboard

Mobile app: device_tracker says "home" for a device which was not home for a month

Open ildar170975 opened this issue 2 years ago • 12 comments

The problem

I am using Mobile App for iPhone 6S+: изображение

This device was not physically at home for a month. HA restarted many times since then. And a device_tracker for this device still shows "home":

изображение

The “last_changed/last_updated” data is a time of the last HA reboot. There is no any other info like "last_seen" which may help to determine if this tracker is outdated or not.

What version of Home Assistant Core has the issue?

2022.8.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Mobile App

Link to integration documentation on our website

https://www.home-assistant.io/integrations/mobile_app/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

ildar170975 avatar Aug 05 '22 06:08 ildar170975

Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (mobile_app) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)

I'm having the exact opposite problem. My device tracker says away but I'm home with my phone.

ggoodell2 avatar Aug 06 '22 07:08 ggoodell2

opposite problem

Same reasons. The Companion App does not feed actual data to HA, probably. Or HA does not process these data properly.

ildar170975 avatar Aug 06 '22 09:08 ildar170975

same here

chrisvball avatar Aug 14 '22 23:08 chrisvball

in the companion app go to settings > companion app > manage sensors > enable geolocation sensor the sensor was disabled by an update. if that doesn't work remove the app from home assistant clear the app data then resetup the app and enable the sensor and it should work.

reddragon385 avatar Aug 15 '22 03:08 reddragon385

in the companion app go to settings > companion app > manage sensors > enable geolocation sensor

There is no such path to settings. There are:

  • Companion App -> Settings -> Companion App -> Sensors - and here there is nothing about ""enable geolocation sensor";
  • Companion App -> Settings -> Companion App -> Location -> Location permission = Always.

the sensor was disabled by an update

What do you mean?

if that doesn't work remove the app from home assistant clear the app data then resetup the app and enable the sensor and it should work.

Did it several times during last 2 years. Does not help.

ildar170975 avatar Aug 15 '22 10:08 ildar170975

There must be a bug somewhere. I came back from Croatia to Italy 15 August at 5 AM. Today (16 August) my iPhone went to Croatia 2 times (from 02.42 to 4.58 AM and from 5.26 to 8.09 AM)!!!

LeoeLeoeL avatar Aug 16 '22 07:08 LeoeLeoeL

I have the exact same issue for the four iPhones in our household. My iPad and Macbook updates correctly using the HA apps for those devices.

carlhye avatar Apr 19 '23 12:04 carlhye

I have constant issues with my daughters' device: They keep turning on and off their phone's plane mode when they leave/enter the house which seems to cause trouble for iOS to report their location properly

StCyr avatar Oct 21 '23 09:10 StCyr

I have constant issues with my daughters' device: They keep turning on and off their phone's plane mode when they leave/enter the house which seems to cause trouble for iOS to report their location properly

Hi @StCyr

I had the same issue and solved it pretty easily - have a look at my post in the HA Community:

https://community.home-assistant.io/t/home-assistant-not-updating-person-location-status-since-last-update/425492/12?u=carlhye

I hope this helps :-)

carlhye avatar Oct 24 '23 09:10 carlhye

Deleted and added integration many times. Does not help.

ildar170975 avatar Oct 24 '23 10:10 ildar170975