iCloud Binding Communication Error

If you use family sharing, you will see the devices via both accounts. So often multiple accounts aren’t necessary.

Tried. Can add devices as things, but channel “Find my Phone” wont work …

What does the bridge say? Online? Then just wait for the next cycle the binding refreshes.

What I see: the bridge sometimes get offline with failure 450 but if I just wait, It came up normally the next 5 minutes (what’s my refresh value is like)

Disabling and enabling bridge works faster, but creates an email from Apple about a new login.

Sometimes Apple creates a new 2FA, while bridge is still online. I just ignore it and then mostly there is now new Apple request. If changing code every time Apple sends one, this will cause in all 4 hours new 2FA.

As long as bridge is online ignoring it seems to be the trick in my case

In general, you are right. e.g. my daughter disabled location for family not let her brother see where she is. In such cases using the account of her for a separate bridge is needed. :joy:

So there may be reasons to have more bridges.

Just additional information tracking the bridge now for 2 days: it sometimes go offline, but only for less 5 minutes. So acceptable.

While tracking bridge and restart binding: bad idea, new 2FA asked by apple then.

Disable thing and enable again Leads to bridge online again and mostly without new 2FA. If it comes: ignore and then get rid off for the next days. In this case apple still sends mail with „new login from new device“

So it is stable as long, as the things are (in my case) both in separate thing-files. With textual configuration in one thing file, the entry of a code in one bridge resets the other one, leading to endless 2FA.

Because I don’t use UI configuration: no experience on that

Sorry for the stupid question … can someone share the link, where i could download the latest binding (maybe snapshot) JAR file from? I am on OH v3.3, dont want to upgrade, just would like to use the icloud binding as a separate addon.

Here it is again. Works with 3.3

1 Like

Thank you @JensH , appreciated!

I created a new release candidate for the binding: Release RC-2 · maihacke/openhab-addons · GitHub
Please test and provide feedback.

Tested RC2 but seems to have an issue. Account and things are “Online” but data is not updated. Run 3.4.0 - snapshot #3198.

Thanks for your feedback, created RC-3 which fixes the regression:

3 Likes

Thanks for this fix, was really quick. Works out now.

Just loaded it (openHAB 3.4M5) and it seems to be working. It looks like it took two tries to get there. Not a problem, but sharing FYI:

2022-12-06 10:22:07.606 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:account:iCloudAccountBridgeThing' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)
2022-12-06 10:22:38.011 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:iCloudAccountBridgeThing:KAirPods' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to UNINITIALIZED (BRIDGE_UNINITIALIZED)
2022-12-06 10:22:38.016 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:iCloudAccountBridgeThing:71c63b69' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to UNINITIALIZED (BRIDGE_UNINITIALIZED)
2022-12-06 10:22:38.033 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:account:iCloudAccountBridgeThing' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING
2022-12-06 10:22:42.787 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:account:iCloudAccountBridgeThing' changed from INITIALIZING to ONLINE
2022-12-06 10:22:42.817 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:iCloudAccountBridgeThing:KAirPods' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
2022-12-06 10:22:42.822 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:iCloudAccountBridgeThing:71c63b69' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
2022-12-06 10:22:42.824 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:iCloudAccountBridgeThing:GeorgeAppleWallet' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING
2022-12-06 10:22:42.827 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:iCloudAccountBridgeThing:KathleeniPhone13' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING
2022-12-06 10:22:43.258 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:iCloudAccountBridgeThing:KathleeniPhone13' changed from INITIALIZING to ONLINE
2022-12-06 10:22:43.284 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:iCloudAccountBridgeThing:GeorgeAppleWallet' changed from INITIALIZING to OFFLINE (CONFIGURATION_ERROR): The device is not included in the current account
2022-12-06 10:22:43.344 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:iCloudAccountBridgeThing:KAirPods' changed from INITIALIZING to OFFLINE (COMMUNICATION_ERROR): Reported offline by iCloud webservice
2022-12-06 10:22:43.356 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:iCloudAccountBridgeThing:71c63b69' changed from INITIALIZING to ONLINE
2022-12-06 10:22:44.686 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:iCloudAccountBridgeThing:KAirPods' changed from OFFLINE (COMMUNICATION_ERROR): Reported offline by iCloud webservice to ONLINE
2022-12-06 10:22:44.740 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:iCloudAccountBridgeThing:23366cfe' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING
2022-12-06 10:22:44.757 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:iCloudAccountBridgeThing:KAirPods' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Reported offline by iCloud webservice
2022-12-06 10:22:44.777 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:iCloudAccountBridgeThing:d8e940e9' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING
2022-12-06 10:22:44.855 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:iCloudAccountBridgeThing:23366cfe' changed from INITIALIZING to ONLINE
2022-12-06 10:22:46.450 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:iCloudAccountBridgeThing:d8e940e9' changed from INITIALIZING to ONLINE
2022-12-06 10:22:46.520 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:iCloudAccountBridgeThing:GeorgeiPhone13Pro' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING
2022-12-06 10:22:46.691 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:iCloudAccountBridgeThing:ca18beb9' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING
2022-12-06 10:22:46.768 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:iCloudAccountBridgeThing:GeorgeiPhone13Pro' changed from INITIALIZING to ONLINE
2022-12-06 10:22:48.044 [WARN ] [core.thing.internal.ThingManagerImpl] - Initializing handler for thing 'icloud:device:iCloudAccountBridgeThing:GeorgeAppleWallet' takes more than 5000ms.
2022-12-06 10:22:48.315 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:iCloudAccountBridgeThing:ca18beb9' changed from INITIALIZING to OFFLINE (COMMUNICATION_ERROR): Reported offline by iCloud webservice
2022-12-06 10:22:49.622 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:iCloudAccountBridgeThing:GeorgeAppleWallet' changed from OFFLINE (CONFIGURATION_ERROR): The device is not included in the current account to ONLINE
2022-12-06 10:22:49.733 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:iCloudAccountBridgeThing:GeorgeAppleWallet' changed from ONLINE to OFFLINE (CONFIGURATION_ERROR): The device is not included in the current account
2022-12-06 10:22:51.194 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:iCloudAccountBridgeThing:ca18beb9' changed from OFFLINE (COMMUNICATION_ERROR): Reported offline by iCloud webservice to ONLINE
2022-12-06 10:22:51.414 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:iCloudAccountBridgeThing:ca18beb9' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Reported offline by iCloud webservice
2022-12-06 10:22:52.590 [WARN ] [core.thing.internal.ThingManagerImpl] - Initializing handler for thing 'icloud:device:iCloudAccountBridgeThing:GeorgeiPhone13Pro' takes more than 5000ms.

Thanks for sharing, from my current understanding it is okay. From my pov it is because openhab initializes things in no particular order, e.g. devices have to “reinitialize” after bridge (=icloud account) is available

1 Like

With RC3, my OH3 installation started work again, all my Apple devices (including family members) are back online, thank you mate!

Just a quick update. It has been running well since I loaded it earlier today. It has dropped offline a few times, but recovered:

openhabian@openhab-midway:~ $ cat /var/log/openhab/events.log | grep icloud
2022-12-06 09:49:38.462 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:c44f819a9c:GeorgeiPhone13Pro' changed from ONLINE to UNINITIALIZED
2022-12-06 09:49:38.485 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:c44f819a9c:GeorgeiPhone13Pro' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)
2022-12-06 09:49:38.490 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:c44f819a9c:23366cfe' changed from ONLINE to UNINITIALIZED
2022-12-06 09:49:38.516 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:c44f819a9c:23366cfe' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)
2022-12-06 09:49:38.521 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:c44f819a9c:d8e940e9' changed from ONLINE to UNINITIALIZED
2022-12-06 09:49:38.543 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:c44f819a9c:d8e940e9' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)
2022-12-06 09:49:38.548 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:a068b376:65be325e' changed from ONLINE to UNINITIALIZED
2022-12-06 09:49:38.571 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:a068b376:65be325e' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)
2022-12-06 09:49:38.573 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:c44f819a9c:KathleeniPhone13' changed from ONLINE to UNINITIALIZED
2022-12-06 09:49:38.595 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:c44f819a9c:KathleeniPhone13' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)
2022-12-06 09:49:38.604 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:account:c44f819a9c' changed from ONLINE to UNINITIALIZED
2022-12-06 09:49:38.635 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:account:c44f819a9c' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)
2022-12-06 09:50:00.055 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:account:c44f819a9c' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING
2022-12-06 09:50:03.269 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:account:c44f819a9c' changed from INITIALIZING to ONLINE
2022-12-06 09:50:03.284 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:c44f819a9c:d8e940e9' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING
2022-12-06 09:50:03.287 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:a068b376:65be325e' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING
2022-12-06 09:50:03.293 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:c44f819a9c:KathleeniPhone13' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING
2022-12-06 09:50:03.307 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:c44f819a9c:GeorgeiPhone13Pro' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING
2022-12-06 09:50:03.313 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:c44f819a9c:23366cfe' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING
2022-12-06 09:50:03.954 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:c44f819a9c:KathleeniPhone13' changed from INITIALIZING to ONLINE
2022-12-06 09:50:04.028 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:a068b376:65be325e' changed from INITIALIZING to ONLINE
2022-12-06 09:50:04.056 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:c44f819a9c:23366cfe' changed from INITIALIZING to ONLINE
2022-12-06 09:50:04.139 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:c44f819a9c:GeorgeiPhone13Pro' changed from INITIALIZING to ONLINE
2022-12-06 09:50:04.164 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:c44f819a9c:d8e940e9' changed from INITIALIZING to ONLINE
2022-12-06 12:20:25.073 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:c44f819a9c:23366cfe' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Reported offline by iCloud webservice
2022-12-06 12:25:25.756 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:c44f819a9c:23366cfe' changed from OFFLINE (COMMUNICATION_ERROR): Reported offline by iCloud webservice to ONLINE
2022-12-06 13:55:38.574 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:c44f819a9c:23366cfe' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Reported offline by iCloud webservice
2022-12-06 13:55:38.601 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:c44f819a9c:GeorgeiPhone13Pro' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Reported offline by iCloud webservice
2022-12-06 14:00:39.262 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:c44f819a9c:23366cfe' changed from OFFLINE (COMMUNICATION_ERROR): Reported offline by iCloud webservice to ONLINE
2022-12-06 14:00:39.338 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:c44f819a9c:GeorgeiPhone13Pro' changed from OFFLINE (COMMUNICATION_ERROR): Reported offline by iCloud webservice to ONLINE
2022-12-06 16:56:06.710 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:c44f819a9c:23366cfe' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Reported offline by iCloud webservice
2022-12-06 17:01:07.455 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:c44f819a9c:23366cfe' changed from OFFLINE (COMMUNICATION_ERROR): Reported offline by iCloud webservice to ONLINE
2022-12-06 17:01:07.495 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:c44f819a9c:GeorgeiPhone13Pro' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Reported offline by iCloud webservice
2022-12-06 17:06:08.142 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:c44f819a9c:KathleeniPhone13' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Reported offline by iCloud webservice
2022-12-06 17:06:08.174 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:c44f819a9c:23366cfe' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Reported offline by iCloud webservice
2022-12-06 17:11:08.805 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:c44f819a9c:KathleeniPhone13' changed from OFFLINE (COMMUNICATION_ERROR): Reported offline by iCloud webservice to ONLINE
2022-12-06 17:11:08.848 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:c44f819a9c:23366cfe' changed from OFFLINE (COMMUNICATION_ERROR): Reported offline by iCloud webservice to ONLINE
2022-12-06 17:11:08.912 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:c44f819a9c:GeorgeiPhone13Pro' changed from OFFLINE (COMMUNICATION_ERROR): Reported offline by iCloud webservice to ONLINE
2022-12-06 18:16:18.599 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:c44f819a9c:23366cfe' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Reported offline by iCloud webservice
2022-12-06 18:21:19.298 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'icloud:device:c44f819a9c:23366cfe' changed from OFFLINE (COMMUNICATION_ERROR): Reported offline by iCloud webservice to ONLINE

Thanks for sharing. Your device was reported “offline” (=deviceStatus != 200) from iCloud itself. So connection from the binding to iCloud is working. So currently I think this is not a problem / intended behaviour.

Thank you Simon for your release. In general it works perfect.

One - probably simple- question. Is there any chance to avoid (after each reboot) the authentification? All the time Apple is asking the device if it okay to “allow”.

Somehow in the past I didnt have this “problem”. Well its not really a problem, but its simply annoying.

Thanks and regards

Normally this shouldn’t happen, if 2-FA works correctly.

On my device I am confirming but the number which I receive for authentification I cannot enter somewhere. Any idea how to enter the 6 digits?

I´m having the same issue…

The bridge itself is online but my devices (two iphones) are offline:

COMMUNICATION_ERROR
Reported offline by iCloud webservice

Any idea how to fix this?
Thx