gcobb321 / icloud3

iCloud3 v3 - iCloud3 is an advanced iDevice tracker that uses Apple iCloud account and HA Companion App data for presence detection and location based automations.
MIT License
581 stars 54 forks source link

near_zones - bit of help please #190

Closed townsmcp closed 2 years ago

townsmcp commented 2 years ago

Hi, I have been looking over the documentation here and can see the near_zone might be helpful to my setup - mobile reception is not great when getting near home due to living on a new build estate and I think this might be able to help overcome the problems.

The problem Im having is where to start - I see the document mentions adding 'near_zone' into zones.yaml - I have searched my HA setup and cant find a zones.yaml. Im happy to create it but where should it go? Can the 'near_zone' go into config_ic3.yaml instead? Is there an example of what the section should look like?

Thanks in advance

gcobb321 commented 2 years ago

Actually, the near_zone function worked sometimes but was not really reliable in poor cell phone areas and has been removed in the next release. Make sure you have the iOS app installed on your phone. It can help in these situations.

townsmcp commented 2 years ago

@gcobb321 thanks for the info. Out of curiosity, my config is the following; can you suggest any changes/additional changes to help compensate for poor cell phone? I do have the iOS Companion App installed on all iPhones.

devices:

--Accuracy Parameters-------------------------------------

gps_accuracy_threshold: 20

gcobb321 commented 2 years ago

The gps_accuracy_threshold is too low and will lead to many retries. I use 65. The iOS app uses a ‘sphere of accuracy’ of 100m. That means that it will trigger a zone enter when it gets within 100m of a zone, not inside the zone itself. A higher threshold will be close enough to where you really are.

townsmcp commented 2 years ago

@gcobb321 thank you so much for your advice. I thought the lower figure would be mean 20m from the house rather than 20m from the edge of the 100m zone. I have upped the value to 65 as you suggested. Thanks