Announcement

Collapse
No announcement yet.

PHLocation V2 Discussion

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

  • jyrki69
    replied
    Starting at 07 o clock this morning im getting these errors and the device location updates doesnt update.
    Feb-28 07:24:32 PHLocation2 Error (PollAccount) LF Error in GetCircles.
    Feb-28 07:24:32 PHLocation2 Error (PollAccount) LF Error in GetCircles.
    Feb-28 07:23:33 PHLocation2 Error (PollAccount) LF Error in GetCircles.
    Feb-28 07:23:32 PHLocation2 Error (PollAccount) LF Error in GetCircles.

    I have 2 Life 360 service accounts, and 3 user/devices.
    This has worked fine for weeks, and I haven't changed anything.

    I wanted to add service accounts for all 3 user/devices, but the Life 360 icon won't show up as an option anymore, only Add iCloud and Add Followmee?


    I've logged in to Life360.com and checked the app on the phones, it updates and works fine.
    I've restarted the plugin a couple of times, and it seems like the devices updates location on restart, but then when starting to poll the errors come up again. Every minute the error is logged (Poll is 1min for all users/devices).


    This is after restart of the plugin (name and emails are edited out)
    Feb-28 15:22:29 PHLocation2 Error (PollAccount) LF Error in GetCircles.
    Feb-28 15:22:29 PHLocation2 Error (PollAccount) LF Error in GetCircles.
    Feb-28 15:21:28 PHLocation2 Error (PollAccount) LF Error in GetCircles.
    Feb-28 15:21:28 PHLocation2 Error (PollAccount) LF Error in GetCircles.
    Feb-28 15:19:29 PHLocation2 Error (PollAccount) LF Error in GetPlaces.
    Feb-28 15:19:29 PHLocation2 Error (GetPlaces) LF Exception: Collection was modified; enumeration operation may not execute.
    Feb-28 15:16:28 PHLocation2 (Startup) Finished at 15:16:28.413
    Feb-28 15:16:28 PHLocation2 (StartDQThreads) Fence DQ thread started OK.
    Feb-28 15:16:28 PHLocation2 (StartDQThreads) Pos DQ thread started OK.
    Feb-28 15:16:28 PHLocation2 (SwitchUserAtLocTimer) Active position type users found. Starting UserAtLoc timer...
    Feb-28 15:16:28 PHLocation2 (SwitchPolling) Active polled services found. Starting polling....
    Feb-28 15:16:28 PHLocation2 (InitServiceAccounts) Initialised Life360 account Ref: 1929 : **@mail.com
    Feb-28 15:16:28 PHLocation2 (InitServiceAccounts) Initialised Life360 account Ref: 1834 : **@anothermail.com
    Feb-28 15:16:28 PHLocation2 (BuildDeviceLists) Completed OK.
    Feb-28 15:16:28 PHLocation2 (BuildDeviceLists) No external devices to monitor, disabling monitoring.
    Feb-28 15:16:28 PHLocation2 (BuildDeviceLists) Found a total of 5 root and 73 child devices.
    Feb-28 15:16:28 PHLocation2 (BuildDeviceLists) Added Life360 root device 1979 : Life360 Device Name to known P list.
    Feb-28 15:16:28 PHLocation2 (BuildDeviceLists) Added Life360 root device 1932 : Life360 Device Name to known P list.
    Feb-28 15:16:28 PHLocation2 (BuildDeviceLists) Found Life360 Account root device 1929 : Life360 Account Name
    Feb-28 15:16:28 PHLocation2 (BuildDeviceLists) Added Life360 root device 1837 : Life360 Device Name to known P list.
    Feb-28 15:16:28 PHLocation2 (BuildDeviceLists) Found Life360 Account root device 1834 : Life360 Account Name
    Feb-28 15:16:27 PHLocation2 (Startup) Plug-In is registered.
    Feb-28 15:16:27 PHLocation2 (Startup) 5 known locations loaded.
    Feb-28 15:16:27 PHLocation2 (InitHomeLocation) Home Location set. Lat:59.828158 Lon:10.330247 Rad:0.25
    Feb-28 15:16:27 PHLocation2 (LoadConfigSettings) Distance data provider is set to Pri:Google Alt:MapQuest
    Feb-28 15:16:27 PHLocation2 (LoadConfigSettings) Static map provider is set to Google
    Feb-28 15:16:27 PHLocation2 (LoadConfigSettings) Dynamic map provider is set to Google
    Feb-28 15:16:27 PHLocation2 (LoadConfigSettings) Links map provider is set to Google
    Feb-28 15:16:27 PHLocation2 (LoadConfigSettings) Elevation Data provider is set to Pri:Google Alt:MapQuest
    Feb-28 15:16:27 PHLocation2 (LoadConfigSettings) Reverse Geocode provider is set to Pri:Google Alt:OSM
    Feb-28 15:16:27 PHLocation2 (LoadConfigSettings) plug-in is working in Metric units.
    Feb-28 15:16:27 PHLocation2 (Startup) Main database found. Version:6
    Feb-28 15:16:27 PHLocation2 (Startup) ImagePath = images/PHLocation2/
    Feb-28 15:16:27 PHLocation2 (Startup) LogPath = html/PHLocation2/Logs/
    Feb-28 15:16:27 PHLocation2 (Startup) DataPath = /opt/HomeSeer/Data/PHLocation2/PHLocation2.db3
    Feb-28 15:16:27 PHLocation2 (Startup) BinPath = /opt/HomeSeer/Data/PHLocation2/
    Feb-28 15:16:27 PHLocation2 (Startup) HSAppPath = /opt/HomeSeer
    Feb-28 15:16:27 PHLocation2 (Startup) UTC offset secs: 3600
    Feb-28 15:16:27 PHLocation2 (Startup) System decimal separator used is [.]
    Feb-28 15:16:27 PHLocation2 (Startup) Detected OS is Linux version 4.15.0.45
    Feb-28 15:16:27 PHLocation2 (Startup) Plug-in version is: 3.0.0.56
    Feb-28 15:16:27 PHLocation2 (Startup) Begins at 15:16:27.054
    Feb-28 15:16:27 Plug-In Finished initializing plug-in PHLocation2
    Feb-28 15:16:27 Starting Plug-In PHLocation2 loaded in 200 milliseconds
    Feb-28 15:16:27 Starting Plug-In Plugin PHLocation2 started successfully in 6 milliseconds
    Feb-28 15:16:27 Starting Plug-In Initializing plugin PHLocation2 ...
    Feb-28 15:16:27 Info Plugin PHLocation2 has connected. IP:127.0.0.1:54902

    Any suggestions on whats wrong?

    Leave a comment:


  • Timon
    replied
    Feature Request:

    More ways to enter the Radius in Known Locations. Currently you can only enter it in miles. That's an unusual way to enter the Radius when on something that meant to be nearby.

    I'd like to be able to enter the Radius in feet, yards, meters, kilometers or miles. I think the default should be meters if in metric mode and yards if in english mode however one should always be able to override that by adding a suffix such as "ft" for feet, "yd" for yards, "mi" for miles "m" for meters or "km" for kilometers.

    The box would always read in the default measurement but you could enter it in any unit of measure by using the standard suffix. So if the selected unit of measure is miles and you enter 100m the box would show 0.062137 miles.

    Leave a comment:


  • madmellow
    replied
    Understood and thanks. Should have RTFM.

    Not sure how that got checked, but now all three of my service accounts show up with the Granddaughter's e/mail on the Edit Service Account screen.

    Thanks again,

    MM

    Leave a comment:


  • rprade
    replied
    Originally posted by madmellow View Post
    My question probably got lost in the 2FA and trigger discussions... I've been hoping that they would eventually show up as I restarted, but so far nothing.

    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 got (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 because not known" mean and what do I need to do to make it be "known?"

    Thanks,

    Rick aka MadMellow
    It means you have “Ignore Unknown Devices” checked on her service account. See the user guide:

    https://jphuddlestone.co.uk/phlocati...udAccount.html

    Ignore Unknown Devices

    DO NOT enable this option until you have added all the User devices that you want included in the plug-in as this option will prevent new devices being discovered.

    A single iCloud account may have many devices registered to it but you may only want to monitor some of them in the plug-in. Once all required devices have been added, enabling this option allows the plug-in to ignore the state of the non-included devices which speeds up the polling process considerably for accounts with multiple devices where only some of those devices are included in the plug-in.

    Leave a comment:


  • madmellow
    replied
    My question probably got lost in the 2FA and trigger discussions... I've been hoping that they would eventually show up as I restarted, but so far nothing.

    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 got (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 because not known" mean and what do I need to do to make it be "known?"

    Thanks,

    Rick aka MadMellow

    Leave a comment:


  • rprade
    replied
    Paul is aware of the 2FA expiration issue and is trying to fix it. It was all good until Apple changed something. He does not have a fix at this time but is endeavoring to find one.

    Leave a comment:


  • MattL0
    replied
    Here I have 2 Icloud account connected. But didnt register them with the plugin at the same time.

    I had to redo the 2fa for my account 3 weeks ago.
    At the same time I redid the 2fa for my GF account.

    But last week I had to redo It for my GF account like if the last time didn’t happen.

    so i guest there is a predifined period of time for this

    Leave a comment:


  • w.vuyk
    replied
    Originally posted by dibble9012 View Post
    Are there any issues with the latest version of V2 and iCloud? I have two iCloud accounts on my HS3 system and over the past few days both phones have all of a sudden started asking to allow a new login. Resetting the account and re-doing the verification fixed the issue.
    Same here. Does the 2FA checks expire for the plugin?

    Leave a comment:


  • dibble9012
    replied
    Are there any issues with the latest version of V2 and iCloud? I have two iCloud accounts on my HS3 system and over the past few days both phones have all of a sudden started asking to allow a new login. Resetting the account and re-doing the verification fixed the issue.

    Leave a comment:


  • MNB
    replied
    Thanxs gentlemen, like I mention earlier I thought I missed a trick somewhere.. So using two VD (Current2 and Previous locations) we get a FIFO logic which then would provide the proper sequencing between true previous and current locations. I have to say PHL2 has introduced me to several new concepts, events and implementation cross platforms, apps and alerts.

    Paul, I've continued using EasyTrigger with "Status Only Device:" deselected albeit I get all of the controls being displayed within right most panel. Did Spud make any commitment of modifying EasyTrigger to manually remove the controls? Mike

    Randy, your suggestion works I've created two events with two VD and they work as advertised, thanxs. I'm not sure how to apply your statement below, are you inferring that we can somehow capture specific data from the message panel and/or history map (database) and if so how? Mike
    This begs the question: what automation need is driven from the value of the previous known location? If it is just for data, the PHL history report, the message panel or a history map will have the data.

    Leave a comment:


  • slbuck
    replied
    Originally posted by MNB View Post

    Update: Steve I notice that within the Previous Location device one of the options is "None" (-1) along with "Multiple Locations" and "Home" so "None" seems to be a valid location. Mike
    The previous location device will never contain None as a location since I only set the device when entering a known location. In the next iteration, I'm going to do what Randy suggested and store the current location to a hidden virtual device when entering a known location and then copy that devices to the previous location when exiting a known location..This way the previous device will always contain the previous known location instead of being the same as the current location.

    I'll then be able to use this previous location to announce the last place someone was if their current location is None and then what city they are currently in. For example, let's say I just left work in Houston and had to drive to Dallas and my current location is None. If someone wanted to query my location, the system would announce that I was at work and currently in the city of Dallas along with distance and drive time home.
    ​​​​​​

    Leave a comment:


  • slbuck
    replied
    Originally posted by rprade View Post

    This begs the question: what automation need is driven from the value of the previous known location? If it is just for data, the PHL history report, the message panel or a history map will have the data.
    I have an event that utilize the previous location to announce when I'm leaving from any known location. Rather the creating a separate event for every known location, I can just use the one event and the previous location to announce where I just left from without having to create new events every time a new known location is added. I also use the previous location to override the "exiting Any location event" for when I want to do something different. I do this when leaving home or my in-laws at the moment.

    Leave a comment:


  • slbuck
    replied
    Originally posted by MNB View Post

    I added a image of both of my Previous and Current at showing "Home" which I would have expected them to be different at all times, what am I missing? What are you selecting within the "Options>??Mike
    You're correct. Since I'm updating the previous location with the current location, you have to do it when you enter a known location. This means that the previous location and current location will be the same when you're at a known location.

    Since I only needed the previous location for one specific event, I didn't care if it was the same as the current location. I was lazy and did not create another virtual device to temporarily store the current location so that the previous location could be updated when exiting a known location rather than entering one. I'll probably update this in my next set of updates.

    Also, I'm still using the script commands to update the virtual devices since I did not want all the controls visible for the virtual devices. Hopefully Spud will consider allowing status only devices to be copied so we can use easy trigger to update the virtual devices.

    Leave a comment:


  • rprade
    replied
    Originally posted by MNB View Post
    Thanxs Randy, I thought I was being thick again but when I created the same event I was seeing both devices mirroring each other as they both originate for the same source. I thought maybe if I manually set the previous to another previous but again the same dynamic would be in play. Out of curiosity have you ever created an event that would do what Steve proposed?

    I thought I remembered something similar where as one was using Virtual Devices to capture previous condition whilst combing throught the forum but can't remember where. Mike
    The first step is to outline what it is you want to do.
    • At the moment you leave a known location you need to write it to a virtual device as a previous location.
    • This means you must store the current location in a virtual device upon entry to a known location, call it "current location virtual".
    • Then you must write the value of "current location virtual" to another device, call it "previous location virtual" upon departure from any known location.

    So you need two virtual devices and two events.

    Event 1
    If user enters any known location
    Then write the PHL current location to "current location virtual"

    Event 2
    If user exits any known location
    Then write "current location virtual" to "previous location virtual"

    This begs the question: what automation need is driven from the value of the previous known location? If it is just for data, the PHL history report, the message panel or a history map will have the data.

    Leave a comment:


  • MNB
    replied
    Originally posted by Timon View Post
    Which version of easy trigger?
    John, I'm using v.56 (beta)

    Leave a comment:

Working...
X