# Motion detector on the dashboard

**URL:** <https://community.gladysassistant.com/t/detecteur-de-mouvement-sur-le-dashboard/6565>\
**Category:** Configuration\
**Created:** [October 6, 2021, 6:01am UTC](https://community.gladysassistant.com/t/detecteur-de-mouvement-sur-le-dashboard/6565 "2021-10-06T06:01:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jean-Philippe](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/j/5fc32e/32.png) [@Jean-Philippe](https://community.gladysassistant.com/u/Jean-Philippe)\
**Post date:** [October 6, 2021, 6:01am UTC](https://community.gladysassistant.com/t/detecteur-de-mouvement-sur-le-dashboard/6565/1 "2021-10-06T06:01:05Z")

</div>

Hello,

I have displayed a motion sensor on the dashboard, which is of type BINARY, so I have set the value to 1 for motion and 0 for no motion on the enocean integration side.

On the HMI side, I have the estimated time since the last value, but not really the state:

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

The toggle on the room header does not move. (in the screenshot, there has just been a movement in this case)

---

<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:** [October 6, 2021, 6:36am UTC](https://community.gladysassistant.com/t/detecteur-de-mouvement-sur-le-dashboard/6565/2 "2021-10-06T06:36:23Z")

</div>

The approach taken with this display was that the motion detectors were in «&nbsp;push&nbsp;» mode; they only send «&nbsp;1&nbsp;» when a movement is detected.

Thus, the display shows when the last movement was detected 🙂

However, if you send "0"s, it doesn’t work.

**Two possibilities:**

- Either you modify your integration to only send "1"s
- Or you need to develop a different display for this type of motion sensor that sends both, and handle the case. Then, we’ll see what makes sense to display: The date of the last movement? The current state?

---

<div class="post-metadata">

**Author:** ![Jean-Philippe](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/j/5fc32e/32.png) [@Jean-Philippe](https://community.gladysassistant.com/u/Jean-Philippe)\
**Post date:** [October 8, 2021, 7:52pm UTC](https://community.gladysassistant.com/t/detecteur-de-mouvement-sur-le-dashboard/6565/3 "2021-10-08T19:52:11Z")

</div>

Ok, I understand, that seems logical in this case, I’m happy to change to only send 1.  
But how do I handle it in a scene if, in my case, I want to turn off a light when there is no more movement?

I think this relates to this request:

> [@Ajout de la durée de non détection dans les scenes](https://community.gladysassistant.com/t/demande-de-rajout-de-la-duree-de-non-detection-dans-les-scenes/6478):
>
> Bonjour, J’ai un problème pour une scène d’extinction différée lié à un détecteur de mouvement. Dans ma scène, je la mets en attente X minutes avant d’éteindre les lumières. Si pendant ce laps de temps i: y a eu une détection j’aurais voulu réinitialiser la scène d’arrêt et donc éviter une extinction trop proche de la détection et une autre extinction qui servirait à rien. Je vois deux fonctionnalités possibles pour résoudre mon problème. Soit permettre dans une scène A d’arrêter la scène …

But by the way, on the Device State Change trigger, this would never change?

---

<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:** [October 8, 2021, 11:57pm UTC](https://community.gladysassistant.com/t/detecteur-de-mouvement-sur-le-dashboard/6565/4 "2021-10-08T23:57:14Z")

</div>

Indeed, this is a case we don’t handle yet 🙂

The idea will be to create a trigger «&nbsp;when the motion detector has not returned a value for x duration&nbsp;»

---

<div class="post-metadata">

**Author:** ![Jean-Philippe](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/j/5fc32e/32.png) [@Jean-Philippe](https://community.gladysassistant.com/u/Jean-Philippe)\
**Post date:** [October 9, 2021, 8:02am UTC](https://community.gladysassistant.com/t/detecteur-de-mouvement-sur-le-dashboard/6565/5 "2021-10-09T08:02:13Z")

</div>

Yes, absolutely, I was thinking about that.

@pierre-gilles I probably missed this information, but for BINARY types like Motion sensors or Windows sensors, 1 = ON and 0 = OFF?
