Announcement

Collapse
No announcement yet.

PHLocation V2 Discussion

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

    Paul, your "PHLocation V2 Release Notes" needs to be updated to reflect your latest release version .63
    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
      Thanxs Steve this was what I was looking for.. I assume that you did not change your HomeLocDirTimeOut value which is set for 5 minutes? I found that some of the events that were using Home Location Direction took too long (5 minutes) and would not necessary trigger the event reliability especially when there were several that would trigger near real time such as Approaching Home which had Time to Home=6 min, Time at Location=0 and Home Direction=Approaching (which changed 5 minutes later) I would expect that your experiencing the similar outcomes (your Time to Home=10 min)? Mike

      If I understand the Paul's write up your adjustment suggest that you would have to travel 900 meters with HomeLocDirCount=3 vs. 600 meters if HomeLocDirBuff=300?
      UPDATE: I chose 128 meters as the HomeLocDirBuff since that is what my minimum distance to move is set for my users. (.08 miles).

      Here are my settings:

      HomeLocDirTimeOut=5
      HomeLocDirCount=3
      HomeLocDirBuff=128

      I would need to travel a minimum of 384 meters in this case before the Home direction would change. I haven't seen any issues with using Approaching and firing events. Typically what I do is put something like "If time to home < 15 minutes and home direction is approaching" then fire the event and don't fire again for 5 minutes. This way, as long as I'm heading toward home with at least 3 successively closer points, then the home direction will flip to approaching and will allow the event to fire. If I run up the street for a quick errand and I'm less than 5 minutes from the house, then you're right, I would not get an alert that I'm on the way home because the direction timeout is 5 minutes. I may play with that and change it to 3 minutes, but you have to be careful since if you are stuck in traffic and you don't move more than the direction buffer value (128 meters in my case), then the direction could switch to stopped and then require 3 more points before switching back to approaching.

      Comment


        For some reason automatic polling to my iCloud is not working. I can start a manual poll and that works just fine. I've tried setting the polling interval to everything from a minute to ten minutes and it never automatically poles. The dates never change unless I manually poll.

        I've looked for any setting I might have missed but have yet to find one.

        ----------------------

        Is Geofency no longer supported? I was using it on V1 but don't see it as an option in V2. Now to figure out which of the other two to use.
        HomeSeer Version: HS3 Standard Edition 3.0.0.548
        Linux version: Linux auto 4.15.0-72-generic #81-Ubuntu SMP Tue Nov 26 12:20:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
        Number of Devices: 484 | Number of Events: 776

        Enabled Plug-Ins: 3.0.0.13: AirplaySpeak | 2.0.61.0: BLBackup
        3.0.0.70: EasyTrigger | 1.3.7006.42100: LiftMaster MyQ
        4.2.3.0: mcsMQTT | 3.0.0.53: PHLocation2 | 0.0.0.47: Pushover 3P
        3.0.0.16: RaspberryIO | 3.0.1.262: Z-Wave

        Z-Net version: 1.0.23 for Inclusion Nodes
        SmartStick+: 6.04 (ZDK 6.81.3) on Server

        Comment


          John, GeoFency is one of the many (11 total) apps that V2 is supporting. Look under "Users / Devices" if you look under "Choose user type to add" drop down you will see Geofency. As to automatic Polling, Thanxs to Randy, I have a few events that change my polling from every minute to 15 minutes to 1 hour and they seem to be working when I look at my iCloud polling interval it is set to what ever my event set it too the time stamp is at the time the polling was set if you look at your Account Status device the time should update accordantly. If this isn't happening then you might want to "reset account" your iCloud under >Service Accounts>PHLocation2 Tab for iCloud. 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


            Steve, thanxs for the update, like I said in my previous post I did not realize that PHL Direction device wasn't a near instantaneous updatable device, it wasn't until I was troubleshooting why my event did not executing when I thought it should and then as I looked at my iPhone devices time stamp was when my eureka realization occurred. I've since updated my events to use my Geo Fences (my previous methodology) as they update real time and I can determine if I'm approaching or depart. 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


              I need help with my Granddaughter's iPhone. I added her iCloud account correctly, but it won't find her phone. I enabled logging and get (account name masked):

              Polling Check complete.
              2019-02-20 12:09:17.731 PollAccount iCloud poll called for: 29 c...@yahoo.com
              2019-02-20 12:09:20.147 UpdateDevices iCloud Att:1 Content for 3 devices found for c...@yahoo.com Begin processing content.
              2019-02-20 12:09:20.152 UpdateDevices iCloud Device: Cynthia’s Apple Watch for appleId:c...@yahoo.com ignored because not known.
              2019-02-20 12:09:20.157 UpdateDevices iCloud Device: iPod touch for appleId:c...@yahoo.com ignored because not known.
              2019-02-20 12:09:20.159 UpdateDevices iCloud Device: C.C.’s Iphone for appleId:c...@yahoo.com ignored because not known.
              2019-02-20 12:09:20.226 PollAccount iCloud poll completed for: 29 c...@yahoo.com in 2481 ms.

              What does "ignored but now known" mean and what do I need to do to make it be "known?"

              Thanks,

              Rick aka MadMellow

              Comment


                Originally posted by MNB View Post
                John, GeoFency is one of the many (11 total) apps that V2 is supporting. Look under "Users / Devices" if you look under "Choose user type to add" drop down you will see Geofency. As to automatic Polling, Thanxs to Randy, I have a few events that change my polling from every minute to 15 minutes to 1 hour and they seem to be working when I look at my iCloud polling interval it is set to what ever my event set it too the time stamp is at the time the polling was set if you look at your Account Status device the time should update accordantly. If this isn't happening then you might want to "reset account" your iCloud under >Service Accounts>PHLocation2 Tab for iCloud. Mike
                I thought they would be where the other's were located but I was wrong. Thanks for pointing that out. Now to get all the locations I already have on my phone to show up. So far none are there yet.
                HomeSeer Version: HS3 Standard Edition 3.0.0.548
                Linux version: Linux auto 4.15.0-72-generic #81-Ubuntu SMP Tue Nov 26 12:20:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
                Number of Devices: 484 | Number of Events: 776

                Enabled Plug-Ins: 3.0.0.13: AirplaySpeak | 2.0.61.0: BLBackup
                3.0.0.70: EasyTrigger | 1.3.7006.42100: LiftMaster MyQ
                4.2.3.0: mcsMQTT | 3.0.0.53: PHLocation2 | 0.0.0.47: Pushover 3P
                3.0.0.16: RaspberryIO | 3.0.1.262: Z-Wave

                Z-Net version: 1.0.23 for Inclusion Nodes
                SmartStick+: 6.04 (ZDK 6.81.3) on Server

                Comment


                  This is strange. PHLocation will work when I turn it on but not PHLocation2. I'm using the same Device ID since I never got a new one.

                  Still working to find out what's going on.

                  EDIT: I did find this error in the logs.

                  File does not exist: /opt/HomeSeer/html/phlapi
                  HomeSeer Version: HS3 Standard Edition 3.0.0.548
                  Linux version: Linux auto 4.15.0-72-generic #81-Ubuntu SMP Tue Nov 26 12:20:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
                  Number of Devices: 484 | Number of Events: 776

                  Enabled Plug-Ins: 3.0.0.13: AirplaySpeak | 2.0.61.0: BLBackup
                  3.0.0.70: EasyTrigger | 1.3.7006.42100: LiftMaster MyQ
                  4.2.3.0: mcsMQTT | 3.0.0.53: PHLocation2 | 0.0.0.47: Pushover 3P
                  3.0.0.16: RaspberryIO | 3.0.1.262: Z-Wave

                  Z-Net version: 1.0.23 for Inclusion Nodes
                  SmartStick+: 6.04 (ZDK 6.81.3) on Server

                  Comment


                    Originally posted by Timon View Post

                    I thought they would be where the other's were located but I was wrong. Thanks for pointing that out. Now to get all the locations I already have on my phone to show up. So far none are there yet.
                    It works just like in V1. Create a GeoFency user device, post a fence entry from your phone and grab the Device ID from the HS log and enter it on the PHL tab of the GeoFency user root device. Once the User ID is on the root, fences will be auto created as they post.

                    If you still have V1 running, the device ID may not show up in the log.
                    HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon

                    Comment


                      Originally posted by Timon View Post
                      This is strange. PHLocation will work when I turn it on but not PHLocation2. I'm using the same Device ID since I never got a new one.

                      Still working to find out what's going on.

                      EDIT: I did find this error in the logs.
                      File does not exist: /opt/HomeSeer/html/phlapi
                      It is phl2api for PHL2. You will need to change the URL in all of your fences.

                      You post to /phl2api?dtype=GF either through MyHS or port forwarding.
                      HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon

                      Comment


                        Quick update:

                        I'm busy for a few days with some unscheduled work but I will get back to the plug-in at the weekend.

                        Paul..

                        Comment


                          Originally posted by rprade View Post
                          It is phl2api for PHL2. You will need to change the URL in all of your fences.

                          You post to /phl2api?dtype=GF either through MyHS or port forwarding.
                          Being a beta I not surprised the data in the manual was wrong. It now updates and adds the Fences correctly.

                          Thanks
                          HomeSeer Version: HS3 Standard Edition 3.0.0.548
                          Linux version: Linux auto 4.15.0-72-generic #81-Ubuntu SMP Tue Nov 26 12:20:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
                          Number of Devices: 484 | Number of Events: 776

                          Enabled Plug-Ins: 3.0.0.13: AirplaySpeak | 2.0.61.0: BLBackup
                          3.0.0.70: EasyTrigger | 1.3.7006.42100: LiftMaster MyQ
                          4.2.3.0: mcsMQTT | 3.0.0.53: PHLocation2 | 0.0.0.47: Pushover 3P
                          3.0.0.16: RaspberryIO | 3.0.1.262: Z-Wave

                          Z-Net version: 1.0.23 for Inclusion Nodes
                          SmartStick+: 6.04 (ZDK 6.81.3) on Server

                          Comment


                            Two issues.

                            ------------------------------------------------------------------------

                            I'm sure the answer is Yes but just to make sure I'll ask.

                            I assume there is no issue with changing "inside" and "outside" to some other word that makes sense such as "arrived" and "departed", "near" and "not near" or anything else we like. I understand that when a new location is created it will be set to "inside" and "outside" however I would not object if we had a place where we could set our own defaults which would be used when a new location is created.

                            ------------------------------------------------------------------------

                            What information is needed to make a GPS tracking device useable with PHLocate2? I tried to find at what is sent from Geofency but couldn't find anything. I was going to contact SPOT about their Spot Trace and what methods they can use to send out data using their API. However, I'd like to better understand how you can receive before I contact them.
                            HomeSeer Version: HS3 Standard Edition 3.0.0.548
                            Linux version: Linux auto 4.15.0-72-generic #81-Ubuntu SMP Tue Nov 26 12:20:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
                            Number of Devices: 484 | Number of Events: 776

                            Enabled Plug-Ins: 3.0.0.13: AirplaySpeak | 2.0.61.0: BLBackup
                            3.0.0.70: EasyTrigger | 1.3.7006.42100: LiftMaster MyQ
                            4.2.3.0: mcsMQTT | 3.0.0.53: PHLocation2 | 0.0.0.47: Pushover 3P
                            3.0.0.16: RaspberryIO | 3.0.1.262: Z-Wave

                            Z-Net version: 1.0.23 for Inclusion Nodes
                            SmartStick+: 6.04 (ZDK 6.81.3) on Server

                            Comment


                              Paul, in one of your recent updates you added "Any" to your PHL2 command is it possible to add "None" because I thought "Any" was for any known locations but it also includes "None", it would be nice to be able say: If User: X enters or exits know location: Any (known) but not None.

                              I like the ability to have None within the Current Locations but I have to create three statements to exclude Home and None when entering or exiting a known location, 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 Timon View Post
                                Two issues.

                                ------------------------------------------------------------------------

                                I'm sure the answer is Yes but just to make sure I'll ask.

                                I assume there is no issue with changing "inside" and "outside" to some other word that makes sense such as "arrived" and "departed", "near" and "not near" or anything else we like. I understand that when a new location is created it will be set to "inside" and "outside" however I would not object if we had a place where we could set our own defaults which would be used when a new location is created.

                                ------------------------------------------------------------------------

                                What information is needed to make a GPS tracking device useable with PHLocate2? I tried to find at what is sent from Geofency but couldn't find anything. I was going to contact SPOT about their Spot Trace and what methods they can use to send out data using their API. However, I'd like to better understand how you can receive before I contact them.
                                You can change the fence status text as you assume.

                                For how data is sent to PHL2, look at the help on custom position or custom fence devices.

                                HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon

                                Comment

                                Working...
                                X