Announcement

Collapse
No announcement yet.

iCloud devices no longer updated?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    iCloud devices no longer updated?

    Paul,

    Last week I have updated the plugin to the latest version 3.0.1.17. Since this upgrade, the devices are no longer updated, except once or twice for battery level, locations are not moving at all?

    Anything that I can do to get them updated again?

    Wim
    -- Wim

    Plugins: JowiHue, RFXCOM, Sonos4, Jon00's Perfmon and Network monitor, EasyTrigger, Pushover 3P, rnbWeather, BLBackup, AK SmartDevice, Pushover, PHLocation, Zwave, GCalseer, SDJ-Health, Device History, BLGData

    1210 devices/features ---- 392 events ----- 40 scripts

    #2
    There are some issues with devices not updating if you have the refresh interval set at more than 10 minutes. I will fix those issues this coming weekend.

    What interval are you currently using with the account that isn't updating?

    Paul..

    Comment


      #3
      Paul,

      I have it set at 10 minutes, no events are changing it yet. Would it help if I set it lower for now?

      Wim
      -- Wim

      Plugins: JowiHue, RFXCOM, Sonos4, Jon00's Perfmon and Network monitor, EasyTrigger, Pushover 3P, rnbWeather, BLBackup, AK SmartDevice, Pushover, PHLocation, Zwave, GCalseer, SDJ-Health, Device History, BLGData

      1210 devices/features ---- 392 events ----- 40 scripts

      Comment


        #4
        Can you try it at 8 minutes or less and see if it starts updating.

        The problems appeared after I added the longer refresh intervals >10 mins.
        The problem is that iCloud always returns an off-line status if it's been more than 10 minutes since the last request and in trying to get over this issue I broke the updating for longer intervals.

        Paul..

        Comment


          #5
          Paul,

          I did that just now... will have to wait until tomorrow to see if it works though as both devices are home now, the same place as April 1, when I update the plugin
          But after the change of polling period I saw the following in the log:

          apr-06 22:15:46 PHLocation (StartiCloud) iCloud service started OK for: +++++@+++++.nl
          apr-06 22:15:43 PHLocation (handleiCloudLogging) From: 2924 msg: RunUpdate attempt 1 failed, trying again in 2 seconds.
          apr-06 22:15:43 PHLocation Warning (handleiCloudLogging) From: 2924 msg: GetDevices returned empty on second attempt! Aborting update.
          apr-06 22:15:41 PHLocation (handleiCloudLogging) From: 2924 msg: GetDevices returned empty on first try. Trying to re-authenticate!
          apr-06 22:15:37 PHLocation (StartiCloud) Called.
          apr-06 22:15:37 PHLocation (CreateDeviceLists) There are no active custom user devices. Setting monitoring to OFF.
          apr-06 22:15:37 PHLocation (CreateDeviceLists) iAccount type device PHLCIC[2924]R added to monotiring list.

          Should I worry? It looks like something is going wrong?

          Wim
          -- Wim

          Plugins: JowiHue, RFXCOM, Sonos4, Jon00's Perfmon and Network monitor, EasyTrigger, Pushover 3P, rnbWeather, BLBackup, AK SmartDevice, Pushover, PHLocation, Zwave, GCalseer, SDJ-Health, Device History, BLGData

          1210 devices/features ---- 392 events ----- 40 scripts

          Comment


            #6
            If you set debug level to 1, then hit the force update button for an iCloud account you should see some info in the HS log about what's happening.

            The messages in your last post are indicating that it wasn't able to successfully connect on the 1st attempt. It tries 3 times with a 2 second interval. It would appear that it connected OK on the second attempt.

            Paul..

            Comment


              #7
              Paul,

              This morning the devices were updating until 9:30 am. I have two iphones and an ipad on one account running. The iphones are moving. One Iphone has not really been moving (mine) after 9 am, as I am in the office now. The other iphone is still moving. The followmee account on this phone (still using this until icloud works nicely) is updating every 15 minutes and showing the correct loction. The icloud device is no longer updating again, although still set at 8 minutes.

              I think there is more happening than only the polling rate?

              *edit* The wife sends me a imessage just now and immediately the location is also updated, without extra actions done.

              Wim
              Last edited by w.vuyk; April 7, 2016, 03:53 AM. Reason: Adding extra info
              -- Wim

              Plugins: JowiHue, RFXCOM, Sonos4, Jon00's Perfmon and Network monitor, EasyTrigger, Pushover 3P, rnbWeather, BLBackup, AK SmartDevice, Pushover, PHLocation, Zwave, GCalseer, SDJ-Health, Device History, BLGData

              1210 devices/features ---- 392 events ----- 40 scripts

              Comment


                #8
                Wim,

                Can I send you a new version of the plug-in to try with some extra logging enabled so we can establish what's happening.

                I've been testing here today using an account with a single iPhone at 8 minute intervals and it appears to be working fine.

                Not sure if I have your email address, but if you contact me by email I can send you the new version.

                Paul..

                Comment


                  #9
                  Hi ,

                  Today i added a New account with 2 devices on iT , the first device updates good, and the last device is still at waiting for update .
                  And getting this Error

                  (UpdateUserDevice) Error with device update procedure! System.NullReferenceException: Object reference not set to an instance of an object. at o.a(Int32 A_0, String A_1) at j.a(e A_0, Int32 A_1)
                  Apr-08 23:38:11 PHLocation Error




                  This Error was after adding the last device


                  Apr-08 23:35:14 PHLocation Error(CreateDeviceLists) Place PHLCPL[1989]R is missing config data. Can't add to places list!
                  Apr-08 23:35:14 PHLocation Error(CreateDeviceLists) User device [1508] marked for place [1989] does not exist in HS!
                  Apr-08 23:35:14 PHLocation Error(CreateDeviceLists) Place PHLCPL[1946]R is missing config data. Can't add to places list!
                  Apr-08 23:35:14 PHLocation Error(CreateDeviceLists) User device [1508] marked for place [1946] does not exist in HS!
                  Apr-08 23:35:14 PHLocation Error(CreateDeviceLists) Place PHLCPL[1671]R is missing config data. Can't add to places list!
                  Apr-08 23:35:14 PHLocation Error(CreateDeviceLists) User device [1508] marked for place [1671] does not exist in HS!


                  Sended from far far away
                  Preferred -> Jon's Plugins, Pushover, Phlocation, Easy-trigger,
                  Rfxcom, Blade Plugins, Pushbullet, homekit, Malosa Scripts




                  HS3Pro 4.1.14.0 on windows 10 enterprise X64 on hp quadcore laptop 8 GB.

                  Comment


                    #10
                    Originally posted by Malosa View Post
                    Hi ,

                    Today i added a New account with 2 devices on iT , the first device updates good, and the last device is still at waiting for update .
                    And getting this Error

                    (UpdateUserDevice) Error with device update procedure! System.NullReferenceException: Object reference not set to an instance of an object. at o.a(Int32 A_0, String A_1) at j.a(e A_0, Int32 A_1)
                    Apr-08 23:38:11 PHLocation Error




                    This Error was after adding the last device


                    Apr-08 23:35:14 PHLocation Error(CreateDeviceLists) Place PHLCPL[1989]R is missing config data. Can't add to places list!
                    Apr-08 23:35:14 PHLocation Error(CreateDeviceLists) User device [1508] marked for place [1989] does not exist in HS!
                    Apr-08 23:35:14 PHLocation Error(CreateDeviceLists) Place PHLCPL[1946]R is missing config data. Can't add to places list!
                    Apr-08 23:35:14 PHLocation Error(CreateDeviceLists) User device [1508] marked for place [1946] does not exist in HS!
                    Apr-08 23:35:14 PHLocation Error(CreateDeviceLists) Place PHLCPL[1671]R is missing config data. Can't add to places list!
                    Apr-08 23:35:14 PHLocation Error(CreateDeviceLists) User device [1508] marked for place [1671] does not exist in HS!


                    Sended from far far away
                    Those errors indicate that one or more user type devices are no longer present in HS3 but are marked as the user for one or more known places.

                    Check all your known places have a valid user selected.

                    Paul..

                    Comment


                      #11
                      Thank you ! IT worked ., no issues for me


                      Sended from far far away
                      Preferred -> Jon's Plugins, Pushover, Phlocation, Easy-trigger,
                      Rfxcom, Blade Plugins, Pushbullet, homekit, Malosa Scripts




                      HS3Pro 4.1.14.0 on windows 10 enterprise X64 on hp quadcore laptop 8 GB.

                      Comment


                        #12
                        As of a few days ago, updates are failing. Not sure if relevant: I did travel internationally and I disabled the two way authentication on the account. I did restart the HS3 server as well and the error persists. What could cause this and how can I resolve it? Thanks

                        PHP Code:
                         Apr-15 06:00:33         PHLocation    UPD Timer elapsed   
                         Apr
                        -15 06:00:23         PHLocation    (StartiCloudiCloud service started OK for: xxxxxxxxxx   
                         Apr
                        -15 06:00:23         PHLocation Warning    (handleiCloudLoggingFrom4787 msgRunUpdate attempt 3 failedAborting update.   
                         
                        Apr-15 06:00:23         PHLocation Warning    (handleiCloudLoggingFrom4787 msgGetDevices returned empty on second attemptAborting update.   
                         
                        Apr-15 06:00:23         PHLocation    (handleiCloudLoggingFrom4787 msgGetDevices called for xxxxxxxxxx   
                         Apr
                        -15 06:00:23         PHLocation    (handleiCloudLoggingFrom4787 msgAuthentication OK for xxxxxxxxxx   
                         Apr
                        -15 06:00:21         PHLocation    (handleiCloudLoggingFrom4787 msgAuthenticate called for xxxxxxxxxx   
                         Apr
                        -15 06:00:21         PHLocation    (handleiCloudLoggingFrom4787 msgGetDevices returned empty on first try. Trying to re-authenticate!   
                         
                        Apr-15 06:00:21         PHLocation    (handleiCloudLoggingFrom4787 msgGetDevices called for xxxxxxxxxx   
                         Apr
                        -15 06:00:21         PHLocation Warning    (handleiCloudLoggingFrom4787 msgUpdateDevices attempt [3called for xxxxxxxxxx   
                         Apr
                        -15 06:00:19         PHLocation    (handleiCloudLoggingFrom4787 msgRunUpdate attempt 2 failedtrying again in 2 seconds.   
                         
                        Apr-15 06:00:19         PHLocation Warning    (handleiCloudLoggingFrom4787 msgGetDevices returned empty on second attemptAborting update.   
                         
                        Apr-15 06:00:19         PHLocation    (handleiCloudLoggingFrom4787 msgGetDevices called for xxxxxxxxxx   
                         Apr
                        -15 06:00:19         PHLocation    (handleiCloudLoggingFrom4787 msgAuthentication OK for xxxxxxxxxx   
                         Apr
                        -15 06:00:17         PHLocation    (handleiCloudLoggingFrom4787 msgAuthenticate called for xxxxxxxxxx   
                         Apr
                        -15 06:00:17         PHLocation    (handleiCloudLoggingFrom4787 msgGetDevices returned empty on first try. Trying to re-authenticate!   
                         
                        Apr-15 06:00:17         PHLocation    (handleiCloudLoggingFrom4787 msgGetDevices called for xxxxxxxxxx   
                         Apr
                        -15 06:00:17         PHLocation Warning    (handleiCloudLoggingFrom4787 msgUpdateDevices attempt [2called for xxxxxxxxxx   
                         Apr
                        -15 06:00:15         PHLocation    (handleiCloudLoggingFrom4787 msgRunUpdate attempt 1 failedtrying again in 2 seconds.   
                         
                        Apr-15 06:00:15         PHLocation Warning    (handleiCloudLoggingFrom4787 msgGetDevices returned empty on second attemptAborting update.   
                         
                        Apr-15 06:00:15         PHLocation    (handleiCloudLoggingFrom4787 msgGetDevices called for xxxxxxxxxx   
                         Apr
                        -15 06:00:15         PHLocation    (handleiCloudLoggingFrom4787 msgAuthentication OK for xxxxxxxxxx   
                         Apr
                        -15 06:00:13         PHLocation    (handleiCloudLoggingFrom4787 msgAuthenticate called for xxxxxxxxxx   
                         Apr
                        -15 06:00:13         PHLocation    (handleiCloudLoggingFrom4787 msgGetDevices returned empty on first try. Trying to re-authenticate!   
                         
                        Apr-15 06:00:13         PHLocation    (handleiCloudLoggingFrom4787 msgGetDevices called for xxxxxxxxxx   
                         Apr
                        -15 06:00:13         PHLocation    (handleiCloudLoggingFrom4787 msgAuthentication OK for xxxxxxxxxx   
                         Apr
                        -15 06:00:12         PHLocation    (handleiCloudLoggingFrom4787 msgAuthenticate called for xxxxxxxxxx   
                         Apr
                        -15 06:00:12         PHLocation Warning    (handleiCloudLoggingFrom4787 msgUpdateDevices attempt [1called for xxxxxxxxxx   
                         Apr
                        -15 06:00:12         PHLocation    (handleiCloudLoggingFrom4787 msgRunUpdate called for xxxxxxxxxx 
                        Also when I edit a root device of user location and save it, I get the following errors:

                        PHP Code:
                         Apr-15 06:25:22           PHLocation     (CreateDeviceListsThere are no active custom user devicesSetting monitoring to OFF.
                        Apr-15 06:25:22           PHLocation     (CreateDeviceListsiAccount type device PHLCIC[4787]R added to monotiring list.
                        Apr-15 06:25:22           PHLocation     (CreateDeviceListsNo location log messages suppressed for iAccountxxxxxxx
                        Apr
                        -15 06:25:21           PHLocation     (ProcPlaceAddEditUpdate place devices for user 4807 following place add/edit OK
                        Apr
                        -15 06:25:20           PHLocation Error     (GetMatrixElement errorZERO_RESULTS for Typ:2LA1:42.49251364 LO1:-71.28231268 LA2:48.7495091837353 LO2:7.81242552214098
                        Apr
                        -15 06:25:20           PHLocation Error     (GetMatrixElement errorZERO_RESULTS for Typ:1LA1:42.49251364 LO1:-71.28231268 LA2:48.7495091837353 LO2:7.81242552214098
                        Apr
                        -15 06:25:19           PHLocation Error     (GetMatrixElement errorZERO_RESULTS for Typ:2LA1:42.44631113 LO1:-71.25183667 LA2:48.7495091837353 LO2:7.81242552214098
                        Apr
                        -15 06:25:19           PHLocation Error     (GetMatrixElement errorZERO_RESULTS for Typ:1LA1:42.44631113 LO1:-71.25183667 LA2:48.7495091837353 LO2:7.81242552214098 

                        Comment


                          #13
                          Originally posted by pcp View Post
                          As of a few days ago, updates are failing. Not sure if relevant: I did travel internationally and I disabled the two way authentication on the account. I did restart the HS3 server as well and the error persists. What could cause this and how can I resolve it? Thanks

                          PHP Code:
                           Apr-15 06:00:33         PHLocation    UPD Timer elapsed   
                           Apr
                          -15 06:00:23         PHLocation    (StartiCloudiCloud service started OK for: xxxxxxxxxx   
                           Apr
                          -15 06:00:23         PHLocation Warning    (handleiCloudLoggingFrom4787 msgRunUpdate attempt 3 failedAborting update.   
                           
                          Apr-15 06:00:23         PHLocation Warning    (handleiCloudLoggingFrom4787 msgGetDevices returned empty on second attemptAborting update.   
                           
                          Apr-15 06:00:23         PHLocation    (handleiCloudLoggingFrom4787 msgGetDevices called for xxxxxxxxxx   
                           Apr
                          -15 06:00:23         PHLocation    (handleiCloudLoggingFrom4787 msgAuthentication OK for xxxxxxxxxx   
                           Apr
                          -15 06:00:21         PHLocation    (handleiCloudLoggingFrom4787 msgAuthenticate called for xxxxxxxxxx   
                           Apr
                          -15 06:00:21         PHLocation    (handleiCloudLoggingFrom4787 msgGetDevices returned empty on first try. Trying to re-authenticate!   
                           
                          Apr-15 06:00:21         PHLocation    (handleiCloudLoggingFrom4787 msgGetDevices called for xxxxxxxxxx   
                           Apr
                          -15 06:00:21         PHLocation Warning    (handleiCloudLoggingFrom4787 msgUpdateDevices attempt [3called for xxxxxxxxxx   
                           Apr
                          -15 06:00:19         PHLocation    (handleiCloudLoggingFrom4787 msgRunUpdate attempt 2 failedtrying again in 2 seconds.   
                           
                          Apr-15 06:00:19         PHLocation Warning    (handleiCloudLoggingFrom4787 msgGetDevices returned empty on second attemptAborting update.   
                           
                          Apr-15 06:00:19         PHLocation    (handleiCloudLoggingFrom4787 msgGetDevices called for xxxxxxxxxx   
                           Apr
                          -15 06:00:19         PHLocation    (handleiCloudLoggingFrom4787 msgAuthentication OK for xxxxxxxxxx   
                           Apr
                          -15 06:00:17         PHLocation    (handleiCloudLoggingFrom4787 msgAuthenticate called for xxxxxxxxxx   
                           Apr
                          -15 06:00:17         PHLocation    (handleiCloudLoggingFrom4787 msgGetDevices returned empty on first try. Trying to re-authenticate!   
                           
                          Apr-15 06:00:17         PHLocation    (handleiCloudLoggingFrom4787 msgGetDevices called for xxxxxxxxxx   
                           Apr
                          -15 06:00:17         PHLocation Warning    (handleiCloudLoggingFrom4787 msgUpdateDevices attempt [2called for xxxxxxxxxx   
                           Apr
                          -15 06:00:15         PHLocation    (handleiCloudLoggingFrom4787 msgRunUpdate attempt 1 failedtrying again in 2 seconds.   
                           
                          Apr-15 06:00:15         PHLocation Warning    (handleiCloudLoggingFrom4787 msgGetDevices returned empty on second attemptAborting update.   
                           
                          Apr-15 06:00:15         PHLocation    (handleiCloudLoggingFrom4787 msgGetDevices called for xxxxxxxxxx   
                           Apr
                          -15 06:00:15         PHLocation    (handleiCloudLoggingFrom4787 msgAuthentication OK for xxxxxxxxxx   
                           Apr
                          -15 06:00:13         PHLocation    (handleiCloudLoggingFrom4787 msgAuthenticate called for xxxxxxxxxx   
                           Apr
                          -15 06:00:13         PHLocation    (handleiCloudLoggingFrom4787 msgGetDevices returned empty on first try. Trying to re-authenticate!   
                           
                          Apr-15 06:00:13         PHLocation    (handleiCloudLoggingFrom4787 msgGetDevices called for xxxxxxxxxx   
                           Apr
                          -15 06:00:13         PHLocation    (handleiCloudLoggingFrom4787 msgAuthentication OK for xxxxxxxxxx   
                           Apr
                          -15 06:00:12         PHLocation    (handleiCloudLoggingFrom4787 msgAuthenticate called for xxxxxxxxxx   
                           Apr
                          -15 06:00:12         PHLocation Warning    (handleiCloudLoggingFrom4787 msgUpdateDevices attempt [1called for xxxxxxxxxx   
                           Apr
                          -15 06:00:12         PHLocation    (handleiCloudLoggingFrom4787 msgRunUpdate called for xxxxxxxxxx 
                          Also when I edit a root device of user location and save it, I get the following errors:

                          PHP Code:
                           Apr-15 06:25:22           PHLocation     (CreateDeviceListsThere are no active custom user devicesSetting monitoring to OFF.
                          Apr-15 06:25:22           PHLocation     (CreateDeviceListsiAccount type device PHLCIC[4787]R added to monotiring list.
                          Apr-15 06:25:22           PHLocation     (CreateDeviceListsNo location log messages suppressed for iAccountxxxxxxx
                          Apr
                          -15 06:25:21           PHLocation     (ProcPlaceAddEditUpdate place devices for user 4807 following place add/edit OK
                          Apr
                          -15 06:25:20           PHLocation Error     (GetMatrixElement errorZERO_RESULTS for Typ:2LA1:42.49251364 LO1:-71.28231268 LA2:48.7495091837353 LO2:7.81242552214098
                          Apr
                          -15 06:25:20           PHLocation Error     (GetMatrixElement errorZERO_RESULTS for Typ:1LA1:42.49251364 LO1:-71.28231268 LA2:48.7495091837353 LO2:7.81242552214098
                          Apr
                          -15 06:25:19           PHLocation Error     (GetMatrixElement errorZERO_RESULTS for Typ:2LA1:42.44631113 LO1:-71.25183667 LA2:48.7495091837353 LO2:7.81242552214098
                          Apr
                          -15 06:25:19           PHLocation Error     (GetMatrixElement errorZERO_RESULTS for Typ:1LA1:42.44631113 LO1:-71.25183667 LA2:48.7495091837353 LO2:7.81242552214098 
                          In reverse order:
                          The GetMatrix errors are caused because the Google Distance Matrix service is unable to calculate the walking or driving distance / time between 2 locations. Does this happen often or just when editing a known place?

                          I'm not 100% sure what's causing the iCloud errors but it appears that the request to iCloud is not returning any data.

                          I'm currently working on trying to overcome some issues with iCloud support and should have a new version ready for testing tomorrow which will have more debug logging which hopefully will allow the problem to be identified.

                          Paul..

                          Comment


                            #14
                            Thanks and can test when you have a new version. For the walk and drive calculation error... One point is in europe the other in the us.... Walking or driving is a bit of a problem

                            Comment


                              #15
                              I'm working with a couple of users on trying to iron out some of the issues with iCloud but my gut feeling is that iCloud is not going to prove a reliable option in the long term.

                              The way it works is that the plug-in makes a request to the iCloud service which (assuming the log-in is successful) returns data for all devices registered to that iCloud account.

                              I'm not exactly sure what happens behind the scenes between an iCloud account and it's associated iDevices but it appears as though a request causes iCloud to poll all registered devices in a similar way to how it works if you log into iCloud and use the FindMyiPhone option.

                              As with the iCloud web service, it can take an unspecified amount of time for all registered devices to either return up-to-date location data or be considered as off-line. There is no callback mechanism (that I'm aware of) so the only way is to keep polling the iCloud account until all registered devices report as "location complete".

                              As well as location data, iDevice status info is returned like charge status, on-line status and battery level.

                              During testing I have seen it take up to 2 minutes of repeated requests for a device that is connected to WiFi (therefore on-line) to actually report that it is on-line.

                              Lots of polling appears to adversely affect iDevice battery life and it would also appear that polling an iCloud account with multiple iDevices causes all devices to be queried. With this in mind you can see that if one device is taking a long time to return data then making repeated requests will have an adverse effect on the battery life of all other devices on the account.

                              In the latest version of the plug-in, it polls the account a maximum of 3 times with a 3 second interval between for each scheduled refresh which very often isn't enough to get valid data for all devices.

                              I have tried various timing and No of request options during testing and found the results to be extremely unpredictable.

                              The most reliable results obtained in testing have been with a 1 minute polling interval but I expect this is going to have a serious impact on battery life.

                              Paul..

                              Comment

                              Working...
                              X