I think there is an bug in the session file handling
what I did now:
1. de…leting the whole iCloud folder (session file was around 2 days old from the file timestamp)
2. restarting HA
3. reauthentificating iCloud3 -> no session file created
4. restartet HA again
5. still no session file
6. rauthentificating iCloud3 -> still no session file created
7. deactivated iCloud3
8. set up of the standard iCloud integration with username and password -> there is a session file now!!!
9. deleted the standard iCloud integration
10. reactivated the iCloud3 integration
11. message with 2F still pops up again that someone logged in on an iPad
12. restarted HA
13. 2F message still popping up :-(
`-------------------------------------------------------
03-07 22:27:56 [start_ic3_co:0365] 1stLOC > Requesting Initial Locate
03-07 22:27:56 [device......:2051] 1stLOC > icloud3_iphone_hilde > SinceLast > Initial Locate → FamShr-10:24:30p
03-07 22:27:56 [start_ic3_co:0380] 1stLOC > icloud3_iphone_hilde > Trigger > Initial Locate
03-07 22:27:56 [zone_handler:0273] 1stLOC > icloud3_iphone_hilde > Zone > Home(1)-116.3ft > NotSet(2), GPS-(48.61049, 9.33423/±7m)
03-07 22:27:56 [determine_in:0572] 1stLOC > icloud3_iphone_hilde > Results > NextUpdate-10:28:10p, Moved-3.2ft, Battery-34%, ×Went3km
03-07 22:27:56 [determine_in:0592] 1stLOC > icloud3_iphone_hilde RESULTS: From-Home > MobAppZone-not_set, iC3Zone-home, Interval-15 secs, TravTime-0 min, Dist-0mi, NextUpdt-10:28:10p, MaxDist-0mi, Dir-inZone, Moved-0km, Battery-34%, LastDataUpdate-10:27:56p, GPSAccuracy-7m, LocAge-3 mins ago, OldThreshold-2 mins, LastEvLogMsg-10:27:56p, Method-3.OldLoc/GPS
03-07 22:27:56 [device......:1928] 1stLOC > icloud3_iphone_hilde > Battery Info > Level-34%, Not Charging (FamShr)
03-07 22:27:56 [device......:2051] 1stLOC > icloud3_iphone_hans > SinceLast > Initial Locate → FamShr-10:25:02p
03-07 22:27:56 [start_ic3_co:0380] 1stLOC > icloud3_iphone_hans > Trigger > Initial Locate
03-07 22:27:56 [zone_handler:0273] 1stLOC > icloud3_iphone_hans > Zone > Home(2)-156.9ft > NotSet(1), GPS-(48.61038, 9.33416/±9m)
03-07 22:27:56 [determine_in:0572] 1stLOC > icloud3_iphone_hans > Results > NextUpdate-10:28:10p, Moved-71.1ft, Battery-79%, ×Went3km
03-07 22:27:56 [determine_in:0592] 1stLOC > icloud3_iphone_hans RESULTS: From-Home > MobAppZone-not_set, iC3Zone-home, Interval-15 secs, TravTime-0 min, Dist-0mi, NextUpdt-10:28:10p, MaxDist-0mi, Dir-inZone, Moved-0km, Battery-79%, LastDataUpdate-10:27:56p, GPSAccuracy-9m, LocAge-3 mins ago, OldThreshold-2 mins, LastEvLogMsg-10:27:56p, Method-3.OldLoc/GPS
03-07 22:27:56 [device......:1928] 1stLOC > icloud3_iphone_hans > Battery Info > Level-79%, Not Charging (FamShr)
03-07 22:27:56 [device......:2051] 1stLOC > linda_watch_23 > SinceLast > Initial Locate → FamShr-5:35:34p/±2736m
03-07 22:27:56 [start_ic3_co:0380] 1stLOC > linda_watch_23 > Trigger > Initial Locate
03-07 22:27:56 [zone_handler:0273] 1stLOC > linda_watch_23 > Zone > Away(1) > Oma & Opa Maier-5.0mi, Schule-6.0mi, Home(2)-6.0mi, M Stuttgart-17.0mi, GPS-(48.64582, 9.45386/±2736m)
03-07 22:27:56 [pyicloud_ic3:0221] 1stLOC > iCloud Acct Auth #2 > Password+Token, Last-10:27:56p
03-07 22:27:56 [pyicloud_ic3:0053] 1stLOC > iCloud Location Services interface > Verified (init)
03-07 22:27:57 [waze........:0171] 1stLOC > linda_watch_23 > Waze Route Error > Problem connecting to Waze Servers. Distance will be calculated, Travel Time not available
03-07 22:27:57 [determine_in:0572] 1stLOC > linda_watch_23 > Results > Arrive-10:27p, NextUpdate-10:28:10p, Direction-Away, IntoStatZone-10:35:56p, ✓Went3km
03-07 22:27:57 [determine_in:0592] 1stLOC > linda_watch_23 RESULTS: From-Home > MobAppZone-not_set, iC3Zone-not_home, Interval-15 secs, TravTime-0 min, Dist-3.7mi, NextUpdt-10:28:10p, MaxDist-0mi, Dir-Away, Moved-0km, Battery-0%, LastDataUpdate-10:27:56p, GPSAccuracy-2736m, LocAge-4.9 hrs ago, OldThreshold-2 mins, LastEvLogMsg-10:27:57p, Method-3.PoorGPS
03-07 22:27:57 [icloud3_main:0164] 1stLOC > Commit Log File Records, RequestedBy-iCloud3 Initialization
03-07 22:27:57 [__init__....:0225] iCloud3 v3.0.rc10.4 started
03-07 22:28:11 [pyicloud_ic3:1455] ICLOUD > linda_watch_23 > NewData > FamShr-5:35:34p, 0%
03-07 22:28:11 [pyicloud_ic3:1451] ICLOUD > icloud3_iphone_hilde > NewData > FamShr-10:24:30p → 10:28:01p, 34%
03-07 22:28:11 [icloud_data_:0423] LOCATE > icloud3_iphone_hilde > LocTimes > FamShr-10:28:01p (10 secs ago)
03-07 22:28:11 [icloud_data_:0423] LOCATE > icloud3_iphone_hilde > LocTimes > FamShr-10:28:01p (10 secs ago)
03-07 22:28:11 [icloud3_main:0486] ICLOUD > icloud3_iphone_hilde > Trigger > Next Update Time Reached
03-07 22:28:11 [zone_handler:0273] ICLOUD > icloud3_iphone_hilde > Zone > Home(2)-126.8ft > Away(1), GPS-(48.61046, 9.33419/±9m)
03-07 22:28:11 [determine_in:0572] ICLOUD > icloud3_iphone_hilde > Results > NextUpdate-10:43:10p, Moved-13.0ft, Battery-34%, ×Went3km
03-07 22:28:11 [determine_in:0592] ICLOUD > icloud3_iphone_hilde RESULTS: From-Home > MobAppZone-not_set, iC3Zone-home, Interval-15 mins, TravTime-0 min, Dist-0mi, NextUpdt-10:43:10p, MaxDist-0mi, Dir-inZone, Moved-0km, Battery-34%, LastDataUpdate-10:28:11p, GPSAccuracy-9m, LocAge-10 secs ago, OldThreshold-2 mins, LastEvLogMsg-10:28:11p, Method-3.AtHome
03-07 22:28:11 [icloud_data_:0423] LOCATE > icloud3_iphone_hans > LocTimes > FamShr-10:28:10p (1 secs ago)
03-07 22:28:11 [icloud3_main:0486] ICLOUD > icloud3_iphone_hans > Trigger > Next Update Time Reached
03-07 22:28:11 [zone_handler:0273] ICLOUD > icloud3_iphone_hans > Zone > Home(2)-133.0ft > Away(1), GPS-(48.61045, 9.33425/±18m)
03-07 22:28:11 [determine_in:0572] ICLOUD > icloud3_iphone_hans > Results > NextUpdate-10:43:10p, Moved-30.9ft, Battery-79%, ×Went3km
03-07 22:28:11 [determine_in:0592] ICLOUD > icloud3_iphone_hans RESULTS: From-Home > MobAppZone-not_set, iC3Zone-home, Interval-15 mins, TravTime-0 min, Dist-0mi, NextUpdt-10:43:10p, MaxDist-0mi, Dir-inZone, Moved-0km, Battery-79%, LastDataUpdate-10:28:11p, GPSAccuracy-18m, LocAge-1 secs ago, OldThreshold-2 mins, LastEvLogMsg-10:28:11p, Method-3.AtHome
03-07 22:28:30 [icloud_data_:0341] LOCATE > linda_watch_23 > Rejected #2 > NewData-5:35:34p/±2736m vs 5:35:34p/±2736m, Updated-FamShr data, Pending/203
03-07 22:28:30 [icloud_data_:0341] LOCATE > linda_watch_23 > Rejected #2 > NewData-5:35:34p/±2736m vs 5:35:34p/±2736m, Updated-FamShr data, Pending/203
03-07 22:28:30 [determine_in:0746] ICLOUD > linda_watch_23 > Location Old #3 > 4.9 hrs ago, RetryAt-10:28:45p (15 secs)
03-07 22:28:30 [determine_in:0747] ICLOUD > linda_watch_23 Old Location/Other Error-Location Old #3 > 4.9 hrs ago, RetryAt-10:28:45p (15 secs)
03-07 22:28:45 [determine_in:0746] ICLOUD > linda_watch_23 > Location Old #4 > 4.9 hrs ago, RetryAt-10:29:15p (30 secs)
03-07 22:28:45 [determine_in:0747] ICLOUD > linda_watch_23 Old Location/Other Error-Location Old #4 > 4.9 hrs ago, RetryAt-10:29:15p (30 secs)
03-07 22:29:15 [determine_in:0746] ICLOUD > linda_watch_23 > Location Old #5 > 4.9 hrs ago, RetryAt-10:29:45p (30 secs)
03-07 22:29:15 [determine_in:0747] ICLOUD > linda_watch_23 Old Location/Other Error-Location Old #5 > 4.9 hrs ago, RetryAt-10:29:45p (30 secs)
03-07 22:29:45 [determine_in:0746] ICLOUD > linda_watch_23 > Location Old #6 > 4.9 hrs ago, RetryAt-10:30:15p (30 secs)
03-07 22:29:45 [determine_in:0747] ICLOUD > linda_watch_23 Old Location/Other Error-Location Old #6 > 4.9 hrs ago, RetryAt-10:30:15p (30 secs)
03-07 22:30:00 [icloud3_main:0630] icloud3_iphone_hilde > Nearby Devices (<65ft) > @10:29p, ⌘hans iPhone-14.0ft (10:28p), ×linda Apple Watch-6.0mi (5:35p)
03-07 22:30:00 [icloud3_main:0630] icloud3_iphone_hans > Nearby Devices (<65ft) > @10:29p, ✓hilde iPhone-14.0ft (10:28p), ×linda Apple Watch-6.0mi (5:35p)
03-07 22:30:00 [icloud3_main:0630] linda_watch_23 > Nearby Devices (<65ft) > @5:35p, ×hilde iPhone-6.0mi (10:24p), ×hans iPhone-6.0mi (10:25p)
03-07 22:30:15 [determine_in:0746] ICLOUD > linda_watch_23 > Location Old #7 > 4.9 hrs ago, RetryAt-10:30:45p (30 secs)
03-07 22:30:15 [determine_in:0747] ICLOUD > linda_watch_23 Old Location/Other Error-Location Old #7 > 4.9 hrs ago, RetryAt-10:30:45p (30 secs)
03-07 22:30:45 [icloud_data_:0341] LOCATE > linda_watch_23 > Rejected #7 > NewData-5:35:34p/±2736m vs 5:35:34p/±2736m, Updated-FamShr data, Pending/203
03-07 22:30:45 [icloud_data_:0341] LOCATE > linda_watch_23 > Rejected #7 > NewData-5:35:34p/±2736m vs 5:35:34p/±2736m, Updated-FamShr data, Pending/203
03-07 22:30:45 [determine_in:0746] ICLOUD > linda_watch_23 > Location Old #8 > 4.9 hrs ago, RetryAt-10:31:45p (1 min)
03-07 22:30:45 [determine_in:0747] ICLOUD > linda_watch_23 Old Location/Other Error-Location Old #8 > 4.9 hrs ago, RetryAt-10:31:45p (1 min)
03-07 22:30:52 [start_ic3...:0544] Checking Mobile App Integration > Loaded, Devices-MC97475, iPad von hans (6), hilde iPhone 12 Pro Max (2), 14 Pro Max, East Android, MacBook Pro von hans
03-07 22:31:45 [determine_in:0746] ICLOUD > linda_watch_23 > Location Old #9 > 4.9 hrs ago, RetryAt-10:32:45p (1 min)
03-07 22:31:45 [determine_in:0747] ICLOUD > linda_watch_23 Old Location/Other Error-Location Old #9 > 4.9 hrs ago, RetryAt-10:32:45p (1 min)
03-07 22:32:45 [determine_in:0746] ICLOUD > linda_watch_23 > Location Old #10 > 5 hrs ago, RetryAt-10:33:45p (1 min)
03-07 22:32:45 [determine_in:0747] ICLOUD > linda_watch_23 Old Location/Other Error-Location Old #10 > 5 hrs ago, RetryAt-10:33:45p (1 min)
03-07 22:33:45 [determine_in:0746] ICLOUD > linda_watch_23 > Location Old #11 > 5 hrs ago, RetryAt-10:34:45p (1 min)
03-07 22:33:45 [determine_in:0747] ICLOUD > linda_watch_23 Old Location/Other Error-Location Old #11 > 5 hrs ago, RetryAt-10:34:45p (1 min)
03-07 22:34:13 [pyicloud_ic3:0149] Connecting to and Authenticating iCloud Location Services Interface (unknown)
03-07 22:34:13 [pyicloud_ic3:0517] Initialize PyiCloud Service, establish iCloud Location Services connection
03-07 22:34:13 [pyicloud_ic3:0857] Session file does not exist
03-07 22:34:13 [pyicloud_ic3:0595] Authenticating account ne........@ic........
03-07 22:34:15 [pyicloud_ic3:0636] Authentication completed successfully, method-Password+Token
03-07 22:34:16 [pyicloud_ic3:0221] iCloud Acct Auth #3 > Password+Token, Last-10:27:56p
03-07 22:34:30 [icloud_data_:0341] LOCATE > linda_watch_23 > Rejected #12 > NewData-5:35:34p/±2736m vs 5:35:34p/±2736m, Updated-FamShr data, Pending/203
03-07 22:34:30 [zone_handler:0273] ICLOUD > linda_watch_23 > Zone > Away(1) > Oma & Opa Maier-5.0mi, Schule-6.0mi, Home(2)-6.0mi, M Stuttgart-17.0mi, GPS-(48.64582, 9.45386/±2736m)
03-07 22:34:31 [waze........:0171] ICLOUD > linda_watch_23 > Waze Route Error > Problem connecting to Waze Servers. Distance will be calculated, Travel Time not available
03-07 22:34:31 [determine_in:0572] ICLOUD > linda_watch_23 > Results > Arrive-10:34p, NextUpdate-10:39:30p, Direction-Away, IntoStatZone-10:35:56p, ✓Went3km
03-07 22:34:31 [determine_in:0592] ICLOUD > linda_watch_23 RESULTS: From-Home > MobAppZone-not_set, iC3Zone-not_home, Interval-5 mins, TravTime-0 min, Dist-3.7mi, NextUpdt-10:39:30p, MaxDist-0mi, Dir-Away, Moved-0km, Battery-0%, LastDataUpdate-10:27:56p, GPSAccuracy-2736m, LocAge-5 hrs ago, OldThreshold-3 mins, LastEvLogMsg-10:34:31p, Method-3.PoorGPS
03-07 22:34:31 [icloud3_main:1069] ICLOUD > Traceback (most recent call last):
File "/config/custom_components/icloud3/icloud3_main.py", line 1062, in _determine_interval_and_next_update
f"NextUpdate-{secs_to_age_str(Device.interval_sec)}, "
^^^^^^^^^^^^^^^^^^^
AttributeError: 'iCloud3_Device' object has no attribute 'interval_sec'. Did you mean: 'interval_secs'?
03-07 22:34:31 [icloud3_main:1070] ICLOUD > Traceback (most recent call last):
File "/config/custom_components/icloud3/icloud3_main.py", line 1062, in _determine_interval_and_next_update
f"NextUpdate-{secs_to_age_str(Device.interval_sec)}, "
^^^^^^^^^^^^^^^^
AttributeError: 'iCloud3_Device' object has no attribute 'interval_sec'. Did you mean: 'interval_secs'?
03-07 22:34:42 [pyicloud_ic3:0149] Connecting to and Authenticating iCloud Location Services Interface (unknown)
03-07 22:34:42 [pyicloud_ic3:0517] Initialize PyiCloud Service, establish iCloud Location Services connection
03-07 22:34:42 [pyicloud_ic3:0857] Session file does not exist
03-07 22:34:42 [pyicloud_ic3:0595] Authenticating account ne........@ic........
03-07 22:34:44 [pyicloud_ic3:0636] Authentication completed successfully, method-Password+Token
03-07 22:34:45 [pyicloud_ic3:0221] iCloud Acct Auth #5 > Password+Token, Last-10:34:30p
03-07 22:39:30 [icloud_data_:0341] LOCATE > linda_watch_23 > Rejected #12 > NewData-5:35:34p/±2736m vs 5:35:34p/±2736m, Updated-FamShr data, Pending/203
03-07 22:39:30 [icloud_data_:0341] LOCATE > linda_watch_23 > Rejected #12 > NewData-5:35:34p/±2736m vs 5:35:34p/±2736m, Updated-FamShr data, Pending/203
03-07 22:39:30 [determine_in:0746] ICLOUD > linda_watch_23 > Location Old #13 > 5.1 hrs ago, RetryAt-10:44:30p (5 mins)
03-07 22:39:30 [determine_in:0747] ICLOUD > linda_watch_23 Old Location/Other Error-Location Old #13 > 5.1 hrs ago, RetryAt-10:44:30p (5 mins)
03-07 22:43:10 [pyicloud_ic3:1455] ICLOUD > linda_watch_23 > NewData > FamShr-5:35:34p, 0%
03-07 22:43:10 [pyicloud_ic3:1451] ICLOUD > icloud3_iphone_hilde > NewData > FamShr-10:34:48p → 10:39:37p, 34%
03-07 22:43:10 [icloud_data_:0423] LOCATE > icloud3_iphone_hilde > Location Old #1 > 4 mins ago, FamShr-10:39:37p
03-07 22:43:10 [icloud_data_:0423] LOCATE > icloud3_iphone_hans > Location Old #1 > 3 mins ago, FamShr-10:39:44p
03-07 22:43:15 [pyicloud_ic3:1455] ICLOUD > linda_watch_23 > NewData > FamShr-5:35:34p, 0%
03-07 22:43:15 [pyicloud_ic3:1451] ICLOUD > icloud3_iphone_hilde > NewData > FamShr-10:39:37p → 10:43:15p, 34%
03-07 22:43:15 [icloud_data_:0423] LOCATE > icloud3_iphone_hilde > LocTimes > FamShr-10:43:15p (1 secs ago)
03-07 22:43:15 [icloud_data_:0423] LOCATE > icloud3_iphone_hilde > LocTimes > FamShr-10:43:15p (1 secs ago)
03-07 22:43:15 [icloud3_main:0486] ICLOUD > icloud3_iphone_hilde > Trigger > Next Update Time Reached
03-07 22:43:15 [zone_handler:0273] ICLOUD > icloud3_iphone_hilde > Zone > Home(2)-98.3ft > Away(1), GPS-(48.61054, 9.33429/±14m)
03-07 22:43:15 [determine_in:0572] ICLOUD > icloud3_iphone_hilde > Results > NextUpdate-10:58:15p, Moved-36.4ft, Battery-34%, ×Went3km
03-07 22:43:15 [determine_in:0592] ICLOUD > icloud3_iphone_hilde RESULTS: From-Home > MobAppZone-not_set, iC3Zone-home, Interval-15 mins, TravTime-0 min, Dist-0mi, NextUpdt-10:58:15p, MaxDist-0mi, Dir-inZone, Moved-0km, Battery-34%, LastDataUpdate-10:43:15p, GPSAccuracy-14m, LocAge-1 secs ago, OldThreshold-2 mins, LastEvLogMsg-10:43:15p, Method-3.AtHome
03-07 22:43:15 [icloud_data_:0423] LOCATE > icloud3_iphone_hans > LocTimes > FamShr-10:43:15p (1 secs ago)
03-07 22:43:15 [icloud3_main:0486] ICLOUD > icloud3_iphone_hans > Trigger > Next Update Time Reached
03-07 22:43:15 [zone_handler:0273] ICLOUD > icloud3_iphone_hans > Zone > Home(2)-110.3ft > Away(1), GPS-(48.61054, 9.33443/±35m)
03-07 22:43:15 [determine_in:0572] ICLOUD > icloud3_iphone_hans > Results > NextUpdate-10:58:15p, Moved-55.8ft, Battery-79%, ×Went3km
03-07 22:43:15 [determine_in:0592] ICLOUD > icloud3_iphone_hans RESULTS: From-Home > MobAppZone-not_set, iC3Zone-home, Interval-15 mins, TravTime-0 min, Dist-0mi, NextUpdt-10:58:15p, MaxDist-0mi, Dir-inZone, Moved-0km, Battery-79%, LastDataUpdate-10:43:15p, GPSAccuracy-35m, LocAge-1 secs ago, OldThreshold-2 mins, LastEvLogMsg-10:43:15p, Method-3.AtHome`
`03-07 22:44:30 [determine_in:0746] ICLOUD > linda_watch_23 > Location Old #14 > 5.1 hrs ago, RetryAt-10:49:30p (5 mins)
03-07 22:44:30 [determine_in:0747] ICLOUD > linda_watch_23 Old Location/Other Error-Location Old #14 > 5.1 hrs ago, RetryAt-10:49:30p (5 mins)
03-07 22:45:00 [icloud3_main:0630] icloud3_iphone_hilde > Nearby Devices (<65ft) > @10:43p, ⌘hans iPhone-35.2ft, ×linda Apple Watch-6.0mi (5:35p)
03-07 22:45:00 [icloud3_main:0630] icloud3_iphone_hans > Nearby Devices (<65ft) > @10:43p, ✓hilde iPhone-35.2ft, ×linda Apple Watch-6.0mi (5:35p)
03-07 22:45:00 [icloud3_main:0630] linda_watch_23 > Nearby Devices (<65ft) > @5:35p, ×hilde iPhone-6.0mi, ×hans iPhone-6.0mi
03-07 22:49:30 [determine_in:0746] ICLOUD > linda_watch_23 > Location Old #15 > 5.2 hrs ago, RetryAt-10:54:30p (5 mins)
03-07 22:49:30 [determine_in:0747] ICLOUD > linda_watch_23 Old Location/Other Error-Location Old #15 > 5.2 hrs ago, RetryAt-10:54:30p (5 mins)`