# Mark a user as absent

**URL:** <https://community.gladysassistant.com/t/mettre-absent-un-utilisateur/6347>\
**Category:** Configuration\
**Created:** [May 25, 2021, 12:58pm UTC](https://community.gladysassistant.com/t/mettre-absent-un-utilisateur/6347 "2021-05-25T12:58:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexandre\_MAILLOT](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alexandre_maillot/32/6068_2.png) [@Alexandre\_MAILLOT](https://community.gladysassistant.com/u/Alexandre_MAILLOT)\
**Post date:** [May 25, 2021, 12:58pm UTC](https://community.gladysassistant.com/t/mettre-absent-un-utilisateur/6347/1 "2021-05-25T12:58:59Z")

</div>

Hello,  
So I have a small issue or at least a question about understanding presence management.  
So for the moment, I manage presence through my smartphone.  
I have therefore created an MQTT with a value of 0 or 1 and which is of presence type.

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

I had to create a scene for the user seen at home. As a trigger, I put a change of state of the device which has the mandatory value «&nbsp;if device detected&nbsp;».

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/b/b7df35fd55c3279ecaa9d002172770a432797ae7.png)  
And then as a user action seen.  
But if I have to manage the user’s departure, how do I do it? Because the trigger is necessarily a detected device, there is no «&nbsp;device not detected&nbsp;».

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [May 25, 2021, 2:03pm UTC](https://community.gladysassistant.com/t/mettre-absent-un-utilisateur/6347/2 "2021-05-25T14:03:52Z")

</div>

Hello, you haven’t set the correct type, you need to use a binary presence (as in the documentation)

---

<div class="post-metadata">

**Author:** ![Alexandre\_MAILLOT](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alexandre_maillot/32/6068_2.png) [@Alexandre\_MAILLOT](https://community.gladysassistant.com/u/Alexandre_MAILLOT)\
**Post date:** [May 25, 2021, 2:19pm UTC](https://community.gladysassistant.com/t/mettre-absent-un-utilisateur/6347/3 "2021-05-25T14:19:03Z")

</div>

However, I did set the type as presence and there is no binary presence.

---

<div class="post-metadata">

**Author:** ![Alexandre\_MAILLOT](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alexandre_maillot/32/6068_2.png) [@Alexandre\_MAILLOT](https://community.gladysassistant.com/u/Alexandre_MAILLOT)\
**Post date:** [May 25, 2021, 2:20pm UTC](https://community.gladysassistant.com/t/mettre-absent-un-utilisateur/6347/4 "2021-05-25T14:20:02Z")

</div>

Can I define this type here? Because in the documentation, I can’t see where it’s indicated either.

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [May 25, 2021, 3:04pm UTC](https://community.gladysassistant.com/t/mettre-absent-un-utilisateur/6347/5 "2021-05-25T15:04:18Z")

</div>

In French it’s motion detector yes/no

> **[Open API | Gladys Assistant](https://gladysassistant.com/fr/docs/plus/open-api/)**
>
> Nous proposons l'Open API Gladys Plus pour permettre aux utilisateurs Gladys Plus d'envoyer des requêtes API depuis l'extérieur de leur réseau.

You have an example on the open API that uses MQTT

---

<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:** [May 26, 2021, 2:30am UTC](https://community.gladysassistant.com/t/mettre-absent-un-utilisateur/6347/6 "2021-05-26T02:30:07Z")

</div>

@VonOx I had put «&nbsp;motion detector yes/no&nbsp;» in the tutorial myself.

The presence sensor you chose was designed for Bluetooth integration and has only one value: «&nbsp;present&nbsp;». (absent does not exist in Bluetooth, by definition the absence in the case of Bluetooth being the absence of value: the device is not seen)

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [May 26, 2021, 5:17am UTC](https://community.gladysassistant.com/t/mettre-absent-un-utilisateur/6347/7 "2021-05-26T05:17:56Z")

</div>

I have corrected my post
