Hi, i’m tracking two iphones with iclloud3 but the location is updated only if i restart home assistant.
This is my configuration
- platform: icloud3
username: !secret icloud_marco_user
password: !secret icloud_marco_pwd
track_devices:
- iphone_marco > [email protected], /local/images/marco.jpg, Regione
- iphone_silvia > [email protected], /local/images/silvia.jpg, Crass
unit_of_measurement: km
group: family
waze_region: EU
waze_realtime: True
I use Home Assistat app companion v2
and this is the log
2020-03-04 08:48:33 ERROR (SyncWorker_16) [custom_components.icloud3.device_tracker] 'friendly_name'
Traceback (most recent call last):
File "/config/custom_components/icloud3/device_tracker.py", line 905, in restart_icloud
self._initialize_zone_tables()
File "/config/custom_components/icloud3/device_tracker.py", line 5358, in _initialize_zone_tables
self.zone_friendly_name[zone_name] = zone_data[ATTR_FRIENDLY_NAME]
KeyError: 'friendly_name'
2020-03-04 08:48:33 INFO (SyncWorker_16) [custom_components.icloud3.device_tracker] iCloud3 v2.0.5 Initalization > Stage 2, Setting up tracked devices
2020-03-04 08:48:33 INFO (SyncWorker_16) [custom_components.icloud3.device_tracker] Decoding > iphone_marco > [email protected], /local/images/marco.jpg, Regione
2020-03-04 08:48:33 INFO (SyncWorker_16) [custom_components.icloud3.device_tracker] Scanning </config/.storage/core.entity_registry> for entity registry for IOS App v2 device_tracker for <iphone_marco>
2020-03-04 08:48:33 INFO (SyncWorker_16) [custom_components.icloud3.device_tracker] Matched IOS App v2 entity <iphone_marco_2> with iCloud3 tracked_device <iphone_marco>
2020-03-04 08:48:33 INFO (SyncWorker_16) [custom_components.icloud3.device_tracker] Matched IOS App v2 <sensor.iphone_marco_last_update_trigger> with iCloud3 tracked_device <iphone_marco>
2020-03-04 08:48:33 INFO (SyncWorker_16) [custom_components.icloud3.device_tracker] Decoding > iphone_silvia > [email protected], /local/images/silvia.jpg, Crass
2020-03-04 08:48:33 INFO (SyncWorker_16) [custom_components.icloud3.device_tracker] Scanning </config/.storage/core.entity_registry> for entity registry for IOS App v2 device_tracker for <iphone_silvia>
2020-03-04 08:48:33 INFO (SyncWorker_16) [custom_components.icloud3.device_tracker] Tracking (IOSApp) > iphone_marco ([email protected])
2020-03-04 08:48:33 INFO (SyncWorker_16) [custom_components.icloud3.device_tracker] IOS App v2 monitoring > device_tracker.iphone_marco_2, sensor.iphone_marco_last_update_trigger
2020-03-04 08:48:33 INFO (SyncWorker_16) [custom_components.icloud3.device_tracker] Tracking (IOSApp) > iphone_silvia ([email protected])
2020-03-04 08:48:33 INFO (SyncWorker_16) [custom_components.icloud3.device_tracker] IOS App v1 monitoring > device_tracker.iphone_silvia
2020-03-04 08:48:33 INFO (SyncWorker_16) [custom_components.icloud3.device_tracker] Tracking Devices > iphone_marco(iphone_marco_2), iphone_silvia
2020-03-04 08:48:33 INFO (SyncWorker_16) [custom_components.icloud3.device_tracker] iCloud3 v2.0.5 Initalization > Stage 3, Setting up iphone_marco
2020-03-04 08:48:33 INFO (SyncWorker_16) [custom_components.icloud3.device_tracker] Stationary Zone Set > iphone_marco_stationary, GPS-(90, 180)
2020-03-04 08:48:34 INFO (SyncWorker_16) [custom_components.icloud3.device_tracker] iCloud3 v2.0.5 Initalization > Stage 3, Setting up iphone_silvia
2020-03-04 08:48:34 INFO (SyncWorker_16) [custom_components.icloud3.device_tracker] Stationary Zone Set > iphone_silvia_stationary, GPS-(90, 180)
2020-03-04 08:48:35 ERROR (SyncWorker_9) [custom_components.icloud3.device_tracker] iCloud3 Error: IOS App v2 Entity device_tracker.iphone_marco_2 does not contain location attributes (latitude, longitude). Refresh & restart IOS App on device, request a Manual Refresh, check Developer Tools>States entity for location attributes, check HA integrations for the entity. Restart HA or issue 'device_tracker.icloud3_reset' Service Call. Reverting to IOS App v1.
2020-03-04 08:48:35 INFO (SyncWorker_9) [WazeRouteCalculator.WazeRouteCalculator] From: 43.510312,13.261564 - to: 43.599576996292356,13.503999710083008
2020-03-04 08:48:35 INFO (SyncWorker_9) [WazeRouteCalculator.WazeRouteCalculator] Time 25.72 minutes, distance 29.11 km.
2020-03-04 08:48:35 INFO (SyncWorker_9) [WazeRouteCalculator.WazeRouteCalculator] From: 43.599576996292356,13.503999710083008 - to: 43.510312,13.261564
2020-03-04 08:48:36 INFO (SyncWorker_9) [WazeRouteCalculator.WazeRouteCalculator] Time 23.55 minutes, distance 27.91 km.
2020-03-04 08:48:36 INFO (SyncWorker_9) [custom_components.icloud3.device_tracker] iphone_silvia(None) Device Tracking Complete, Results-BaseZone-crass > Zone-home, GPS-(43.510312, 13.261564), Interval-2 hrs, Dist-29.1 km, TravTime-26 min (in_zone), NextUpdt-10:48:30, Located-07:48:34 (1 hrs ago)
2020-03-04 08:48:36 INFO (SyncWorker_16) [custom_components.icloud3.device_tracker] iCloud3 v2.0.5 Initalization > Stage 4, Locating devices
2020-03-04 08:48:36 INFO (SyncWorker_9) [custom_components.icloud3.device_tracker] iphone_silvia(None) Device Tracking Complete, Results-BaseZone-home > Zone-home, GPS-(43.510312, 13.261564), Interval-2 hrs, Dist-0 km, TravTime- (in_zone), NextUpdt-10:48:30, Located-07:48:34 (1 hrs ago)
2020-03-04 08:48:40 INFO (SyncWorker_13) [WazeRouteCalculator.WazeRouteCalculator] From: 43.510312,13.261564 - to: 43.609771728516,13.510528564611
2020-03-04 08:48:41 INFO (SyncWorker_13) [WazeRouteCalculator.WazeRouteCalculator] Time 30.60 minutes, distance 29.96 km.
2020-03-04 08:48:41 INFO (SyncWorker_13) [WazeRouteCalculator.WazeRouteCalculator] From: 43.609771728516,13.510528564611 - to: 43.510312,13.261564
2020-03-04 08:48:47 INFO (SyncWorker_13) [WazeRouteCalculator.WazeRouteCalculator] Time 27.78 minutes, distance 28.91 km.
2020-03-04 08:48:47 INFO (SyncWorker_13) [custom_components.icloud3.device_tracker] iphone_marco(None) Device Tracking Complete, Results-BaseZone-regione > Zone-home, GPS-(43.510312, 13.261564), Interval-2 hrs, Dist-30.0 km, TravTime-31 min (in_zone), NextUpdt-10:48:45, Located-07:48:33 (1 hrs ago)
2020-03-04 08:48:47 INFO (SyncWorker_13) [custom_components.icloud3.device_tracker] iphone_marco(None) Device Tracking Complete, Results-BaseZone-home > Zone-home, GPS-(43.510312, 13.261564), Interval-2 hrs, Dist-0 km, TravTime- (in_zone), NextUpdt-10:48:45, Located-07:48:33 (1 hrs ago)
2020-03-04 08:48:48 WARNING (MainThread) [homeassistant.helpers.condition] Value cannot be processed as a number: <state sensor.iphone_marco_waze_distance=; unit_of_measurement=, icon=mdi:map-marker-distance, friendly_name=-iPhone-Marco-Waze Dist @ 2020-03-04T08:48:48.020613+01:00> (Offending entity: )
2020-03-04 08:48:49 INFO (SyncWorker_13) [custom_components.icloud3.device_tracker] iphone_silvia(None) Device Tracking Complete, Results-BaseZone-home > Zone-home, GPS-(43.510312, 13.261564), Interval-2 hrs, Dist-0 km, TravTime- (in_zone), NextUpdt-10:48:45, Located-08:48:37 (3 sec ago)
2020-03-04 08:48:50 INFO (SyncWorker_12) [custom_components.icloud3.device_tracker] iphone_marco(None) Device Tracking Complete, Results-BaseZone-home > Zone-home, GPS-(43.510312, 13.261564), Interval-2 hrs, Dist-0 km, TravTime- (in_zone), NextUpdt-10:48:45, Located-08:48:48 (2 sec ago)