iCloud binding refresh device data failed (again)

1 Like

What kind of problem do you encounter during use? Why you have to refresh it every few days?

I had problems with my iCloud binding and couldn´t find any solution.
I´m using a dummy account that only has access to the iCloud locations and can´t do anything like buying apps.
The log only said:

2019-03-13 16:56:33.162 [hingStatusInfoChangedEvent] - 'icloud:device:openHAB:iPMichael' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
2019-03-13 16:56:33.233 [hingStatusInfoChangedEvent] - 'icloud:device:openHAB:iPMichael' changed from INITIALIZING to OFFLINE (CONFIGURATION_ERROR): The device is not included in the current account

Today i logged into the account and had a look at the find my iphone feature.
I could see every device that is connected to the family.
Back at the log and what do i see?

2019-03-13 17:01:35.369 [hingStatusInfoChangedEvent] - 'icloud:device:openHAB:iPMichael' changed from OFFLINE (CONFIGURATION_ERROR): The device is not included in the current account to ONLINE
2019-03-13 17:01:35.421 [vent.ItemStateChangedEvent] - iPMichael_LastUpdate changed from 2019-03-04T16:35:22.000+0100 to 2019-03-13T16:57:36.092+0100

So my iCloud binding was offline because i never really logged into my dummy account after creating it.

kind regards
Michael

My iCloud Binding stopped 2 days ago. Had to manually restart it myself.
event.log shows this:

2019-03-20 12:24:49.168 [DEBUG] [internal.handler.ICloudDeviceHandler] - initializeThing thing [icloud:device:0d051c7e:9abd6490]; bridge status: [ONLINE]

After this entry, the devices will be discovered, but not updated propery.
After restarting the binding with bundle:restart x it worked immediately. We’ll see how long :slight_smile:

Yes I also has this bug long time ago. It suddenly stops after working for many-many days (usually more than a month) and it stops without a sign (everything is online, but it doesn’t update the device’s info).

I also had this problem. Maybe this helps to solve it:

2020-07-22 12:40:29.103 [WARN ] [mmon.WrappedScheduledExecutorService] - Scheduled runnable ended with an exception:
java.lang.NullPointerException: null
at org.openhab.binding.icloud.internal.handler.ICloudAccountBridgeHandler.refreshData(ICloudAccountBridgeHandler.java:205) ~[?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_152]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) ~[?:1.8.0_152]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) ~[?:1.8.0_152]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) ~[?:1.8.0_152]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_152]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_152]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_152]

It happened after running for several month. Then the problem occurred, for several hours. After restarting openhab it is gone.