Announcement

Collapse
No announcement yet.

PHLocation V2 Discussion

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

  • MNB
    replied
    Steve, to answer your question yes I too have On/Off Controls showing (see attached) even after I de-select "Status only" Checkbox and set the Status-Control to all reflecting "Status". Randy do you have any insight as to how we can turn it off? Mike
    Attached Files

    Leave a comment:


  • slbuck
    replied
    Mike,

    ​​​​​I also removed the status only checkbox and set the status-controls to status and easy trigger is still able to update the previous location. Interestingly, I have an on and off control still showing, even though nothing is set to control or both. Do your devices show the on and off controls? I have a feeling there's something still set to control somewhere (just can't see it) which is why easy trigger still works with everything set to status.

    Leave a comment:


  • MNB
    replied
    Thanxs Randy, that was the ticket! I'm able to update using EasyTrigger without error. I noticed that I know have multiple controls within the control section so I changed Both to Status and that too seem to work without producing an error...

    Thanxs Steve, based on Randy's recommendation it looks like EasyTrigger can update the previous location device, have you confirmed? Mike

    Leave a comment:


  • rprade
    replied
    Originally posted by MNB View Post
    Steve, I've verified that I still get the same EasyTrigger Error (see below) even after I re-create a new virtual device from scratch (see attached screen shots);

    Feb-16 3:44:58 PM EasyTrigger ERROR SetDeviceValue: Cannot find control value 0 for device 297
    Feb-16 3:44:58 PM Event Event Trigger "Location Mike - Update Previous Location"
    Feb-16 3:44:58 PM Event Event Location Mike - Update Previous Location triggered by the event page 'Run' button.
    You need to deselect “Status Only Device” so that Easy Trigger can control it.

    Leave a comment:


  • slbuck
    replied
    Here you go. I'm heading out and I'll test more. I think I may go back to the script method as well since it works flawlessly.

    Click image for larger version

Name:	Screenshot_2019-02-16-16-03-17.png
Views:	15
Size:	129.9 KB
ID:	1285482

    Leave a comment:


  • MNB
    replied
    Steve, in my attempts of copying your updates, I deleted your previous method of using an immediate script would you repost your previous solution as it seemed to work until we're able to get EasyTrigger to work as advertised.

    I should have kept it and use Randy's suggestion of toggling "NEVER" which would have kept the previous solution without compromising the Event. Mike

    Leave a comment:


  • MNB
    replied
    Steve, I've verified that I still get the same EasyTrigger Error (see below) even after I re-create a new virtual device from scratch (see attached screen shots);

    Feb-16 3:44:58 PM EasyTrigger ERROR SetDeviceValue: Cannot find control value 0 for device 297
    Feb-16 3:44:58 PM Event Event Trigger "Location Mike - Update Previous Location"
    Feb-16 3:44:58 PM Event Event Location Mike - Update Previous Location triggered by the event page 'Run' button.
    Attached Files

    Leave a comment:


  • slbuck
    replied
    Originally posted by MNB View Post
    Steve, thanxs for the latest re EasyTrigger, question whilst reviewing logic I notice that the Group Conditions is set to "IF house status (Home/Away) has a value equal to Home" suggest that in all instances it should be set to Away for the Known events including Home Arriving because during each of these events you would be Away and not until your Home would Home be set so I would argue that the "AND IF The Group Conditions are all False" then the Event could execute as written, your thoughts Mike
    The occupancy status is if anyone is currently at home. If no-one is at home, then I don't fire the event since no-one would be home to hear the announcements.

    Originally posted by MNB View Post
    Using EasyTrigger I still get an error (even after creating a clean Virtual Device using the Green Plus button):
    Feb-16 11:09:27 AM EasyTrigger ERROR SetDeviceValue: Cannot find control value 0 for device 296
    Make sure that all the device status-controls are set to Both and that the "Status Only Device" checkbox is selected under the configuration tab. Also, I'm still testing this, but I see the same error after trying to update the previous location device after it's already been set to the Home device. It might have something to do with the 0 value, but can't be sure. The same event was working yesterday when I was traveling around, so it may only be an error when trying to set it to the Home location for some reason.

    Leave a comment:


  • MNB
    replied
    Steve, thanxs for the latest re EasyTrigger, question whilst reviewing logic I notice that the Group Conditions is set to "IF house status (Home/Away) has a value equal to Home" suggest that in all instances it should be set to Away for the Known events including Home Arriving because during each of these events you would be Away and not until your Home would Home be set so I would argue that the "AND IF The Group Conditions are all False" then the Event could execute as written, your thoughts Mike

    Using EasyTrigger I still get an error (even after creating a clean Virtual Device using the Green Plus button):
    Feb-16 11:09:27 AM EasyTrigger ERROR SetDeviceValue: Cannot find control value 0 for device 296
    Feb-16 11:09:27 AM Event Event Trigger "Location Mike - Update Previous Location"
    Feb-16 11:09:27 AM Event Event Location Mike - Update Previous Location triggered by the event page 'Run' button.

    Leave a comment:


  • slbuck
    replied
    Originally posted by MNB View Post
    Steve, thanxs for the latest.. I originally could not get my virtual device to reflect my previous location but rather was getting a value of "0" or "Off" (Home) until I realized I need a copy of my Current Location Virtual Device which was already setup for "0" = Home and "-2" = Multiple Location and -1 = None. Mike
    I was advised by Spud to not copy the plugin device, but instead, create a new virtual device. I've updated my post above and original post #528 for completeness.

    Leave a comment:


  • MNB
    replied
    Steve, thanxs for the latest.. I originally could not get my virtual device to reflect my previous location but rather was getting a value of "0" or "Off" (Home) until I realized I need a copy of my Current Location Virtual Device which was already setup for "0" = Home and "-2" = Multiple Location and -1 = None. Mike

    Leave a comment:


  • 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:	27
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:

Working...
X