Integration fails to load
I don’t know what’s happening but the integration fails to load for about a week or so. I couldn’t pinpoint the issue. These are all the relevant logs:
Source: config_entries.py:749
First occurred: 23:12:18 (2 occurrences)
Last logged: 23:12:18
Error setting up entry iCloud3 for device_tracker
Error setting up entry iCloud3 for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 749, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/device_tracker/config_entry.py", line 56, in async_setup_entry
return await component.async_setup_entry(entry)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 219, in async_setup_entry
raise ValueError(
...<2 lines>...
)
ValueError: Config entry iCloud3 (ddae78304faaa3cbe37b94baac6274af) for icloud3.device_tracker has already been setup!
I’m running HAOS and everything is up to date.
It almost sounds like you have two devices that are configured in the iCloud3 configuration file with the same name.
I just released v 3.2.4 on the development repository here.
I do not think this will fix your problem but I would first update to that version.
- You can get the zip (icloud3_v3.2.4.zip) file from the Releases page here, unzip it into your custom_components/icloud3 directory
- or add the Development repository from HACS (instructions are here) . Then get it from HACS and restart HA like you normally do.
If it starts up but still gives a bunch of errors, clear the devices in the iCloud3 configuration file (Configure Gear > Tools > Remove All Apple Accounts & Devices). Then restart HA, set them up again and see if it loads then.
It almost sounds like you have two devices that are configured in the iCloud3 configuration file with the same name.
Yes, that's what it would seem like, but upon further checking, that's not the case, I found another log:
I'll try the new update and see what happens.
Source: config_entries.py:749
First occurred: 06:18:27 (2 occurrences)
Last logged: 06:25:27
Error setting up entry iCloud3 for icloud3
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 749, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/icloud3/__init__.py", line 251, in async_setup_entry
icloud3_started = await Gb.hass.async_add_executor_job(Gb.iCloud3.start_icloud3)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
asyncio.exceptions.CancelledError: Global task timeout: Bootstrap stage 2 timeout ```
I am experiencing the same issue. I decided to renew the download of iCloud3, but then when trying to install it again I ran into the following Error:
Config-flow kon niet geladen worden: 500 Internal Server Error Server got itself in trouble
So now I'm completly shut off of any iCloud entities. 🦖
What version of iCloud3 are you running? When and where did you get it?
I just tried to run the dev version as you mentioned here above, but same issue: the integration will not load. As the same goes for 3 other custom components (frigate, icsee, moonraker). This seems to be the case since 2025.8.0 as a restore to that version wasn't the remedy.
It seems that my problem, somehow it solved by itself. The integration had problems loading because of timeouts caused by a miss configuration in my ipv6 setup, ipv6 DNS setup, to be more specific. I had manually defined Google and Clodflare DNS in my Home Assistant ipv6 network settings, which the integration wasn't able to resolve to, but at some point, I don't know exactly how, my ISP's DNS were automatically added, making the timeout errors go away and the integration to properly load.
Could you show a screenshot of your DNS settings entries. Hide the actual IPv6 addresses in the screenshot but I wanted to see where these items are within HA.
The last two, that are encircled in yellow, are the ones that were automatically added and they're provided by my ISP, the first 4 entries are Google and Cloudflare DNS servers which were manually added, at least the Cloudflare, the Google is by default.
Thanks