Hi all,
i’ve installed using HACS iCloud3 components, I’ve configured it as follow:
configuration.yaml
- platform: icloud3
username: !secret icloud_smr_u
password: !secret icloud_smr_p
tracking_method: icloud
config_ic3.yaml
- device_name: iPhone di SMR
name: iphone_smr
email: [email protected]
noiosapp: true
but i’m not able to retrieve the location of the device. In HA, device_tracker and sensor are created as entity but not update. Looking log i’ve found:
in RESPONSE_DATA message
"batteryStatus":"Charging",
"location":{
"isOld":false,
"isInaccurate":false,
"altitude":0.0,
"positionType":"Cell",
"secureLocation":"None",
"secureLocationTs":0,
"latitude":45.744085160600035,
"floorLevel":0,
"horizontalAccuracy":65.0,
"locationType":"",
"timeStamp":1621514584241,
"locationFinished":false,
"verticalAccuracy":0.0,
"locationMode":"None",
"longitude":9.815004973187013
}
and after
2021-05-20 14:44:00 INFO (SyncWorker_4) [custom_components.icloud3.device_tracker] ◆iphone_di_smr--◆UPDATE LOC DATA (FAMSHR) > None, name-iPhone di SMR, id-kHdvkqjADYA3Gyp5TuFXaTI4Sf/DhVFiSn400TfzbfMgcT5Qud45duHYVNSUzmWV from-iphone_di_smr
2021-05-20 14:44:00 INFO (SyncWorker_4) [custom_components.icloud3.device_tracker] ◆iphone_di_smr--◆UPDATE LOC DATA (FAMSHR) > None, name-AirPods Pro di SMR, id-VATNiH8ZT3vNfpOCQWc/8ESGYf4iDKhwa2jPAdGMVheLzc3GuKQF1llRt8WEfgnFyCiOV8S0xSiclUgpQJf5BeHYVNSUzmWV from-iphone_di_smr
2021-05-20 14:44:00 INFO (SyncWorker_4) [custom_components.icloud3.device_tracker] ◆iphone_di_smr--◆UPDATE LOC DATA (FAMSHR) > None, name-iPhone di SMR, id-Cqy9Jwq8nXRUiuFVok2QGmEU2WI0R+Awi7mxiFvihSk= from-iphone_di_smr
2021-05-20 14:44:00 INFO (SyncWorker_4) [custom_components.icloud3.device_tracker] ◆iphone_di_smr--◆SETUP BASE KWARGS zone_name-None, inzone-state-True
2021-05-20 14:44:00 INFO (SyncWorker_4) [custom_components.icloud3.device_tracker] ◆iphone_di_smr--◆WRITE Attrs ___ (DetIntlErrorRetry)
2021-05-20 14:44:00 INFO (SyncWorker_4) [custom_components.icloud3.device_tracker] ◆iphone_di_smr--◆WRITE Last State-not_set, This State-not_set
2021-05-20 14:44:00 INFO (SyncWorker_4) [custom_components.icloud3.device_tracker] ◆iphone_di_smr--◆WRITE Attrs-{'gps': (45.150707071895155, 9.487875681370499), 'battery': 0, 'gps_accuracy': 0}{'interval': '1 min', 'poll_count': '0:0:7', 'last_update': '2021-05-20 14:44:00', 'next_update': '2021-05-20 14:45:00', 'info': '● No location data (#7) ●', 'timestamp': '2021-05-20 12:44:00', 'name': 'iphone_smr', 'trigger': 'NextUpdateTime (Retry)@00:00:00'}
So, position in JSON seem to be correctly reported …but wrong in ‘WRITE Attrs’
Anyone could help me?
thanks in advance
Regards
Stefano