{"id":4832,"date":"2023-08-24T20:40:40","date_gmt":"2023-08-24T18:40:40","guid":{"rendered":"https:\/\/www.sigalou-domotique.fr\/?p=4832"},"modified":"2026-01-02T17:01:15","modified_gmt":"2026-01-02T15:01:15","slug":"je-gere-leloignement-en-km-de-chaque-membre-de-ma-famille","status":"publish","type":"post","link":"https:\/\/www.sigalou-domotique.fr\/en\/je-gere-leloignement-en-km-de-chaque-membre-de-ma-famille","title":{"rendered":"I manage the distance (in km) of each member of my family"},"content":{"rendered":"<p>For this, I discovered an integration called Proximity<\/p>\r\n<p><a href=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/08\/proximity1-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4835\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/08\/proximity1-1.png\" alt=\"\" width=\"485\" height=\"188\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/08\/proximity1-1.png 485w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/08\/proximity1-1-300x116.png 300w\" sizes=\"auto, (max-width: 485px) 100vw, 485px\" \/><\/a><\/p>\r\n<p>There is nothing to install, it is already integrated into Home Assistant.<\/p>\r\n<p>Ref doc: <a href=\"https:\/\/www.home-assistant.io\/integrations\/proximity\" target=\"_blank\" rel=\"noopener\">https:\/\/www.home-assistant.io\/integrations\/proximity<\/a><\/p>\r\n<h3>Configuration of the integration\u00a0<\/h3>\r\n<p>There is no GUI to date, you need to add a piece of code in configuration.yaml<\/p>\r\n<p>I added:<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"yaml\">proximity: Lionel: area: home devices: - person.lionel tolerance: 50 _of _measurement unit: km<\/pre>\r\n<p>On this code:<\/p>\r\n<ul>\r\n<li><strong>Lionel:<\/strong> will recover the entity <strong>proximity.lionel<\/strong><\/li>\r\n<li><strong>person.lionel<\/strong> it is the entity of the \u2018lionel\u2019 person who is an Android user who has the application and who is located.<\/li>\r\n<li><strong>tolerance<\/strong> this is the allowance used to calculate the direction of travel in metres (m) to filter out small changes in GPS coordinates. 50 looks good.<\/li>\r\n<li><strong>_of _measurement Unit<\/strong> this is the result display unit, km by default but can also be m, mi, yd or ft<\/li>\r\n<\/ul>\r\n<h3>Result\u00a0<\/h3>\r\n<p><a href=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/08\/proximity2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4839\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/08\/proximity2.png\" alt=\"\" width=\"1049\" height=\"188\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/08\/proximity2.png 1049w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/08\/proximity2-600x108.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/08\/proximity2-300x54.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/08\/proximity2-1024x184.png 1024w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2023\/08\/proximity2-768x138.png 768w\" sizes=\"auto, (max-width: 1049px) 100vw, 1049px\" \/><\/a><\/p>\r\n<p>On this screen, lionel is 15km from home<\/p>\r\n<p><strong>dir_of _travel<\/strong> takes the values<\/p>\r\n<ul>\r\n<li><code>not set<\/code> when there is a problem and it is not active<\/li>\r\n<li><code>arriving<\/code><\/li>\r\n<li>\r\n<p><code>towards<\/code> when the person goes to the target (Home in my example)<\/p>\r\n<\/li>\r\n<li><code>away_from<\/code><\/li>\r\n<li><code>unknown<\/code><\/li>\r\n<li><code>stationary<\/code><\/li>\r\n<\/ul>\r\n<p>&nbsp;<\/p>\r\n<p>&nbsp;<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>Pour cela, j&rsquo;ai d\u00e9couvert une int\u00e9gration qui s&rsquo;appelle Proximit\u00e9 Il n&rsquo;y a rien \u00e0 installer, c&rsquo;est d\u00e9j\u00e0 int\u00e9gr\u00e9 \u00e0 Home Assistant. Ref doc : https:\/\/www.home-assistant.io\/integrations\/proximity Configuration de l&rsquo;int\u00e9gration\u00a0 Il n&rsquo;y a pas d&rsquo;interface graphique \u00e0 ce jour, il faut ajouter un morceau de code dans configuration.yaml J&rsquo;ai ajout\u00e9 : proximity: lionel: zone : home devices: [&hellip;]<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[14,53,166],"tags":[87],"class_list":["post-4832","post","type-post","status-publish","format-standard","hentry","category-domotique","category-home-assistant","category-retex","tag-gps"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts\/4832","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/comments?post=4832"}],"version-history":[{"count":0,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts\/4832\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/media?parent=4832"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/categories?post=4832"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/tags?post=4832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}