Announcement

Collapse
No announcement yet.

PHLocation V2 Discussion

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

    Originally posted by sooty View Post

    Can't be 100% but I'm pretty sure nothing has changed in that code since .49.

    The plug-in does not record the location on every poll, only if the location has changed.
    I'll check the code but the time at location device should only reset to 0 when a new location is recorded for that user.

    What I was initially suspecting is that during the night when your phone was polled, it returned a low accuracy position which was allowed through because of the >2000 metres setting. Obviously 2000m is more than 0.5 miles so it would have recorded it as a new location therefore resetting the time at location to 0. Some time later it received a high accuracy location that caused another update, hence resetting the time at location device again.
    If that were the case then it should have recorded both changes and you would see them in the history.

    In your case it appears that it took from 10:48am on the 3rd until 4:04am on the 4th to detect that you were at home. When you observed that the time at location was 8 minutes, was this at 4:12am?

    P.S. It would be good practice to set the max accuracy to less than the min dist to move to prevent the above scenario so if you have min dist to move at 0.5 miles then try setting the max accuracy to 750 metres.

    Paul..
    Ok, I have made a few changes:
    In the iPHone iCloud Device
    1) Set Minimum Distance to Move from .5 mi to .25 miles
    2) Set Ignore locations with accuracy > 400 metres
    In the Known Locations
    1) Set Home & Work Radius from .5 miles to .25 miles

    We’ll see how that goes for the next 24 hours or so.

    Thank you for your help!


    Sent from my iPad using Tapatalk
    HS4 4.2.6.0 &HSTouch Designer 3.0.80
    Plugin's:
    BLBackup, BLOccupied, BLShutdown, EasyTrigger, Ecobee, Nest, AK Bond
    EnvisaLink DSC, PHLocation, Pushover, SONOS, Blue Iris, UltraRachio3,
    weatherXML, Jon00 Alexa Helper, Network Monitor, MyQ, Z-Wave

    Comment


      Originally posted by sooty View Post

      If its showing the blue text "26 points" then it should be displaying the map.

      1. Which dynamic map provider do you have set?
      2. On the Config>Mapping tab Dynamic Map (Built-In Viewer) Settings what is the Initial Max Zoom Level set to?

      Paul..
      Sorry for taking a few days to respond.. was out of commission with Flu. I attached a image of both my API and Mapping tab to answer your question. Mike

      Attached Files
      Computer: CUK Intel NUC7i7BNH
      Op System: Windows10 Pro - Work Station
      HS Version: HS4 Pro Edition 4.2.19.0

      Plug-Ins: AK Weather 4.0.5.25,APCUPSD 3.3.2.3,BLBackup 2.0.63.0,BLEditor 2.0.11.0,BLGData 3.0.55.0,BLOccupied 2.0.28.0,BLShutdown 1.0.6.0,Blue-Iris 3.1.3.33206,Device History 3.2.0.2,EasyTrigger 3.0.0.76,Harmony Hub 4.0.14.0,iRobot 5.22.41.1,JowiHue 4.0.8.7,Nest 3.0.0.34,NetCam Plugin 1.0.0.5,PHLocation2 3.0.0.64,Pushover 4.0.10.0,Random 3.0.0.2,Restart 1.0.0.7,Ring 1.0.0.9,SDJ-Health 3.1.1.3,Sonos 3.1.0.59,Sonos4 4.0.1.12,UltraCID3 3.0.6681.34300,UltraMon3 3.0.6554.33094,UltraNetCam3 3.0.6413.20219,Unifi 4.0.32.0,Zigbee 4.0.11.0,Z-Wave 4.0.3.0, and Jon00 scripts.

      Comment


        Another Map question when I use PHL2 Map and I select "All Users" I get a map of my current location when I select "History" I get a blue text "Showing history for Mike's iPhoneX (26 points)'" but the previous map is replaced with a white map area, I was expecting the previous map with 26 bread crumb being displayed what am I missing? Mike
        I figure I would add the actual screen captures to show what I'm seeing. The first screen is when I select "All users" and the second screen is when I select "History". Mike
        Attached Files
        Computer: CUK Intel NUC7i7BNH
        Op System: Windows10 Pro - Work Station
        HS Version: HS4 Pro Edition 4.2.19.0

        Plug-Ins: AK Weather 4.0.5.25,APCUPSD 3.3.2.3,BLBackup 2.0.63.0,BLEditor 2.0.11.0,BLGData 3.0.55.0,BLOccupied 2.0.28.0,BLShutdown 1.0.6.0,Blue-Iris 3.1.3.33206,Device History 3.2.0.2,EasyTrigger 3.0.0.76,Harmony Hub 4.0.14.0,iRobot 5.22.41.1,JowiHue 4.0.8.7,Nest 3.0.0.34,NetCam Plugin 1.0.0.5,PHLocation2 3.0.0.64,Pushover 4.0.10.0,Random 3.0.0.2,Restart 1.0.0.7,Ring 1.0.0.9,SDJ-Health 3.1.1.3,Sonos 3.1.0.59,Sonos4 4.0.1.12,UltraCID3 3.0.6681.34300,UltraMon3 3.0.6554.33094,UltraNetCam3 3.0.6413.20219,Unifi 4.0.32.0,Zigbee 4.0.11.0,Z-Wave 4.0.3.0, and Jon00 scripts.

        Comment


          Originally posted by MNB View Post

          I figure I would add the actual screen captures to show what I'm seeing. The first screen is when I select "All users" and the second screen is when I select "History". Mike
          I'm not 100% confident because it isn't an issue here but it could be the apostrophe in "Mike's iPhone X" that's causing it.
          Can you try removing the apostrophe from the root device's name, hit the Save Changes button and try running the map again.

          If it still doesn't work then can you:
          1. Try running a history map for Mike's iPhone X as per your screenshot 2.
          2. Note down the HS3 deviceRef (numerical value) for Mike's iPhone X.
          3. Got to \HS3\html\PHLocation2\Maps and look for a file named xxxx_history.html where xxxx is the numerical value from stage 2 above.

          If that file exists and the timestamp matches up with when you generated the map in stage 1, please zip up and email or pm me the file.

          If the file doesn't exist or has an old timestamp (e.g. from before you generated the map in stage 1 above) and there are no errors in the HS3 log then I will need to send you a debug version of the plug-in so we can try and establish the cause.

          Paul..

          Comment


            Good morning from sunny England,

            Firstly I've been using HS3 for the passed 5 years, albeit for relatively novice situations.

            However the passed week I've stepped my game up severely.

            This plugin took me all over 24hours to read, comprehend, deploy, test & perfect across 3 devices/users.

            Wanted to use this for Home occupancy & more, it's doing the job well.

            Prior to this form of fencing I was using IFTT Location Fence to turn On/Off a Virtual Device in HS3 for my occupancy.

            I still have IFTT recipe invoked.

            With pushover messages from both Entered/Excited triggers for both PL2 & IFTT methods.

            This way over the next week or two I can perhaps determine if one method is faster then the other.

            So far in only my 24hours usage I can't say much other then IFTT seems to trigger it's action 5-10 seconds faster then PL2. This could be down to the polling interval I have set in PL2 which is set at 2minutes.

            Honestly though what a superb plugin.
            Moreso what a great write up in the user guide.

            Example of what I get sent to Pushover, when I ask Google Home to: "Turn on Dad's Location" which is a Virtual device...

            Which will invoke an Event to create a static image of his location and uses various PHLocation Values to provide a verbose of his status. As well as supply a HREF hyperlink html referencing the locatoion (which pulls up Google maps - niceeeeeee)
            The same details are Announced out aloud over my Google Home with her native tongue (using the amazing Chromecast plugin.)



            Comment


              Gaurave, thanxs for sharing your example above, slow question within the message body how are you using to pull the current values for dad is Here and the remaining items I'm assuming your using $$DSR:XXX: values?

              I've confirm that it is in deed Replacement Values but in particular what does the Dad is Here highlight do? Mike
              Computer: CUK Intel NUC7i7BNH
              Op System: Windows10 Pro - Work Station
              HS Version: HS4 Pro Edition 4.2.19.0

              Plug-Ins: AK Weather 4.0.5.25,APCUPSD 3.3.2.3,BLBackup 2.0.63.0,BLEditor 2.0.11.0,BLGData 3.0.55.0,BLOccupied 2.0.28.0,BLShutdown 1.0.6.0,Blue-Iris 3.1.3.33206,Device History 3.2.0.2,EasyTrigger 3.0.0.76,Harmony Hub 4.0.14.0,iRobot 5.22.41.1,JowiHue 4.0.8.7,Nest 3.0.0.34,NetCam Plugin 1.0.0.5,PHLocation2 3.0.0.64,Pushover 4.0.10.0,Random 3.0.0.2,Restart 1.0.0.7,Ring 1.0.0.9,SDJ-Health 3.1.1.3,Sonos 3.1.0.59,Sonos4 4.0.1.12,UltraCID3 3.0.6681.34300,UltraMon3 3.0.6554.33094,UltraNetCam3 3.0.6413.20219,Unifi 4.0.32.0,Zigbee 4.0.11.0,Z-Wave 4.0.3.0, and Jon00 scripts.

              Comment


                Originally posted by MNB View Post
                Gaurave, thanxs for sharing your example above, slow question within the message body how are you using to pull the current values for dad is Here and the remaining items I'm assuming your using $$DSR:XXX: values?

                I've confirm that it is in deed Replacement Values but in particular what does the Dad is Here highlight do? Mike



                Extract of Message Body:
                Dad is <a href="http://maps.google.com/?q=$$DSR:XXX:,$$DSR:XXX:">Here</a>

                Where those DSR "values" return Longitude, Latitude.

                Within the Pushover message it appears in Blue highlight to depict a hyperlink (see Original Post above) - once clicked from within the Pushover message it opens up in Google Maps App on my droid. Beautifully.

                Thinking outside the box really comes into it's own with HS3 & these powerful Plugins.

                Comment


                  You can also use the replacement variable for the “Address URL” child that PHL provides.
                  HS4 Pro, 4.2.19.16 Windows 10 pro, Supermicro LP Xeon

                  Comment


                    Originally posted by rprade View Post
                    You can also use the replacement variable for the “Address URL” child that PHL provides.
                    I tried this but it's not as accurate as Long and Latitude in my tests, which is near enough pin point. I trialled with majority of the child values.

                    Sent from my Phone 2 using Tapatalk

                    Comment


                      Originally posted by dillalade View Post

                      Extract of Message Body:
                      Dad is <a href="http://maps.google.com/?q=$$DSR:XXX:,$$DSR:XXX:">Here</a>

                      Where those DSR "values" return Longitude, Latitude.

                      Within the Pushover message it appears in Blue highlight to depict a hyperlink (see Original Post above) - once clicked from within the Pushover message it opens up in Google Maps App on my droid. Beautifully.

                      Thinking outside the box really comes into it's own with HS3 & these powerful Plugins.
                      Gaurave, "U Da Man!" many thanxs for the comeback and education I occasionally use Pushover for a few events but I really liked your example which now makes me want to do a little more "Thinking outside the box" now that I have PHL2 up and running on all cylinder.. isn't kind of late your time? Mike
                      Computer: CUK Intel NUC7i7BNH
                      Op System: Windows10 Pro - Work Station
                      HS Version: HS4 Pro Edition 4.2.19.0

                      Plug-Ins: AK Weather 4.0.5.25,APCUPSD 3.3.2.3,BLBackup 2.0.63.0,BLEditor 2.0.11.0,BLGData 3.0.55.0,BLOccupied 2.0.28.0,BLShutdown 1.0.6.0,Blue-Iris 3.1.3.33206,Device History 3.2.0.2,EasyTrigger 3.0.0.76,Harmony Hub 4.0.14.0,iRobot 5.22.41.1,JowiHue 4.0.8.7,Nest 3.0.0.34,NetCam Plugin 1.0.0.5,PHLocation2 3.0.0.64,Pushover 4.0.10.0,Random 3.0.0.2,Restart 1.0.0.7,Ring 1.0.0.9,SDJ-Health 3.1.1.3,Sonos 3.1.0.59,Sonos4 4.0.1.12,UltraCID3 3.0.6681.34300,UltraMon3 3.0.6554.33094,UltraNetCam3 3.0.6413.20219,Unifi 4.0.32.0,Zigbee 4.0.11.0,Z-Wave 4.0.3.0, and Jon00 scripts.

                      Comment


                        Gaurave, I tried your extract and replaced the DSR with my Long/Lat device but something seems amiss I get to google map but I only see the Long value with a "no result found for your search which is obvious as it doesn't have the second value.. More clues please

                        Randy, looking at both values (URL address and Log/Lat device) they seem to match so am I missing something, I will try using the URL also since I'm in the learning mode, Mike

                        UPDATE: Using the URL address device produced a working Map which is good
                        Computer: CUK Intel NUC7i7BNH
                        Op System: Windows10 Pro - Work Station
                        HS Version: HS4 Pro Edition 4.2.19.0

                        Plug-Ins: AK Weather 4.0.5.25,APCUPSD 3.3.2.3,BLBackup 2.0.63.0,BLEditor 2.0.11.0,BLGData 3.0.55.0,BLOccupied 2.0.28.0,BLShutdown 1.0.6.0,Blue-Iris 3.1.3.33206,Device History 3.2.0.2,EasyTrigger 3.0.0.76,Harmony Hub 4.0.14.0,iRobot 5.22.41.1,JowiHue 4.0.8.7,Nest 3.0.0.34,NetCam Plugin 1.0.0.5,PHLocation2 3.0.0.64,Pushover 4.0.10.0,Random 3.0.0.2,Restart 1.0.0.7,Ring 1.0.0.9,SDJ-Health 3.1.1.3,Sonos 3.1.0.59,Sonos4 4.0.1.12,UltraCID3 3.0.6681.34300,UltraMon3 3.0.6554.33094,UltraNetCam3 3.0.6413.20219,Unifi 4.0.32.0,Zigbee 4.0.11.0,Z-Wave 4.0.3.0, and Jon00 scripts.

                        Comment


                          Originally posted by MNB View Post
                          Gaurave, "U Da Man!" many thanxs for the comeback and education I occasionally use Pushover for a few events but I really liked your example which now makes me want to do a little more "Thinking outside the box" now that I have PHL2 up and running on all cylinder.. isn't kind of late your time? Mike
                          No problem man.
                          I'm a geek by trade so I have the foresight to visualise what can be achieved given the tools at hand.

                          Again I'm only about 48hours in with this PL2 as well as Homeseer Variable replacements.

                          It's all coming together.
                          The magic is coming alive

                          Sent from my Phone 2 using Tapatalk

                          Comment


                            Paul, two questions:
                            1) Whilst Polling of my iCloud account I've noticed that when I select the Poll button that not all PHL devices update, in fact only one device updated with same timestamp is this normal also?

                            2) I noticed a slight discrepancy between my PHL NearestLocation device value of (0.004 mi) and PHL SIDistToHome device which has a value of (0 Miles) I would have expected them to be the same as my PHL Fix Accuracy is 5 Meters. Also I notice that format of the unit measurement for PHL SIDistToHome, PHL Driving Distance are all "Miles" whilst PHL NearestLocation is "mi"? Mike
                            Computer: CUK Intel NUC7i7BNH
                            Op System: Windows10 Pro - Work Station
                            HS Version: HS4 Pro Edition 4.2.19.0

                            Plug-Ins: AK Weather 4.0.5.25,APCUPSD 3.3.2.3,BLBackup 2.0.63.0,BLEditor 2.0.11.0,BLGData 3.0.55.0,BLOccupied 2.0.28.0,BLShutdown 1.0.6.0,Blue-Iris 3.1.3.33206,Device History 3.2.0.2,EasyTrigger 3.0.0.76,Harmony Hub 4.0.14.0,iRobot 5.22.41.1,JowiHue 4.0.8.7,Nest 3.0.0.34,NetCam Plugin 1.0.0.5,PHLocation2 3.0.0.64,Pushover 4.0.10.0,Random 3.0.0.2,Restart 1.0.0.7,Ring 1.0.0.9,SDJ-Health 3.1.1.3,Sonos 3.1.0.59,Sonos4 4.0.1.12,UltraCID3 3.0.6681.34300,UltraMon3 3.0.6554.33094,UltraNetCam3 3.0.6413.20219,Unifi 4.0.32.0,Zigbee 4.0.11.0,Z-Wave 4.0.3.0, and Jon00 scripts.

                            Comment


                              Originally posted by MNB View Post
                              Paul, two questions:
                              1) Whilst Polling of my iCloud account I've noticed that when I select the Poll button that not all PHL devices update, in fact only one device updated with same timestamp is this normal also?

                              2) I noticed a slight discrepancy between my PHL NearestLocation device value of (0.004 mi) and PHL SIDistToHome device which has a value of (0 Miles) I would have expected them to be the same as my PHL Fix Accuracy is 5 Meters. Also I notice that format of the unit measurement for PHL SIDistToHome, PHL Driving Distance are all "Miles" whilst PHL NearestLocation is "mi"? Mike
                              1. The design is that it should only update the location data (lat, lon, accuracy etc) if the location has changed. (Min dist to move set for that device has been exceeded).
                              If it hasn't moved it should still update the other devices like battery level and charging state etc but only if they have changed.

                              2. Not in front of the code right now but I think the difference will be due to the decimal places. The nearest known location distance shown in brackets after the name is to 3 decimal places and the SL dist to home is only 2. If you open the SL dist to home device and look on the Advanced tab, does it show the same value (or thereabouts)?

                              Try changing the decimal places on the Status / Graphics tab for the SL dist to home device to 3 and see if they then match.

                              Paul..

                              Comment


                                The SlDist to home when changed to 3 displays the same as Nearest Location. Observation why can't I also change the Nearest Location decimal place to 2? I know that when converting a 5 meters accuracy = 16.40 feet so if one was looking to track down to that level a 3 digit mile would be needed, but for the majority of users I would wouldn't think would care, any opinions out there? Mike
                                Computer: CUK Intel NUC7i7BNH
                                Op System: Windows10 Pro - Work Station
                                HS Version: HS4 Pro Edition 4.2.19.0

                                Plug-Ins: AK Weather 4.0.5.25,APCUPSD 3.3.2.3,BLBackup 2.0.63.0,BLEditor 2.0.11.0,BLGData 3.0.55.0,BLOccupied 2.0.28.0,BLShutdown 1.0.6.0,Blue-Iris 3.1.3.33206,Device History 3.2.0.2,EasyTrigger 3.0.0.76,Harmony Hub 4.0.14.0,iRobot 5.22.41.1,JowiHue 4.0.8.7,Nest 3.0.0.34,NetCam Plugin 1.0.0.5,PHLocation2 3.0.0.64,Pushover 4.0.10.0,Random 3.0.0.2,Restart 1.0.0.7,Ring 1.0.0.9,SDJ-Health 3.1.1.3,Sonos 3.1.0.59,Sonos4 4.0.1.12,UltraCID3 3.0.6681.34300,UltraMon3 3.0.6554.33094,UltraNetCam3 3.0.6413.20219,Unifi 4.0.32.0,Zigbee 4.0.11.0,Z-Wave 4.0.3.0, and Jon00 scripts.

                                Comment

                                Working...
                                X