Announcement

Collapse
No announcement yet.

PHLocation V2 Discussion

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

  • Timon
    replied
    I've noticed a problem with the location from home when using an iOS device, in my case my iPhone.

    My phone is at home but it says my phone is 6551.76 Miles from Home. Needless to say that's a very large error indeed. I had a know location called Home however it was in error, I left out the "-" in the Longitude, but is now corrected. The problem is that I'm still getting the error even though I've restarted the phone and Location2.

    So either something is broken or I don't have something setup correctly.

    Apparently something was out of kilter. Don't know exactly fixed it but it's now working correctly.

    Leave a comment:


  • slbuck
    replied
    Originally posted by MNB View Post
    Thanxs Randy I'll try your suggestion. Mike

    UPDATE: Script command seem to work properly "&nhs.WriteLog("Location","Fence - Mike is at " & hs.deviceString(261))"

    Steve, How did you get your previous location virtual device to work, it looked like you copied the PHL NearestLocation device and renamed it Steve phone Previous location. When I do that and use EasyTrigger to copy the PHL NearestLocation to the Phone Previous location I get an EasyTrigger error (see below). I can see that the NearestLocation is a string device so I would have thought the same should be for copying values from one device to the other? Mike
    Feb-14 4:43:51 PM EasyTrigger ERROR SetDeviceValue: Cannot find control value 0 for device 292
    Feb-14 4:43:51 PM EasyTrigger ERROR SetDeviceValue: Cannot find control value 0 for device 291
    UPDATE: After posting on the EasyTrigger forum, Spud got me straightened out. I'm currently testing to validate that it's working. The reason it was failing is that the status-control type has to be set to Both and should not be a clone of a plugin controlled device. When I created a new virtual device and replicated all the status graphics and values, made the status-controls Both, and set the device as a Status Only Device, EasyTrigger is now able to update the device. Here is the new device along with the new simpler event to update it.


    Click image for larger version  Name:	phlocation2-device-previous-location-configuration.PNG Views:	1 Size:	311.3 KB ID:	1285279Click image for larger version  Name:	phlocation2-device-previous-location-advanced.PNG Views:	1 Size:	52.3 KB ID:	1285280Click image for larger version  Name:	phlocation2-device-previous-location-status-values.PNG Views:	1 Size:	180.2 KB ID:	1285281Click image for larger version  Name:	phlocation2-device-previous-location-status-graphics.PNG Views:	1 Size:	85.2 KB ID:	1285282

    Click image for larger version

Name:	phlocation2-event-update-previous-location.PNG
Views:	13
Size:	28.2 KB
ID:	1285294

    I've updated my original post #528. for completeness.

    Leave a comment:


  • slbuck
    replied
    Originally posted by MNB View Post

    Steve, thanxs for providing your latest event updates.. so I'm feeling a little better in regards to not knowing about EasyTrigger range related to Known locations, I can be slow at times.. I see in your latest event iteration that you've abandoned the use of know locations within range and went the more simpler approach.

    I had to laugh at your Vortex known place, I was thinking it was the freeway hence the enquiry as to how one would capture that. Does your in-laws know that they are known as the "Vortex" ( I can relate) Mike
    Regarding the known location and trying to use ranges, it was my lack of understanding as well that kept it from working. I was checking the current location which at the time would be "None" and so would always result in being a true comparison since the value in the range of 0 to 0 would never be equal to -1 nor would a value in the range of 4 to 4. Doing a check to see if the device value was not equal to Home (value of 0) or using easytrigger to see if the string did not contain "vortex" made it much more readable.

    This did not work at first since I was not updating the previous location device correctly and so the value never got updated. I've updated my original post with the correct event to update the previous location device. See the link below to post #528

    As a result of various personal circumstances, the release of PHLocation V2 has been delayed far longer than I would have liked :( As the majority of recently

    Leave a comment:


  • MNB
    replied
    Thanxs Randy I'll try your suggestion. Mike

    UPDATE: Script command seem to work properly "&nhs.WriteLog("Location","Fence - Mike is at " & hs.deviceString(261))"

    Steve, How did you get your previous location virtual device to work, it looked like you copied the PHL NearestLocation device and renamed it Steve phone Previous location. When I do that and use EasyTrigger to copy the PHL NearestLocation to the Phone Previous location I get an EasyTrigger error (see below). I can see that the NearestLocation is a string device so I would have thought the same should be for copying values from one device to the other? Mike
    Feb-14 4:43:51 PM EasyTrigger ERROR SetDeviceValue: Cannot find control value 0 for device 292
    Feb-14 4:43:51 PM EasyTrigger ERROR SetDeviceValue: Cannot find control value 0 for device 291

    Leave a comment:


  • rprade
    replied
    Originally posted by MNB View Post
    Script help please, I was trying to modify a Execute immediate script command: "&nhs.WriteLog("Location","Fence - Mike is at "$$DSR:101: " and was trying to get my replacement value $$DSR:101 to print within my HS3 log what syntax am I missing? Mike
    You cannot use replacement variables in a script. You will have to use hs.DeviceValue(ref) or hs.DeviceString(ref).

    https://help.homeseer.com/help/HS3/s...or_last_change

    Leave a comment:


  • MNB
    replied
    Script help please, I was trying to modify a Execute immediate script command: "&nhs.WriteLog("Location","Fence - Mike is at "$$DSR:101: " and was trying to get my replacement value $$DSR:101 to print within my HS3 log what syntax am I missing? Mike

    Leave a comment:


  • MNB
    replied
    Originally posted by slbuck View Post

    I was actually guessing the value for the Vortex to be 4 since it was the 4th location I had added. 0 is always Home and then 1-99999999 are for user added locations. I now have 10 known locations and they are alphabetized so I've lost track of which value is assigned to each known location. I've reached out to Paul to see if he might include the value for each location under the known locations tab.

    The vortex known place is just a regular location (my in-laws actually) and so I handle entry/exit to this location separately from all other locations.
    Steve, thanxs for providing your latest event updates.. so I'm feeling a little better in regards to not knowing about EasyTrigger range related to Known locations, I can be slow at times.. I see in your latest event iteration that you've abandoned the use of know locations within range and went the more simpler approach.

    I had to laugh at your Vortex known place, I was thinking it was the freeway hence the enquiry as to how one would capture that. Does your in-laws know that they are known as the "Vortex" ( I can relate) Mike

    Leave a comment:


  • MNB
    replied
    Again, thanxs Paul, I'm now feeling empowered PHL2 wise which might be just a false sense of security!

    Leave a comment:


  • sooty
    replied
    Originally posted by MNB View Post
    Paul, thanxs for the explanation it does provide insight into the confusion…

    1) According to your overview "History" with device ID (96_history.html) is created during Map Viewer page, however we can also get a history if we use a event to build a dynamic Map with Map type of History.

    2) Where does the static device Id (96_current.png) map get created from?

    3) The iCloud device>PHLocation2 tab Dynamic Mapping Options is a dynamic map for current mapping (when location changes) which doesn't have history associated with it, whilst Static Mapping Option is a static map for current mapping (when location changes) and doesn't have history associated with it by nature of a png file. Other than file type both basically produce similar results (have I missed something?)
    Thanxs in advance not trying to be difficult only trying to make sure I understand, Mike
    1. If the path and file name are not overridden then all dynamic maps generated from an event, regardless if history or current will be named (dynamic_map_from_action.html). The same applies to static maps although the file name will be (static_map_from_action.png).

    2. That should be coming from the "Build a new map when location changes" option within static map settings on the PHL2 tab of the user with device ref 96.

    3. You summary is exactly right.
    Dynamic maps are more suited to viewing with a browser where you can pan and zoom the map etc and are designed to be used in an iFrame which may be embedded in another web page.
    Static maps are just that, a fixed "static" image that cannot be panned or zoomed. This was initially done in PHL V1 so users could display the map images in HSTouch.
    Wasn't going to put this in V2 but a few folks asked for it so I added it.

    Paul..

    Leave a comment:


  • MNB
    replied
    Paul, thanxs for the explanation it does provide insight into the confusion…

    1) According to your overview "History" with device ID (96_history.html) is created during Map Viewer page, however we can also get a history if we use a event to build a dynamic Map with Map type of History.

    2) Where does the static device Id (96_current.png) map get created from?

    3) The iCloud device>PHLocation2 tab Dynamic Mapping Options is a dynamic map for current mapping (when location changes) which doesn't have history associated with it, whilst Static Mapping Option is a static map for current mapping (when location changes) and doesn't have history associated with it by nature of a png file. Other than file type both basically produce similar results (have I missed something?)
    Thanxs in advance not trying to be difficult only trying to make sure I understand, Mike

    Leave a comment:


  • sooty
    replied
    Originally posted by MNB View Post
    Paul, Map(s) question; which tab is controlling the two maps below (I was assuming the Configuration>Mapping but I do not believe that's totally correct?
    • Dynamic Map (Built-in Viewer)
    • Auto Generate (All Users) Dynamic Map settings
    • Auto Generate (All Users) Static Image Settings
    1. (Device Id)_history.HTML
    2. (Device ID)_current.PNG
    3. alluserscurrent.HTML
    Confusing I know. I'm confused and I wrote it
    I'll try and change / rearrange some of the descriptions and tooltips to better describe what each setting does.

    The built in-dynamic map viewer creates HTML files whenever it's used. The file names are fixed and are really not that relevant to the end user because they are only used internally.

    Settings for the built in dynamic map viewer are on the Mapping tab of the plug-in config.
    The first section (Dynamic Map (General) Settings) applies to all dynamic maps regardless of how they are created / viewed.
    The (Dynamic Map (Built-In Viewer) Settings) apply only to the built-in viewer.

    Within each position type user, there is the option to automatically generate both static and / or dynamic "All Users" maps.
    Map generation is triggered whenever a user with that option switched ON changes location. It will then grab all other users with the option switched ON and generate a map.
    The settings for "All Users" map types are a little confusing because they are split between the Config>Mapping and each individual user.
    The general parameters for "All Users" maps like map size, type and file name override etc are done in Config>Mapping.
    Within each user's PHL2 tab the marker character and marker pin colour apply to both All Users and Single User maps. The rest of the settings are "Single User" only.

    So, if you don't override any file names the defaults below will be used: F=Fixed File Name O=Overridable File Name
    F (alluserscurrent.html) Created / updated when the "All Users" button is clicked on the Map Viewer page.
    F (deviceId_history.html) Created / updated when the "History" button is clicked on the Map Viewer page.
    O (all_users_current.html) Created / updated when an "All Users" dynamic map is automatically generated.
    O (deviceId_current.html) Created / updated when a "Single User" dynamic map is automatically generated.
    O (dynamic_map_from_action.html) Created / updated when a dynamic map is generated from an event action.
    O (all_users_current.png) Created / updated when an "All Users" static map is automatically generated.
    O (deviceId_current.png) Created / updated when a "Single User" static map is automatically generated.
    O (static_map_from_action.png) Created / updated when a static map is generated from an event action.

    Think that's it.

    Paul..

    Leave a comment:


  • slbuck
    replied
    Originally posted by MNB View Post
    Randy, slow question.. "Known Location for his home is 0 and "The Vortex" is 4." where does value get set or inferred for home and Vortex contains 0 vs 4? are there other devices that have value of 1-3 or 5> Mike

    Update: I believe that the slot number for Known places within PHL2 e.g. 0 for home and in the case for Steve 4 for vortex.

    Steve, out of curiously what makes up your vortex known place?
    I was actually guessing the value for the Vortex to be 4 since it was the 4th location I had added. 0 is always Home and then 1-99999999 are for user added locations. I now have 10 known locations and they are alphabetized so I've lost track of which value is assigned to each known location. I've reached out to Paul to see if he might include the value for each location under the known locations tab.

    The vortex known place is just a regular location (my in-laws actually) and so I handle entry/exit to this location separately from all other locations.

    Leave a comment:


  • slbuck
    replied
    Originally posted by MNB View Post
    Stephen, thanxs for sharing, I agree with you PHL2 has significantly improved the Location/Maping capabilities. I noticed that your using Group Conditions I thought I had read some where or was advised that Group conditions aren't reliable in how they execute has something changed with the recent HS3 upgrades.

    2)How does the "range" trigger work I see [0,0] and [4,4] thanxs in advance
    3)Where does "Any" when using the PHL2 command "User: Steve phone exits known location: Any." come from?
    I'm only checking the group conditions to make sure they are all true, I'm not doing any group actions. So far, it seems to be working ok. I need to test to make sure things are working when party mode is set or when occupancy status is Away.

    For the range triggers, as Randy pointed out, my original intent was to verify that I wasn't at Home nor the Vortex after exiting a known location. This actually didn't work since the Current Location value was updated to None (value of -1) and so was always not home (value of 0) or the vortex (value of 4). I updated my post above to show the new logic that I'm using and I'll test this out for a couple of days to see if it works.

    Leave a comment:


  • MNB
    replied
    Paul, Map(s) question; which tab is controlling the two maps below (I was assuming the Configuration>Mapping but I do not believe that's totally correct?
    • Dynamic Map (Built-in Viewer)
    • Auto Generate (All Users) Dynamic Map settings
    • Auto Generate (All Users) Static Image Settings
    1. (Device Id)_history.HTML
    2. (Device ID)_current.PNG
    3. alluserscurrent.HTML

    Leave a comment:


  • MNB
    replied
    Paul, thanxs for the clarification. So just that I'm clear in my understanding the other Known location(s) (not Home) are sequential numbering based on how they were inputted e.g. 2nd inputted Known Location =1 followed by the 3rd being =2 and ect?

    Update: Somehow I don't believe my statement is correct because the Known Locations are in alpha numeric sequence which would put device number is flux...

    Leave a comment:

Working...
X