# Alarm activation with presence detector

**URL:** <https://community.gladysassistant.com/t/activation-alarme-avec-detecteur-de-presence/8041>\
**Category:** Configuration\
**Created:** [March 24, 2023, 8:05am UTC](https://community.gladysassistant.com/t/activation-alarme-avec-detecteur-de-presence/8041 "2023-03-24T08:05:43Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bruno94](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/b/f17d59/32.png) [@Bruno94](https://community.gladysassistant.com/u/Bruno94)\
**Post date:** [March 24, 2023, 8:05am UTC](https://community.gladysassistant.com/t/activation-alarme-avec-detecteur-de-presence/8041/1 "2023-03-24T08:05:43Z")

</div>

Hello everyone,

Is there anyone who uses a Bluetooth presence detector to arm/disarm their alarm?

Because it seems that by the time Gladys detects the person’s presence and turns off the alarm, the alarm has time to blare in our ears 🙈 😂

---

<div class="post-metadata">

**Author:** ![Hizo](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/h/51bf81/32.png) [@Hizo](https://community.gladysassistant.com/u/Hizo)\
**Post date:** [March 24, 2023, 10:51am UTC](https://community.gladysassistant.com/t/activation-alarme-avec-detecteur-de-presence/8041/2 "2023-03-24T10:51:16Z")

</div>

Hi,

you can add the action «&nbsp;wait&nbsp;» to presence detection before triggering the alarm.

That gives gladyss a bit of time to detect your presence.

---

<div class="post-metadata">

**Author:** ![Bruno94](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/b/f17d59/32.png) [@Bruno94](https://community.gladysassistant.com/u/Bruno94)\
**Post date:** [March 24, 2023, 12:02pm UTC](https://community.gladysassistant.com/t/activation-alarme-avec-detecteur-de-presence/8041/3 "2023-03-24T12:02:43Z")

</div>

@Hizo Hello, yes, indeed that’s a solution but I think people tend to deactivate it with the alarm’s keypad or remote control. I think managing the alarm with Gladys in presence-detection mode is more relevant when leaving the home to be sure not to forget it and to possibly receive a message confirming that it is activated.

---

<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:** [March 24, 2023, 1:07pm UTC](https://community.gladysassistant.com/t/activation-alarme-avec-detecteur-de-presence/8041/4 "2023-03-24T13:07:55Z")

</div>

I’m asking myself the same kind of question but I still don’t know what’s the most reliable / practical for detecting presence:

- Bluetooth key (Nut type)
- detection via the local network (coming soon 😉 )
- detection via owntracks / geolocation

---

<div class="post-metadata">

**Author:** ![cicoub13](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/cicoub13/32/4482_2.png) [@cicoub13](https://community.gladysassistant.com/u/cicoub13)\
**Post date:** [March 24, 2023, 1:28pm UTC](https://community.gladysassistant.com/t/activation-alarme-avec-detecteur-de-presence/8041/5 "2023-03-24T13:28:08Z")

</div>

I use the wifi (custom script) to detect my wife’s phone and Owntracks for me (with a radius of 100 m).  
Surprisingly, the wifi is more responsive.  
Coupled with presence scenes + an alarm scene triggered by a door contact sensor.  
Very few false positives (but I only receive a Telegram notification, so it’s not the same as a siren)

---

<div class="post-metadata">

**Author:** ![Bruno94](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/b/f17d59/32.png) [@Bruno94](https://community.gladysassistant.com/u/Bruno94)\
**Post date:** [March 24, 2023, 1:34pm UTC](https://community.gladysassistant.com/t/activation-alarme-avec-detecteur-de-presence/8041/6 "2023-03-24T13:34:01Z")

</div>

@guim31 I recently bought the NUT key fob and it is perfectly recognized in Gladys. It works well for simple presence detection but with a latency of at least 1 minute before showing «&nbsp;present&nbsp;» or «&nbsp;absent&nbsp;», hence my concern about alarm management via a

---

<div class="post-metadata">

**Author:** ![Hizo](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/h/51bf81/32.png) [@Hizo](https://community.gladysassistant.com/u/Hizo)\
**Post date:** [March 24, 2023, 2:02pm UTC](https://community.gladysassistant.com/t/activation-alarme-avec-detecteur-de-presence/8041/7 "2023-03-24T14:02:30Z")

</div>

I wrote a Wi‑Fi detection script using the Freebox API; it works pretty well but I’m still testing it.

---

<div class="post-metadata">

**Author:** ![Bruno94](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/b/f17d59/32.png) [@Bruno94](https://community.gladysassistant.com/u/Bruno94)\
**Post date:** [March 24, 2023, 2:15pm UTC](https://community.gladysassistant.com/t/activation-alarme-avec-detecteur-de-presence/8041/8 "2023-03-24T14:15:22Z")

</div>

Any Freebox model?

---

<div class="post-metadata">

**Author:** ![Hizo](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/h/51bf81/32.png) [@Hizo](https://community.gladysassistant.com/u/Hizo)\
**Post date:** [March 24, 2023, 2:18pm UTC](https://community.gladysassistant.com/t/activation-alarme-avec-detecteur-de-presence/8041/9 "2023-03-24T14:18:28Z")

</div>

I think… all those with the API, so at least from the revolution onward.

I plan to make a tutorial about it.

---

<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:** [March 24, 2023, 3:11pm UTC](https://community.gladysassistant.com/t/activation-alarme-avec-detecteur-de-presence/8041/10 "2023-03-24T15:11:19Z")

</div>

Thanks for your feedback. I think the simplest option for me will be detection via the local network, since my phone connects to Wi-Fi while I’m still in my car so the timing would be right.  
The downside is if my Livebox is down (although that shouldn’t bring down the local network)… so if necessary I’ll have to

---

<div class="post-metadata">

**Author:** ![GBoulvin](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/gboulvin/32/10006_2.png) [@GBoulvin](https://community.gladysassistant.com/u/GBoulvin)\
**Post date:** [March 24, 2023, 4:49pm UTC](https://community.gladysassistant.com/t/activation-alarme-avec-detecteur-de-presence/8041/11 "2023-03-24T16:49:02Z")

</div>

I scan an RFID badge that opens the gate, deactivates the alarm, turns on the light, marks a user as present (the others are marked with a delay but that’s not a problem), starts the heating, etc.

---

<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:** [March 24, 2023, 5:09pm UTC](https://community.gladysassistant.com/t/activation-alarme-avec-detecteur-de-presence/8041/12 "2023-03-24T17:09:53Z")

</div>

That’s clever, but does that mean you can stay in your car to scan your badge?

In front of my gate I have… the road ^^ I can’t install an RFID receiver ^^

---

<div class="post-metadata">

**Author:** ![GBoulvin](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/gboulvin/32/10006_2.png) [@GBoulvin](https://community.gladysassistant.com/u/GBoulvin)\
**Post date:** [March 24, 2023, 5:25pm UTC](https://community.gladysassistant.com/t/activation-alarme-avec-detecteur-de-presence/8041/13 "2023-03-24T17:25:22Z")

</div>

A camera, optical license-plate recognition and there you go! 🤠  
But more seriously, an RF433 code or a ZigBee button…

---

<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:** [March 24, 2023, 6:58pm UTC](https://community.gladysassistant.com/t/activation-alarme-avec-detecteur-de-presence/8041/14 "2023-03-24T18:58:08Z")

</div>

> [@GBoulvin](#):
>
> A camera, optical license plate recognition and there you go!

I thought of that, go figure 🤣

---

<div class="post-metadata">

**Author:** ![Bruno94](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/b/f17d59/32.png) [@Bruno94](https://community.gladysassistant.com/u/Bruno94)\
**Post date:** [March 25, 2023, 8:33am UTC](https://community.gladysassistant.com/t/activation-alarme-avec-detecteur-de-presence/8041/15 "2023-03-25T08:33:44Z")

</div>

@Hizo I’m interested in the tutorial 👍

---

<div class="post-metadata">

**Author:** ![Hizo](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/h/51bf81/32.png) [@Hizo](https://community.gladysassistant.com/u/Hizo)\
**Post date:** [March 25, 2023, 9:36am UTC](https://community.gladysassistant.com/t/activation-alarme-avec-detecteur-de-presence/8041/16 "2023-03-25T09:36:50Z")

</div>

> [@\[Tuto\] Bash et Téléphone connecté au WI-FI +/- Freebox](https://community.gladysassistant.com/t/tuto-bash-et-telephone-connecte-au-wi-fi-freebox/8045):
>
> Bonjour, je vous propose un tuto sur la surveillance de la présence d’un téléphone connecté au WI-FI et d’envoyer l’état à Gladys via MQTT. Je propose 2 versions : Avec nmap (fonctionnel avec toutes les box) Avec l’API Freebox avec ou non nmap dans un second temps. Le tout sur un Raspberry. TUTO n°3 : Indiquer la présence d’un utilisateur via le WI-FI de son téléphone. Côté Gladys : Création de l’appareil MQTT : Nom : Téléphone connecté au WIFI Id externe : mqtt:Salle:PhoneConnecte…
