Announcement

Collapse

Contacting HomeSeer This Week

HomeSeer is open and operational this week. All orders are being processed and shipped as usual. However, some staff are working from home. If you need to contact HomeSeer for support or customer service, please use our Email or Chat options. https://homeseer.com/contact-us/
See more
See less

PHLocation V2 Discussion

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Originally posted by rprade View Post
    My new iPhone doesn't false trigger even at 100 meters. I honestly do not see any reason the fence needs to be that tight. the iOS devices can also be adjusted in terms of minimum distance to move and the Known Locations by virtue of their radius.

    It is all a matter of tuning your system to match the stability and accuracy of your GPS equipped devices.
    I think one mistake people make is trying to get the radius of fences and the minimum distance to move too tight.
    Randy, whilst looking through earlier posts I happen upon this conversation above in conjunction with your most recent post (below) I noticed that my PHL tab for my iPhone, "Maximum Accuracy" was set to 2000 Meters with a "minimum Distance to Move" set to 0.1 mile (I'm assuming that that default). So my question is what should we set our min and max values to eliminate bad reports?

    Originally posted by rprade View Post

    That means it has lost GPS. You can stop those errors from reporting by reducing the Maximum Accuracy on the PHL tab of the root for that user. I use 100 meters to eliminate bad reports. I watched mine and GPS accuracy is always within 10-30 meters and any accuracy greater than 100 meters is usually 1414 meters and is a bad fix. 1414 is usually a network fix and 1414 is an arbitrary number Apple uses.

    Computer: CUK Intel NUC7i7BNH
    Op System: Windows 10 Pro - Work Station
    HS Version: HS3 Pro Edition 3.0.0.435

    Plug-Ins: BLBackup, BLGData, BLRoombaWifi, Device History, EasyTrigger, ImperiHome, Nest, PHLocation, Pushover 3P, Restart, Sonos, UltraCID3, UltraWeatherWU3, Z-Wave, and Jon00 scripts.

    Comment


    • Originally posted by MNB View Post

      Randy, whilst looking through earlier posts I happen upon this conversation above in conjunction with your most recent post (below) I noticed that my PHL tab for my iPhone, "Maximum Accuracy" was set to 2000 Meters with a "minimum Distance to Move" set to 0.1 mile (I'm assuming that that default). So my question is what should we set our min and max values to eliminate bad reports?


      As I stated in the two quotes you included in the post, it is up to you. I think that 100 meters (328 feet) is the tightest a fence can be to be reliable. I set mine to .1 mile (528 feet) and it never false triggers, if you have false triggers at .1 try .2. It is just a matter of balance. I cannot imagine a situation where a fence of even 1000 feet would cause a problem unless you are walking. Chances are if you are within 1000 feet you are home and if greater than 1000 you are not. At neighborhood speeds you travel at 37 feet per second, so 1000 feet is only 30 seconds away.

      With regard to maximum accuracy I stated that I use 100 meters. I came up with that number by looking at history. Any real readings from my phone are within that number for accuracy. When my phone looses GPS in the basement, it goes to WiFi for position, but Apple reports the accuracy as 65 meters. Looking at the actual positions reported that number seems to be correct. It is a matter of tuning your system to balance speed, accuracy and limiting bad reports.
      Randy Prade
      Aurora, CO
      Prades.net

      PHLocation - Pushover - EasyTrigger - UltraECM3 - Ultra1Wire3 - Arduino

      Comment


      • Installed today, converted some events, you know kicking the proverbial tire's and what not.. So far.... Excellent work Paul..
        RJ_Make On YouTube

        Comment


        • sooty rprade


          Thankss for the reply,

          I did check on details Randy and its not wifi, its gps, i did double ckeck.. really weird.
          Device Data Battery: 15% Charging: No Online: Yes WiFi: Off
          Also Paul the device distance to move is 0.09 meter so 90 meters.
          But the Maximum Accuracy is 2000.
          When i do the both distances in google its only 300 meter between them.
          That second street is next to me.

          regards




          Originally posted by sooty View Post

          There are a lot of changes in V2 WRT iCloud.

          I won't try to explain the whole boring procedure of polling an iCloud account here but when an account is polled it returns data for all devices on that account. If any device has incomplete data, the plug-in will not process any location updates and will re poll the account after 5 seconds. This continues for up to 6 times before it aborts the poll and waits for the next interval.

          There are some situations where it will let updates through even if something is incomplete and this may be the cause of your issue.

          I'll check the code later this evening but what appears to be happening in your case is that it is letting the low accuracy update through then re-polling and letting another high accuracy update through.
          2019-01-19 10:29:11 50.******** 6******* 65 m Ka, Ke, ***XN NL Details
          2019-01-19 10:29:06 50.******** 6******* 1414 m 61 Kwi, Ke, ***XG NL Details
          If you put both of the actual coordinates from these 2 entries into Google maps, what is the distance between them?
          What setting do you have on the Root User device in "Minimum distance to move" ?

          Paul..
          Preferred -> Jon's Plugins, Pushover, Phlocation, Easy-trigger,
          Rfxcom, Blade Plugins, Pushbullet, homekit, Malosa Scripts




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

          Comment


          • Originally posted by Malosa View Post
            sooty rprade


            Thankss for the reply,

            I did check on details Randy and its not wifi, its gps, i did double ckeck.. really weird.
            Device Data Battery: 15% Charging: No Online: Yes WiFi: Off
            Also Paul the device distance to move is 0.09 meter so 90 meters.
            But the Maximum Accuracy is 2000.
            When i do the both distances in google its only 300 meter between them.
            That second street is next to me.

            regards



            First of all i think you mean .09 kilometers, not .09 meters. .09 meters is about 300 feet, which should be safe. The Maximum accuracy is the reported accuracy of the fix, which on your bad ones is 1414 meters. A Maximum accuracy of 2000 meters will let the bad one through, where a maximum accuracy of 1000 meters would block it. I use a maximum accuracy of 100 meters and it blocks all bad fixes. This shouldn't be a problem for most users.

            Paul is working on the problem of double reporting on your phone, which may fix your problem, but I wouldnt think you would want a location logged with a maximum accuracy of up to 2KM.

            On one of your bad fixes with an accuracy of 1414m what does this line look like?
            Basic Fix Data Fix Time: 2019-01-18 12:21:46 Latitude: 39.7004003350721 Longitude: -104.781705721638 Accuracy: 9.43312381936967m Type: GPS
            Randy Prade
            Aurora, CO
            Prades.net

            PHLocation - Pushover - EasyTrigger - UltraECM3 - Ultra1Wire3 - Arduino

            Comment


            • Yes i see now,

              Some have this
              Basic Fix Data Fix Time: 2019-01-19 21:09:37 Latitude: 50.8 Longitude: 6.0 Accuracy: 1414m Type: Network
              So no gps now...

              But i did put it back from 2000 to 100 i think thats the problem.
              lets hope and test tonight.

              Maybe that did do the double poll because the network had an issue or something.. but its still weird.

              regards




              Originally posted by rprade View Post
              First of all i think you mean .09 kilometers, not .09 meters. .09 meters is about 300 feet, which should be safe. The Maximum accuracy is the reported accuracy of the fix, which on your bad ones is 1414 meters. A Maximum accuracy of 2000 meters will let the bad one through, where a maximum accuracy of 1000 meters would block it. I use a maximum accuracy of 100 meters and it blocks all bad fixes. This shouldn't be a problem for most users.

              Paul is working on the problem of double reporting on your phone, which may fix your problem, but I wouldnt think you would want a location logged with a maximum accuracy of up to 2KM.

              On one of your bad fixes with an accuracy of 1414m what does this line look like?
              Basic Fix Data Fix Time: 2019-01-18 12:21:46 Latitude: 39.7004003350721 Longitude: -104.781705721638 Accuracy: 9.43312381936967m Type: GPS
              Preferred -> Jon's Plugins, Pushover, Phlocation, Easy-trigger,
              Rfxcom, Blade Plugins, Pushbullet, homekit, Malosa Scripts




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

              Comment


              • Originally posted by Malosa View Post
                Yes i see now,

                Some have this
                Basic Fix Data Fix Time: 2019-01-19 21:09:37 Latitude: 50.8 Longitude: 6.0 Accuracy: 1414m Type: Network
                So no gps now...

                But i did put it back from 2000 to 100 i think thats the problem.
                lets hope and test tonight.

                Maybe that did do the double poll because the network had an issue or something.. but its still weird.

                regards





                All of my bad reports of 1414m were "Network" and they stopped when I reduced the Maximum Accuracy to 100m.

                Randy Prade
                Aurora, CO
                Prades.net

                PHLocation - Pushover - EasyTrigger - UltraECM3 - Ultra1Wire3 - Arduino

                Comment


                • Originally posted by Malosa View Post
                  sooty rprade


                  Thankss for the reply,

                  I did check on details Randy and its not wifi, its gps, i did double ckeck.. really weird.
                  Device Data Battery: 15% Charging: No Online: Yes WiFi: Off
                  Also Paul the device distance to move is 0.09 meter so 90 meters.
                  But the Maximum Accuracy is 2000.
                  When i do the both distances in google its only 300 meter between them.
                  That second street is next to me.

                  regards
                  Its OK to have the max accuracy at 2000 metres if you want to receive inaccurate locations but to avoid the double reporting you would need to set the min dist to move to something > 2 km (2000 metres).

                  Here's what is happening in your case:
                  A new (1400m low accuracy) location comes in and because its low accuracy it reports that you are 300 metres from your previous stored (65m high accuracy) location.
                  Your min dist to move is set at 90 metres which is < 300 so the new location is recorded.
                  Another new (65m high accuracy) location comes in and reports that you are 300 metres from your previous stored (1400m low accuracy) location.
                  Your min dist to move is set at 90 metres which is < 300 so the new location is recorded.

                  I still need to investigate why it's letting 2 updates through within 5 seconds. It should only be letting 1 update through per poll.

                  I'll get onto that once I finish sorting out the overlapping known locations issue which is turning out to be a lot of work😢

                  Paul..

                  Comment


                  • Yes i wil see what it does,
                    but i think it wil be alright with setting the accuracy to 100 meters
                    I wil report back when i woke up.

                    No worries just take your time.

                    regards and thank you guys for the quick reply's


                    Originally posted by sooty View Post

                    Its OK to have the max accuracy at 2000 metres if you want to receive inaccurate locations but to avoid the double reporting you would need to set the min dist to move to something > 2 km (2000 metres).

                    Here's what is happening in your case:
                    A new (1400m low accuracy) location comes in and because its low accuracy it reports that you are 300 metres from your previous stored (65m high accuracy) location.
                    Your min dist to move is set at 90 metres which is < 300 so the new location is recorded.
                    Another new (65m high accuracy) location comes in and reports that you are 300 metres from your previous stored (1400m low accuracy) location.
                    Your min dist to move is set at 90 metres which is < 300 so the new location is recorded.

                    I still need to investigate why it's letting 2 updates through within 5 seconds. It should only be letting 1 update through per poll.

                    I'll get onto that once I finish sorting out the overlapping known locations issue which is turning out to be a lot of work😢

                    Paul..
                    Preferred -> Jon's Plugins, Pushover, Phlocation, Easy-trigger,
                    Rfxcom, Blade Plugins, Pushbullet, homekit, Malosa Scripts




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

                    Comment



                    • What Did I Miss
                      PHL2 working great with ICloud account and geofencing
                      With Geofancy I have it send info based on a location marker in the program. In HS3 shows just fine whether I an in or outside of the fence or outside but cant use this info as triggers. What did I miss?


                      Comment


                      • Originally posted by Spudjr View Post
                        What Did I Miss
                        PHL2 working great with ICloud account and geofencing
                        With Geofancy I have it send info based on a location marker in the program. In HS3 shows just fine whether I an in or outside of the fence or outside but cant use this info as triggers. What did I miss?

                        Your events should use the devices created for each Geofency fence as the triggers.
                        HS 3.0.0.548: 1990 Devices 1172 Events
                        Z-Wave 3.0.1.262: 126 Nodes on one Z-Net

                        Comment


                        • Thanks, found it under if device changes. Was only looking at phlocation2 Still learning here but having fun

                          Comment


                          • rprade I "think" I found part of my issue with not seeing enough data points. Since my internet and TV provider is Optimum, my phone is set so it switches to WiFi mode when it sees an optimum wifi hotspot. They're everywhere so when it connects it switches to 30 minutes logging. I disabled Wifi polling in BK and will see if things improve.

                            Comment


                            • In my devices I see "Primary RG provider not set" googled galored and cant find anything. I gather it is some service to show detail about location? Where is this set and what is it set to. Thanks

                              Comment


                              • Originally posted by Spudjr View Post
                                In my devices I see "Primary RG provider not set" googled galored and cant find anything. I gather it is some service to show detail about location? Where is this set and what is it set to. Thanks
                                RG stands for Reverse Geocode. Set it up on the configuration API management page.

                                Click image for larger version

Name:	Capture1.PNG
Views:	17
Size:	68.4 KB
ID:	1277577
                                Randy Prade
                                Aurora, CO
                                Prades.net

                                PHLocation - Pushover - EasyTrigger - UltraECM3 - Ultra1Wire3 - Arduino

                                Comment

                                Working...
                                X