The ICloud3 intergration works very well, but i just no get a warning message about 2 factor authentication. Preceed that, but now I end up with an error:
2020-12-22 12:00:34 ERROR (SyncWorker_5) [custom_components.icloud3.device_tracker] iCloud3 Setup Error > > The iOS App device_tracker entity was not found in the Entity Registry.. Device_tracker entities (suffixes) found -
2020-12-22 12:00:34 ERROR (SyncWorker_5) [custom_components.icloud3.device_tracker] string index out of range
Traceback (most recent call last):
File "/config/custom_components/icloud3/device_tracker.py", line 6038, in _initialize_device_zone_fields
first_initial = self.fname.get(devicename)[0].lower()
IndexError: string index out of range
@rolfberkenbosch
What version of iCloud3 are you using? Your problem is probably caused by having the device’s name as ‘iphone’. That text string is removed from the device’s name to create a friendly name so it is ending up with an empty text string causing the error. I just made a change t to iCloud3 to not do that if the name was ‘iphone’.
Download the v2.2.2rc8b from the development directory and see if it fixes your issue. Instructions on doing that are on previous posts above.
I have updated to the latest version en als some RC’s but when I want to “confirm” on the trusted device code it just doesn’t do anything, the popup stays there and I am only able to discard it by pressing X
In the event log it shows me “Verify Trusted Device Id > Invalid Device Id Entered-265541” And I am 100% sure the ID is right, tested with the same settings by logging in at apple (other ID offcourse)
@denver
I either left those in v2.3 for backward compatibility with automations and scripts or levt them in v2.2 and forgot to remove them on v2.3. Add the following to your configuration file to exclude them:
exclude_sensors: zon1,zon2,zon3,lzon1,lzon2,lzon3
I’ll remove them on the next release or v2.3 update.
Thank you, Rob.
This is the part I am not getting yet because its confusing with www/community vs. custom_cards (in my case using HAOS → www/community).
However - there is no icloud3-event-log-card.js.gz file in the custom_components folder,
I wonder where this is, because my other community cards have this file as well (beside the .js)
Having an issue with authentication. I am not being prompted for 2FA. I had to update my pw which I did. Now I am getting this error when icloud3 starts. I am not sure which part I am missing.
That’s very odd. HACS isn’t showing an upgrade. I will figure out what’s going on with my install and make sure it’s where it’s supposed to be. If I still have a problem after that I will move to that thread. Thank you for the assistance.
I got the version from the Event Log screen shot you posted a few minutes ago. You could also be running v2.4.7 but the Event Log is an old version. If so, clear your browsers cache and restart HA. The attributes of the device_tracker sensor will show what iCloud3 version you’re running and it’s also shown on the first line of the Event Log with the Configuration info.
The default is /www/custom_cards/icloud3-event-log-card.js. Also there is a configuration parameter that lets you change the default but that is not normally done. When iCloud3 starts, it looks at the version of the Event Log Card and copies the file from the iCloud3 directory to the directory it run from under the /www location.
On a phone or iPad, the cache is cleared from the Debug screen Reset Frontend Cache command. Then go back to iCloud3 and pull the screen down it refresh it. You should see a spinning wheel when it’s refreshing.
So for anyone that had a similar issue to me, do a deep dive and determine where all the places you have the event js file installed. I had a latent file installed in several places and once I got rid of all of them as well as did a full reinstall I was good to go. I did have to configure a resource for the js card even though HACS created one. The HACS one didn’t see to work. Once I manually configured it per the install instructions everything was working as expected again.