gcobb321 / icloud3_v3

iCloud3 v3, Development Version - This Repo/Version is used for development and testing of new and updated features. It is not the official release of iCloud3 v3, .
MIT License
169 stars 13 forks source link

Icloud V3 makes person entity jump location shorthly #336

Closed smarthomefamilyverrips closed 2 weeks ago

smarthomefamilyverrips commented 2 months ago

Hello @gcobb321, we already talked about this issue in #263 and #267 while it looked first it was working after some adjustments and updates, i still have the same issue being when i add the iCloudV3 tracker to person entity it all the time makes it jump short to previous know location home/away/home as example... I was a bit busy so for now i just added some failsafe conditions to automations using the person entity location. Now i had some free time again so i did set up a new person entity using same device trackers (icloudv3 tracker, ha mobile app tracker, life360 tracker, asuswrt tracker, ping tracker) as the original person entity having this issue but leaving the icloudv3 tracker out I added screenshots below of each person entity and the test person entity not showed the same behaviour and not did jump the location, to exclude any doubts on the second day I added the iCloudv3 tracker also to the newly created test person entity and the as you can see on screenshot below it started to get the same issue and jump location similar as the original person entity.... any idea how we can solve this?

for extra info I also added screenshot from the independent device trackers history logs of day 1 of test

DAY 1 (one person entity with icloudv3 tracker one without)

media_20240924_085759_5411602558669283813

media_20240924_085759_2301908038660773279

DAY 2 (both person entities using icludv3 tracker)

media_20240925_082741_6717741746328952598

media_20240925_082741_486097176735403489

Independent device tracker information DAY 1

media_20240924_090241_5941290502452383451

media_20240924_090241_5017549438669186583

media_20240924_090241_8165268456769463703

smarthomefamilyverrips commented 1 month ago

I did try with and without the HA Mobile App tracker added to the person.entity and also with and without the HA Mobile App tracker added to the iCloudV3 configuration. None of these variations made any difference to the issue unfortunately

gcobb321 commented 1 month ago
  1. You should not have both the iCloud3 and mobile app device tracker entities. iCloud3 monitors the mobile app tracker and uses it’s info or the Apple iCloud info, whichever is later, to locate a device.
  2. Personally, I think you are using too many trackers for the person. The way the person entity works it’s by monitoring the gps latitude and longitude attributes of each tracker entity. It does not look at the age or accuracy of a location, just grabs the data. So you can have a good location used on one update from one tracker entity that gets overwritten by an old location from another tracker entity. Each time it does an update, it sees if the gps is in the zone or out of the zone. And you do not know which tracker entities data is being used.
  3. I’ve always just used the zone sensor in iCloud3 and never had a problem knowing where a device is
  4. The iCloud3 Event Log shows how iCloud3 is handling location and zones. That is the place to see what iCloud3 is doing and compare that with the other history info
smarthomefamilyverrips commented 1 month ago
  1. I not have, as you told me same in the past. I just did try different options to see if made a difference.
  2. I just am using 2 other GPS based trackers and on my test person entity I not have the issue that it jumps to a old location before jumping back again to the new location when I not use the iCloudV3 tracker.
  3. I do have this issue already a long time as we also discussed before in issues.
  4. I use event logs but just says it updated location, I not would know what I should else see.

So why it only does this to a person entity if also the iCloudV3 tracker is used?

smarthomefamilyverrips commented 1 month ago

@gcobb321

So just to be clear my general person entity uses the iCloudV3 tracker (and the iCloudV3 integration is setup to use mobile app) and Life360 tracker and is jumping location as can be seen in screenshots

The test person entity uses the HA Mobile App tracker and Life360 tracker and not is having any issues with briefly jumping back to a previous location.

I not think it should be a issue using 2 GPS trackers for 1 person entity.

smarthomefamilyverrips commented 1 month ago

@gcobb321 now when checking event log I see it stopped using the mobile app instead of showing location it says "not used" and in configuration screen says Mobile App Integration is not available (see screenshot) while it is installed and running on my HA, any idea why this is?

Opera Snapshot_2024-10-02_110208_homeassistant local

gcobb321 commented 2 weeks ago

Closed with the v3.1.1 Release. Create a new issue if you continue to experience this problem.