Closed AlexMC closed 1 year ago
The Gb.async_add_entities_device_tracker
field the error refers to is passed into iCloud3 by HA when it first starts.
If you do, send the config/icloud3-0.log
and home-assistant.log
files to geekstergary@gmail.com so I can see how iCloud3 started.
Hi @gcobb321, thanks for the fast reply and the awesome work on iCloud3!
Today, after I got in, changed to debug, and restarted, the two devices that had errored out yesterday just appeared and were working fine! I tried adding a third device, and it went through without any issues... seems like it was just a random fluke...
Would it still be beneficial if I dig deeper and send through something?
Glad a restart cleared up the problem. Since it appears to be working, the logs won’t be necessary
Hello, I have exactly the same problem. And I followed everything according to this youtube video. https://www.youtube.com/watch?v=Gm8NRMy0YHw At minute 14:10 I got stuck because it always brings this error "Unknown error". I tried to clear my browser cache. I switched to Debug Log Internal Tracking Monitors on page 2. All unfortunately no success... Please help me urgently as I would love to track my Iphone....
Best regards from Bavaria!
@gcobb321
Edit the 2 files below and add the following code:
Gb.hass = hass
icloud3/device_tracker.py — line 65 Icloud3/sensor.py —- line 75
restart HA
@maiki97 Make sure you are using the latest version Prerelease pr1.3. It is available on HACS (beta versions need to be enabled). Search for iCloud3. It’s also available on the iCloud3 Development site linked to in the video.
I did not know about the video. Thanks for pointing it out.
This should fix the following error. I think this is caused by starting the iCloud3 Configure Settings before HA has finished loading.
File "/config/custom_components/icloud3/config_flow.py", line 3417, in _set_header_msg
self.errors['base'] = self.header_msg
~~~~~~~~~~~^^^^^^^^
TypeError: 'str' object does not support item assignment
Edit the file _/icloud3/configflow.py . Change line 2289 to read:
self.errors = {'base': 'no_add_entities_device_tracker_fct'}
Hello, thank you for the quick reply! I really hope that you can help me further. I have followed everything as described in your steps. Unfortunately no success... the GB.hass=hass was already in it and also the prerelease vers. 1.3 is already installed. In config_flow.py I have replaced the self errors line with yours. Now I get but one more error message when I press add devices....
although I have already restarted Home Assistant 4 times...
@gcobb321
@maiki97 I think I have fixed the problem with the error message and not being able to add the first device.
Download config_flow_pr1.4.py here.
Save it to the /icloud3 directory as _configflow.py and restart HA
Thanks for everything already! I was able to add my Iphone, my Airpods and my Applewatch and it all shows up. Awesome! Now I just do not know how I can integrate the Iphone from my girlfriend, because it does not appear in Family Sharing list. Do I have to log in to Data sources with the icloud email of my girlfriend ? Best regards! @gcobb321
@maiki97 Unfortunately, Apple discontinued tracking devices that are not on the Family Sharing list last May. Up until then, thr Find-my-Friends would provide that information. All IHG code is still in iCloud3 so I hope to find a method to do that after v3 goes live and Steelers down.
So right now, the only way is to add her to your list.
Okay no problem I tried it with the email address of my girlfriend and was able to track her IPhone there and add it to Home assistant. So far everything should work. Thanks again for everything!
Hi,
While trying to add a device, I get an unknown error, and the device is not created. This is what I find in the logs: