Announcement

Collapse
No announcement yet.

PHLocation V2 Discussion

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

  • Ltek
    replied
    I cant add Known Locations... I enter the data, click SAVE but nothing happens? Refreshing KL screen only shows 'Home'?
    Attached Files

    Leave a comment:


  • nunoary
    replied
    Originally posted by sooty View Post

    Do you have the EGI app configured for both Geofence and Tracking?

    If you have configured both URL's in EGI, then hitting the glasses icon on a server profile should result in 2 success messages.
    If you get both, then the URL's are configured correctly.

    If you want to use the tracking feature then you need to configure it to start / stop as you enter / exit geofences.

    Paul..

    Thanks Paul,

    I needed to configure the start/stop location tracking. Now the tracking device already updates.

    Tomorrow I will do more tests to better understand the operation, I think today I have been able to better understand the operation of the fences with the localization.
    That is why I can better understand the advantage of having implemented the "known locations",and not having to replicate the same geofences in all in each device.

    Good job.

    Leave a comment:


  • racerfern
    replied
    If you want to use the tracking feature then you need to configure it to start / stop as you enter / exit geofences.
    I have bread crumb trails but only from when I leave home until I arrive at work. The rest of the day until I get back home I have no crumbs.

    Each fence is setup the same way. 4 minute interval and to track on entering zone and exiting zone. But when I get to my second zone (work) I get no more hits. I have four fences, home, work, an exit not too far from home and a Home Depot.

    Leave a comment:


  • sooty
    replied
    Originally posted by nunoary View Post
    Hi,

    I can't seem to get data from EGZ into PHL2. Using V2.48 with MyHs setup.

    I am sure everything is well configured, however the data is not automatically sent from the application on the phone to the plugin. It only updates the devices when I press the glasses in the mobile app. I'm not sure what's missing here.


    I want to thank you both for the excellent work you are doing with this plugin.
    Do you have the EGI app configured for both Geofence and Tracking?

    If you have configured both URL's in EGI, then hitting the glasses icon on a server profile should result in 2 success messages.
    If you get both, then the URL's are configured correctly.

    If you want to use the tracking feature then you need to configure it to start / stop as you enter / exit geofences.

    Paul..

    Leave a comment:


  • sooty
    replied
    Originally posted by Ltek View Post
    Questions...

    V2 removed Walking/Driving Distance... Why? I thought driving distance was useful.

    Will you be posting in the HS3 Updater? Would make it so much easier for users to install/update.

    thx for the fantastic work.
    As Randy mentioned, It does have driving distance and time to the "Home" location but not to other Known Locations. This was done to reduce the number of 3rd party API calls.

    Driving / Walking Time / Distance uses 3rd party API calls. If for example you had 10 known locations then to do both driving and walking would be 20 calls per position update. If you had 2 users with frequent location updates then this can result in a lot of calls which coupled with all the other API calls can very quickly exceed the usage allowances of basic or free API keys.

    When users start seeing warning log messages because API calls are rejected due to exceeding limits or the street address isn't updating etc, then my inbox starts filling up with messages from disgruntled folks

    Yes, the plan is to get it in the HS3 updater as soon as we're happy its stable enough for mass consumption.

    Paul..

    Leave a comment:


  • nunoary
    replied
    Hi,

    I can't seem to get data from EGZ into PHL2. Using V2.48 with MyHs setup.

    I am sure everything is well configured, however the data is not automatically sent from the application on the phone to the plugin. It only updates the devices when I press the glasses in the mobile app. I'm not sure what's missing here.


    I want to thank you both for the excellent work you are doing with this plugin.

    Leave a comment:


  • Ltek
    replied
    rprade thx, the online docs said no miles/mins just installed V2 .49

    sooty ... one suggestion. It is very confusing to use name 'DeviceID' to mean both the Unique User ID (Fences) and HS3 Device (Tracking). Changing the UI (and docs) to name them differently might be good

    Leave a comment:


  • rprade
    replied
    Originally posted by Ltek View Post
    Questions...

    V2 removed Walking/Driving Distance... Why? I thought driving distance was useful.

    Will you be posting in the HS3 Updater? Would make it so much easier for users to install/update.

    thx for the fantastic work.
    V2 will remain a manual update until this early beta is finished. Paul hopes to get it into the updater when it is in full production. The first draft of the user manual was just completed yesterday. V2 has driving time and driving distance to Home. They were added around V42. If you created your position devices on an earlier version, go to the root and "Rebuild Child Devices" under the PHL tab.

    Click image for larger version

Name:	Capture.PNG
Views:	7
Size:	22.3 KB
ID:	1280113

    Leave a comment:


  • Ltek
    replied
    Questions...

    V2 removed Walking/Driving Distance... Why? I thought driving distance was useful.

    Will you be posting in the HS3 Updater? Would make it so much easier for users to install/update.

    thx for the fantastic work.

    Leave a comment:


  • racerfern
    replied
    If all you are interested in is GeoFences then don't put anything into the tracking URL.
    Actually, I "think" all I'm interested in is tracking since that will have timestamps.

    Leave a comment:


  • drparker151
    replied
    Originally posted by racerfern View Post
    .....Is there any advantage to using both Geofence and Tracking?
    These are two different use cases. Geofence will track the entry too and exit from known locations that you setup. Tracking will track and can also store the history of the current location of a device. So if my daughter says she going over to Emily's and then the library. I can see that she actually first went to the mall and then over to Ben's. If all you are interested in is GeoFences then don't put anything into the tracking URL.

    Leave a comment:


  • sooty
    replied
    Originally posted by racerfern View Post
    I installed .49 and went straight for the user guide. Thank you! Now, is there any advantage to using both Geofence and Tracking? I'm lost here because there are three
    places to enter the connected2 URL in a EGZ server profile.

    1. URL FHEM Geofancy
    or
    2.URL zone entered
    URL zone exited

    then further down there is
    3. URL zone for tracking

    Do I put the first one in FHEM and the second one in spot #3 OR do I create another server profile>
    https://connected2.homeseer.com/phl2api?dtype=EG&
    https://connected2.homeseer.com/phl2api?dtype=ET&androidid=${androidId}&lat=${realLatitude}&lon=${realLongitu de}&acc=${accuracy}&date=${localLocationDate}&phlid=1234
    You only need 1 server profile to make it work.
    The url ending in EG& goes in FHEM and the longer one goes in URL for tracking.

    The ones for zone entry / exit are not needed with the plug-in but can be used when a different url needs to be called for each transition type.

    Paul..

    Leave a comment:


  • racerfern
    replied
    I installed .49 and went straight for the user guide. Thank you! Now, is there any advantage to using both Geofence and Tracking? I'm lost here because there are three
    places to enter the connected2 URL in a EGZ server profile.

    1. URL FHEM Geofancy
    or
    2.URL zone entered
    URL zone exited

    then further down there is
    3. URL zone for tracking

    Do I put the first one in FHEM and the second one in spot #3 OR do I create another server profile>
    https://connected2.homeseer.com/phl2api?dtype=EG&
    https://connected2.homeseer.com/phl2api?dtype=ET&androidid=${androidId}&lat=${realLatitude}&lon=${realLongitu de}&acc=${accuracy}&date=${localLocationDate}&phlid=1234

    Leave a comment:


  • rprade
    replied
    Originally posted by w.vuyk View Post

    Randy,

    Paul indeed pointed me to this option. I had it set in the old version and just copied it over while setting the icloud options. Disabling the option immediatly enabled picking a device for me. But as you described my ipad is still in the list, also on the old version. But if I understood Paul correctly, it will no longer scan its position and other (new) devices will not be added to this list, nor scanned for position?

    Wim
    Yes, that is how I understand it. With that selected, any iOS devices that are not added to the plug-in will be skipped during polling.

    Leave a comment:


  • sooty
    replied
    Originally posted by w.vuyk View Post

    Randy,

    Paul indeed pointed me to this option. I had it set in the old version and just copied it over while setting the icloud options. Disabling the option immediatly enabled picking a device for me. But as you described my ipad is still in the list, also on the old version. But if I understood Paul correctly, it will no longer scan its position and other (new) devices will not be added to this list, nor scanned for position?

    Wim
    When an iCloud account is polled with (Ignore Unknown Devices) OFF, any discovered devices that are NOT already included in the plug-in are added to an internal list of (Heard Devices). The drop down device selector on the iDevice PHL2 tab within an iDevice type is populated from this (Heard Devices) list.

    When a device is selected from the list and the Save Changes button is clicked, that device will be removed from the (Heard List) and added to the (Known List).

    With (Ignore Unknown Devices) ON, any devices returned in the poll that are NOT in the (Known List) will be ignored.

    The (Heard List) is only cleared at plug-in start-up so, even with (Ignore Unknown Devices) ON, devices will remain in the list until either they are added as iDevices or the plug-in is re-started.

    To try and explain how the polling of an iCloud account works.
    1. The plug-in logs into your your iCloud account and asks for information. This is done at ACCOUNT level NOT at DEVICE level.
    2. iCloud reaches out to each device registered on the account to get up to date information from that device.
    3. iCloud returns information for ALL devices registered to the account back to the plug-in.
    The returned information contains lots of data which includes device related data like battery level, charging state etc in addition to location information.
    4. The plug-in processes the data for each device.

    Given the above above sequence of events:
    If for example the user has an iMac on their account that spends much of it's time switched off and never moves from the office, then when iCloud reaches out to that device (stage 2 above) and it is switched OFF it will return an "Off-Line" status and depending if location services are enabled on that device may return nothing for the location or data that is outdated.

    When iCloud reaches out (stage 2 above) to say an iPhone, even if the iPhone is ON and connected to the internet, it can take some time for it to respond with the latest info. e.g. it is trying to get a location fix. It may also be temporarily disconnected from the internet for some reason so could return an Off-Line status.

    When the plug-in processes the returned data (stage 4 above) and sees that a device is Off-Line or has "Outdated Location Data" then this could just be because the device is still obtaining a location fix or just wasn't reachable at the time iCloud requested info from it.

    I won't go into all the details here but the plug-in uses various logic based on the returned data to decide if to re-poll the account. It will re-poll up to 6 times if necessary within a single polling interval before giving up and waiting for the next polling interval.

    So, onto the point:
    When the (Ignore Unknown Devices) option is ON, it won't use data from any devices that are not in the (Known List) to decide if to re-poll.
    This significantly speeds up the polling process on accounts that have multiple devices when some of those devices are not required in the plug-in.
    In cases when there are devices that are frequently unreachable (e.g. iMac that is switched off 90% of the time) then if these are not included in the plug-in and (Ignore Unknown Devices) option is ON then it will also improve battery life on the remaining devices as they don't have to be constantly re-polled because some other device on the account isn't responding.

    Paul..



    Leave a comment:

Working...
X