Im using the iCloud Binding on 2.2 Release. Up until yesterday the iPhone Location worked perfectly and today it just stopped updating. I havnt changed any settings related to the Binding or changed my iCloud details either. I have only played with a .rules file and there are no related errors. I have also tried logging into www.icloud.com/find in incognito mode usng the same details as in Openhab and im able to see updated positions for my devices (green dots) This is the output in DEBUG mode after restarting Openhab2:
2018-01-11 21:00:00.620 [hingStatusInfoChangedEvent] - 'icloud:account:********' changed from INITIALIZING to UNINITIALIZED
2018-01-11 21:00:00.627 [hingStatusInfoChangedEvent] - 'icloud:account:********' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)
2018-01-11 21:00:01.162 [temChannelLinkRemovedEvent] - Link 'PatrycjasiPhone_BatteryStatus => icloud:device:********:********:batteryStatus' has been removed.
2018-01-11 21:00:01.162 [temChannelLinkRemovedEvent] - Link 'PatrycjasLocation => icloud:device:********:********:location' has been removed.
2018-01-11 21:00:01.168 [temChannelLinkRemovedEvent] - Link 'MaciejsiPhone_BatteryLevel => icloud:device:********:********:batteryLevel' has been removed.
2018-01-11 21:00:01.168 [temChannelLinkRemovedEvent] - Link 'PatrycjasiPhone_BatteryLevel => icloud:device:********:********:batteryLevel' has been removed.
2018-01-11 21:00:01.175 [temChannelLinkRemovedEvent] - Link 'MaciejsiPhone_BatteryStatus => icloud:device:********:********:batteryStatus' has been removed.
2018-01-11 21:00:01.175 [temChannelLinkRemovedEvent] - Link 'PatrycjasiPhone_LocationAccuracy => icloud:device:********:********:locationAccuracy' has been removed.
2018-01-11 21:00:01.175 [temChannelLinkRemovedEvent] - Link 'PatrycjasiPhone_LocationLastUpdate => icloud:device:********:********:locationLastUpdate' has been removed.
2018-01-11 21:00:01.175 [temChannelLinkRemovedEvent] - Link 'MaciejsLocation => icloud:device:********:********:location' has been removed.
2018-01-11 21:00:01.176 [temChannelLinkRemovedEvent] - Link 'MaciejsiPhone_LocationLastUpdate => icloud:device:********:********:locationLastUpdate' has been removed.
2018-01-11 21:00:01.176 [temChannelLinkRemovedEvent] - Link 'MaciejsiPhone_LocationAccuracy => icloud:device:********:********:locationAccuracy' has been removed.
2018-01-11 21:00:01.176 [temChannelLinkRemovedEvent] - Link 'MaciejsiPhone_FindMyPhone => icloud:device:********:********:findMyPhone' has been removed.
2018-01-11 21:00:01.176 [temChannelLinkRemovedEvent] - Link 'PatrycjasiPhone_FindMyPhone => icloud:device:********:********:findMyPhone' has been removed.
2018-01-11 21:00:13.541 [.ItemChannelLinkAddedEvent] - Link 'PatrycjasiPhone_BatteryStatus-icloud:device:********:********:batteryStatus' has been added.
2018-01-11 21:00:13.542 [.ItemChannelLinkAddedEvent] - Link 'PatrycjasLocation-icloud:device:********:********:location' has been added.
2018-01-11 21:00:13.542 [.ItemChannelLinkAddedEvent] - Link 'MaciejsiPhone_BatteryLevel-icloud:device:********:********:batteryLevel' has been added.
2018-01-11 21:00:13.543 [.ItemChannelLinkAddedEvent] - Link 'PatrycjasiPhone_BatteryLevel-icloud:device:********:********:batteryLevel' has been added.
2018-01-11 21:00:13.544 [.ItemChannelLinkAddedEvent] - Link 'MaciejsiPhone_BatteryStatus-icloud:device:********:********:batteryStatus' has been added.
2018-01-11 21:00:13.545 [.ItemChannelLinkAddedEvent] - Link 'PatrycjasiPhone_LocationAccuracy-icloud:device:********:********:locationAccuracy' has been added.
2018-01-11 21:00:13.546 [.ItemChannelLinkAddedEvent] - Link 'PatrycjasiPhone_LocationLastUpdate-icloud:device:********:********:locationLastUpdate' has been added.
2018-01-11 21:00:13.549 [.ItemChannelLinkAddedEvent] - Link 'MaciejsLocation-icloud:device:********:********:location' has been added.
2018-01-11 21:00:13.551 [.ItemChannelLinkAddedEvent] - Link 'MaciejsiPhone_LocationLastUpdate-icloud:device:********:********:locationLastUpdate' has been added.
2018-01-11 21:00:13.552 [.ItemChannelLinkAddedEvent] - Link 'MaciejsiPhone_LocationAccuracy-icloud:device:********:********:locationAccuracy' has been added.
2018-01-11 21:00:13.554 [.ItemChannelLinkAddedEvent] - Link 'MaciejsiPhone_FindMyPhone-icloud:device:********:********:findMyPhone' has been added.
2018-01-11 21:00:13.555 [.ItemChannelLinkAddedEvent] - Link 'PatrycjasiPhone_FindMyPhone-icloud:device:********:********:findMyPhone' has been added.
2018-01-11 21:00:13.701 [hingStatusInfoChangedEvent] - 'icloud:device:********:********' changed from UNINITIALIZED to UNINITIALIZED (BRIDGE_UNINITIALIZED)
2018-01-11 21:00:13.798 [hingStatusInfoChangedEvent] - 'icloud:device:********:********' changed from UNINITIALIZED to UNINITIALIZED (BRIDGE_UNINITIALIZED)
2018-01-11 21:00:14.055 [hingStatusInfoChangedEvent] - 'icloud:device:********:********' changed from UNINITIALIZED to UNINITIALIZED (BRIDGE_UNINITIALIZED)
2018-01-11 21:00:14.066 [hingStatusInfoChangedEvent] - 'icloud:account:********' changed from UNINITIALIZED to INITIALIZING
I’m having the same problem.BatteryStatus and BatteryLevel are updating, but location is not.
The version of the icloud binding is 2.3.0.201801092213
Funny, I had it fail for the first time around 5pm yesterday, after running smoothly for weeks. Restarted the binding today and it’s working fine for now.
if the binding keeps failing, please set loglevel to DEBUG for the binding and provide me the logs; I´ll then have a look what might be the issue. I´ve a PR pending for merge with a few improvements in http communication and date/time parsing … but I´m not sure if the issues you see are related without the DEBUG, or even TRACE .logs.
I have exactly the same problem. Binding works for a couple of days, and then data stops refreshing - funnily enough Find My iPhone still triggers ok from the binding. All starts working again after an OpenHAB restart.
I have enabled debugging during the down period and also after an OpenHAB restart - output is below:
thank you for the logs. Unfortunatley I can not determine what causes the problem. Do you see any warnings or errors when the update stops working; either from the binding or from OH itself?
Went through the logs and found this at the point of failure - the warning was generated at every refresh interval (1 min in my case) until my manual reboot:
2018-01-16 19:43:24.425 [WARN ] [d.handler.ICloudAccountBridgeHandler] - Unable to refresh device data
java.net.UnknownHostException: fmipmobile.icloud.com
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184) ~[?:?]
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[?:?]
at java.net.Socket.connect(Socket.java:589) ~[?:?]
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:673) ~[?:?]
at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:173) ~[?:?]
at sun.net.NetworkClient.doConnect(NetworkClient.java:180) ~[?:?]
at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) ~[?:?]
at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) ~[?:?]
at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:264) ~[?:?]
at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367) ~[?:?]
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191) ~[?:?]
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1156) ~[?:?]
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1050) ~[?:?]
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177) ~[?:?]
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1334) ~[?:?]
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1309) ~[?:?]
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:259) ~[?:?]
at org.openhab.binding.icloud.internal.Connection.postRequest(Connection.java:95) ~[?:?]
at org.openhab.binding.icloud.internal.Connection.requestDeviceStatusJSON(Connection.java:55) ~[?:?]
at org.openhab.binding.icloud.handler.ICloudAccountBridgeHandler.lambda$0(ICloudAccountBridgeHandler.java:81) ~[?:?]
at org.eclipse.smarthome.core.cache.ExpiringCache.refreshValue(ExpiringCache.java:81) ~[?:?]
at org.eclipse.smarthome.core.cache.ExpiringCache.getValue(ExpiringCache.java:61) ~[?:?]
at org.openhab.binding.icloud.handler.ICloudAccountBridgeHandler.refreshData(ICloudAccountBridgeHandler.java:132) ~[?:?]
at org.openhab.binding.icloud.handler.ICloudAccountBridgeHandler.lambda$1(ICloudAccountBridgeHandler.java:123) ~[?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
at java.lang.Thread.run(Thread.java:748) [?:?]
I think that the root cause of this is the dns resolution using /etc/resolv.conf is using my local router which i do not trust. I’ve thrown in some google nameservers to see if that fixes the issues I’ve been seeing.
I think I have almost the same issue.
For me (very rarely) stops working entirely. The Things in PaperUI shows that it is online, I can’t see any errors or warns in the log (I haven’t changed the logging level though), but it stops updating all info. I can see it from the Last Location Update timestamp, but the battery levels also stay the same
Bundle:refresh solves the problem though. I don’t think that there is a dns resolve or internet connection problem, because I have multiple other bindings which communicate through internet, not locally and these doesn’t stop updating…
I also have the same issue about once a week all info stops updating. All the Things are still “Online” but no updates are occuring and there is no response to forcing and update.
I can confirm Bundle:refresh solves the problem. Is there any way to get this fixed or shall I just cron up a bundle:refresh every couple of days.
I’m having this issue still with 2.5.0M2, but have experienced this in prior versions too. Did anyone come up with a resolution other than setting up a cron job to refresh the bundle?