gcobb321 / icloud3

iCloud3 v3 - iCloud3 is an advanced iDevice tracker that uses Apple iCloud account and HA Companion App data for presence detection and location based automations.
MIT License
498 stars 52 forks source link

All devices unverified #306

Open derekoharrow opened 4 months ago

derekoharrow commented 4 months ago

Since rc10.3 (I think) all my icloud devices are showing as unverified and are not being tracked.

There are the following errors in the HA log file:

2024-02-19 11:30:47.363 ERROR (SyncWorker_31) [icloud3] list index out of range
Traceback (most recent call last):
  File "/config/custom_components/icloud3/support/start_ic3_control.py", line 208, in stage_4_setup_data_sources
    if start_ic3.setup_tracked_devices_for_famshr() is False:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/icloud3/support/start_ic3.py", line 1358, in setup_tracked_devices_for_famshr
    _check_duplicate_device_names(PyiCloud, _FamShr)
  File "/config/custom_components/icloud3/support/start_ic3.py", line 1625, in _check_duplicate_device_names
    famshr_fnames_base  = [_fname_base(famshr_fname)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/icloud3/support/start_ic3.py", line 1731, in _fname_base
    suffix = fname.split('(')[1].split(')')[0]
             ~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range
2024-02-19 11:30:47.384 ERROR (SyncWorker_31) [icloud3] list index out of range
Traceback (most recent call last):
  File "/config/custom_components/icloud3/support/start_ic3_control.py", line 208, in stage_4_setup_data_sources
    if start_ic3.setup_tracked_devices_for_famshr() is False:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/icloud3/support/start_ic3.py", line 1358, in setup_tracked_devices_for_famshr
    _check_duplicate_device_names(PyiCloud, _FamShr)
  File "/config/custom_components/icloud3/support/start_ic3.py", line 1625, in _check_duplicate_device_names
    famshr_fnames_base  = [_fname_base(famshr_fname)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/icloud3/support/start_ic3.py", line 1731, in _fname_base
    suffix = fname.split('(')[1].split(')')[0]
             ~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range
2024-02-19 11:30:48.006 ERROR (SyncWorker_31) [icloud3] list index out of range
Traceback (most recent call last):
  File "/config/custom_components/icloud3/support/start_ic3_control.py", line 208, in stage_4_setup_data_sources
    if start_ic3.setup_tracked_devices_for_famshr() is False:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/icloud3/support/start_ic3.py", line 1358, in setup_tracked_devices_for_famshr
    _check_duplicate_device_names(PyiCloud, _FamShr)
  File "/config/custom_components/icloud3/support/start_ic3.py", line 1625, in _check_duplicate_device_names
    famshr_fnames_base  = [_fname_base(famshr_fname)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/icloud3/support/start_ic3.py", line 1731, in _fname_base
    suffix = fname.split('(')[1].split(')')[0]
             ~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range
2024-02-19 11:30:48.160 ERROR (SyncWorker_31) [icloud3] list index out of range
Traceback (most recent call last):
  File "/config/custom_components/icloud3/support/start_ic3_control.py", line 208, in stage_4_setup_data_sources
    if start_ic3.setup_tracked_devices_for_famshr() is False:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/icloud3/support/start_ic3.py", line 1358, in setup_tracked_devices_for_famshr
    _check_duplicate_device_names(PyiCloud, _FamShr)
  File "/config/custom_components/icloud3/support/start_ic3.py", line 1625, in _check_duplicate_device_names
    famshr_fnames_base  = [_fname_base(famshr_fname)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/icloud3/support/start_ic3.py", line 1731, in _fname_base
    suffix = fname.split('(')[1].split(')')[0]
             ~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range

Also, if I go into config settings -> cloud account and mobile app it says:

The Mobile App Integration is not installed. The Mobile App will not be used as a data source; location data and zone enter/exit triggers will not be monitored

But, the Mobile App integration is installed and working just fine.

In Stage 5 of the log file, it has Red Crosses next to each device saying NOT Tracked Device and a red cross next to Mobile App Tracking Parameters, and Notifications says Waiting for Notify Svc to Start.

gcobb321 commented 4 months ago

I just uploaded rc10.4 yesterday afternoon. Download that one and lets see if this happens. If so, I'll need your icloud3-0.log file to see what is going on. Also export the event log and send me that. I did some work on these log files to make them a lot easier to see what was going on.

gcobb321 commented 4 months ago

I added error catching code to the error you encountered above (list index out of range) to prevent that error. It probably has to do with the Mobile App Integration not being set up. Do you see the Mobile App Integration on the Integration page with the iPhone and other iDevices listed?

Unzip start_ic3.ip into the icloud3/support directory and restart ha start_ic3.zip