# Presence detection via local network

**URL:** <https://community.gladysassistant.com/t/detection-de-presence-via-le-reseau-local/6131>\
**Category:** Demandes livrées\
**Tags:** capteur-présence, feature-integration\
**Created:** [February 24, 2021, 2:47pm UTC](https://community.gladysassistant.com/t/detection-de-presence-via-le-reseau-local/6131 "2021-02-24T14:47:54Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![adrien-cardinale](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/adrien-cardinale/32/6465_2.png) [@adrien-cardinale](https://community.gladysassistant.com/u/adrien-cardinale)\
**Post date:** [February 24, 2021, 2:47pm UTC](https://community.gladysassistant.com/t/detection-de-presence-via-le-reseau-local/6131/1 "2021-02-24T14:47:55Z")

</div>

It would be great to be able to detect the presence of a user when a device is detected on the local network, as in v3. For example, when the phone reconnects to Wi-Fi.

---

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [February 24, 2021, 4:26pm UTC](https://community.gladysassistant.com/t/detection-de-presence-via-le-reseau-local/6131/2 "2021-02-24T16:26:24Z")

</div>

The topic had been raised during the creation of the «&nbsp;Bluetooth search&nbsp;» module.

What had been reported is that now our phones regularly and by default change their MAC addresses (used for Wi-Fi), making it difficult to identify a user.

Otherwise, it would be necessary to try to **detect the phone’s name** on the Wi-Fi network if possible, as proposed by my internet box.

---

<div class="post-metadata">

**Author:** ![adrien-cardinale](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/adrien-cardinale/32/6465_2.png) [@adrien-cardinale](https://community.gladysassistant.com/u/adrien-cardinale)\
**Post date:** [February 25, 2021, 7:43am UTC](https://community.gladysassistant.com/t/detection-de-presence-via-le-reseau-local/6131/3 "2021-02-25T07:43:42Z")

</div>

or you can assign a static IP to a device by IP, it’s not complicated

---

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [February 25, 2021, 8:34am UTC](https://community.gladysassistant.com/t/detection-de-presence-via-le-reseau-local/6131/4 "2021-02-25T08:34:35Z")

</div>

Yes, but it’s also less widespread!  
I think not many people will implement this, is it worth developing this type of module as a priority?

---

<div class="post-metadata">

**Author:** ![Jean34](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/jean34/32/3349_2.png) [@Jean34](https://community.gladysassistant.com/u/Jean34)\
**Post date:** [February 25, 2021, 12:13pm UTC](https://community.gladysassistant.com/t/detection-de-presence-via-le-reseau-local/6131/5 "2021-02-25T12:13:02Z")

</div>

The votes will tell if it’s a priority, for my part no, and if it’s done, it’s better to do it right, setting your IP as fixed is not the solution unlike yours mentioned above, device name (phone)

---

<div class="post-metadata">

**Author:** ![adrien-cardinale](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/adrien-cardinale/32/6465_2.png) [@adrien-cardinale](https://community.gladysassistant.com/u/adrien-cardinale)\
**Post date:** [February 25, 2021, 12:51pm UTC](https://community.gladysassistant.com/t/detection-de-presence-via-le-reseau-local/6131/6 "2021-02-25T12:51:09Z")

</div>

The network solution would be much more practical than Bluetooth once implemented. Everyone always has a phone on them when they leave home, and Bluetooth detection doesn’t necessarily work with all phones.

---

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [February 25, 2021, 1:38pm UTC](https://community.gladysassistant.com/t/detection-de-presence-via-le-reseau-local/6131/7 "2021-02-25T13:38:53Z")

</div>

> [@adrien-cardinale](#):
>
> The network solution would be much more practical than Bluetooth

I agree with your reasoning, though! While you might forget your NUT keychain, it’s less and less likely you’ll forget your phone 😉

---

<div class="post-metadata">

**Author:** ![Jean34](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/jean34/32/3349_2.png) [@Jean34](https://community.gladysassistant.com/u/Jean34)\
**Post date:** [February 25, 2021, 3:57pm UTC](https://community.gladysassistant.com/t/detection-de-presence-via-le-reseau-local/6131/8 "2021-02-25T15:57:53Z")

</div>

I may have expressed myself poorly… Sorry

I’m not saying that this would be a bad feature, if it comes out I would probably use it, what I mean is that, telling the user that they can enable this feature but they will have to set their phone to a fixed IP from their router otherwise it won’t work, well that’s not user-friendly and not in the spirit of Gladys 4.  
So yes, it’s certain that we can make a tutorial for each internet box and router, but it’s still not very very simple for someone who knows absolutely nothing.

---

<div class="post-metadata">

**Author:** ![Thomas\_Parquier](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/thomas_parquier/32/6449_2.png) [@Thomas\_Parquier](https://community.gladysassistant.com/u/Thomas_Parquier)\
**Post date:** [January 10, 2022, 9:29am UTC](https://community.gladysassistant.com/t/detection-de-presence-via-le-reseau-local/6131/9 "2022-01-10T09:29:44Z")

</div>

By mDNS maybe?

---

<div class="post-metadata">

**Author:** ![Checconio](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/checconio/32/19810_2.png) [@Checconio](https://community.gladysassistant.com/u/Checconio)\
**Post date:** [March 30, 2022, 8:06am UTC](https://community.gladysassistant.com/t/detection-de-presence-via-le-reseau-local/6131/10 "2022-03-30T08:06:24Z")

</div>

I just did a test and in my case, my phone doesn’t return its name when queried, after some research this could be related to Android 😕

So unfortunately, mDNS wouldn’t be a reliable solution

---

<div class="post-metadata">

**Author:** ![glasserre](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/g/b5e925/32.png) [@glasserre](https://community.gladysassistant.com/u/glasserre)\
**Post date:** [March 31, 2022, 8:02pm UTC](https://community.gladysassistant.com/t/detection-de-presence-via-le-reseau-local/6131/11 "2022-03-31T20:02:23Z")

</div>

HA proposes presence detection via the Freebox: [Freebox - Home Assistant](https://www.home-assistant.io/integrations/freebox/)  
I find that quite clever.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [June 10, 2022, 1:07pm UTC](https://community.gladysassistant.com/t/detection-de-presence-via-le-reseau-local/6131/12 "2022-06-10T13:07:19Z")

</div>

Hi everyone! What’s the conclusion of this topic?

I know that in v3 phone detection on the local network existed, but since then phones have evolved and are increasingly implementing measures to block this kind of tracking.

Does this request still make sense, or can it be closed to free up the votes?

---

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [June 13, 2022, 4:02pm UTC](https://community.gladysassistant.com/t/detection-de-presence-via-le-reseau-local/6131/13 "2022-06-13T16:02:38Z")

</div>

On Android 12 and 13 in particular, it is possible to set a fixed MAC address on certain Wi-Fi networks.  
So for me it still remains relevant as a complement to other methods, perhaps.

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [January 4, 2023, 2:23pm UTC](https://community.gladysassistant.com/t/detection-de-presence-via-le-reseau-local/6131/14 "2023-01-04T14:23:59Z")

</div>

Hello,  
I’m going to change the subject, not for smartphone detection, but for detection of any device.  
Detect whether a device is powered on, or even perform a Wake-on-LAN…  
Finally, I’m strongly interested in a «&nbsp;complex&nbsp;» management of the LAN.

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [January 7, 2023, 9:03pm UTC](https://community.gladysassistant.com/t/detection-de-presence-via-le-reseau-local/6131/15 "2023-01-07T21:03:21Z")

</div>

For your information, I’ve started a service for discovering devices on the network.  
I will keep you informed as soon as I have a testable version.

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [January 8, 2023, 11:20am UTC](https://community.gladysassistant.com/t/detection-de-presence-via-le-reseau-local/6131/16 "2023-01-08T11:20:14Z")

</div>

I’m not very happy with the image representing the service I set up.

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/c/c41725d60b22a901c0ee1b838321a685366fdec0.png)

If any of you feel inspired to make me a nice image, I’m interested 🙂

---

<div class="post-metadata">

**Author:** ![guim31](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/guim31/32/4840_2.png) [@guim31](https://community.gladysassistant.com/u/guim31)\
**Post date:** [January 8, 2023, 12:19pm UTC](https://community.gladysassistant.com/t/detection-de-presence-via-le-reseau-local/6131/17 "2023-01-08T12:19:45Z")

</div>

I’ll try it this afternoon to see 👍  
@AlexTrovato do you need a specific size / aspect ratio / resolution? Any particular file format?

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [January 8, 2023, 12:30pm UTC](https://community.gladysassistant.com/t/detection-de-presence-via-le-reseau-local/6131/18 "2023-01-08T12:30:19Z")

</div>

I noted this down =\> JPG 800x534  
Especially with a white background 😉  
Thanks

---

<div class="post-metadata">

**Author:** ![guim31](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/guim31/32/4840_2.png) [@guim31](https://community.gladysassistant.com/u/guim31)\
**Post date:** [January 8, 2023, 1:56pm UTC](https://community.gladysassistant.com/t/detection-de-presence-via-le-reseau-local/6131/19 "2023-01-08T13:56:04Z")

</div>

Would something like this do?

 ![lan_presence](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/b/bb22197b5e8e58937ed2a062c642b5df192f5433.jpeg)

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [January 8, 2023, 2:33pm UTC](https://community.gladysassistant.com/t/detection-de-presence-via-le-reseau-local/6131/20 "2023-01-08T14:33:07Z")

</div>

I’m not too excited about this one, the Ethernet port is fine, but I find it doesn’t show the «&nbsp;local network&nbsp;» enough.  
But it can also be decided by vote (by the little heart on the image).

[Next page](https://community.gladysassistant.com/t/detection-de-presence-via-le-reseau-local/6131.md?page=2)
