# Door opening sensor integration via MQTT

**URL:** <https://community.gladysassistant.com/t/integration-capteur-douverture-de-porte-via-mqtt/6582>\
**Category:** Configuration\
**Created:** [October 10, 2021, 3:16pm UTC](https://community.gladysassistant.com/t/integration-capteur-douverture-de-porte-via-mqtt/6582 "2021-10-10T15:16:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PhilippeMA](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/p/b3f665/32.png) [@PhilippeMA](https://community.gladysassistant.com/u/PhilippeMA)\
**Post date:** [October 10, 2021, 3:16pm UTC](https://community.gladysassistant.com/t/integration-capteur-douverture-de-porte-via-mqtt/6582/1 "2021-10-10T15:16:28Z")

</div>

Hello,

I just installed a door opening sensor via an MQTT integration through node-red (pending the implementation of Zwave-JS). Thanks for the video @pierre-gilles 😉

To declare the sensor, I configured it as a yes/no motion sensor (and not the «&nbsp;straight&nbsp;» motion sensor); I hoped, by integrating it into the dashboard, to have a binary yes/no information (example: Is the door open? No).

However, the dashboard updates the sensor regardless of its state with temporal information about the last update of its state.

How can I get binary information on the dashboard?

---

<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 11, 2021, 1:49am UTC](https://community.gladysassistant.com/t/integration-capteur-douverture-de-porte-via-mqtt/6582/2 "2021-10-11T01:49:05Z")

</div>

A motion sensor is a specific sensor, and therefore in the UI we display the date of the last movement.

In your case, you need to declare your device as «&nbsp;Opening Sensor / Opening (Yes/No)&nbsp;»

 ![Screenshot 2021-10-11 at 09.48.45](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/f/f95915173664e5a3dd76af312783f75a2afdd661.png)
