# Retrieve an MQTT device's state later

**URL:** <https://community.gladysassistant.com/t/recuperer-en-differe-l-etat-dun-appareil-mqtt/7818>\
**Category:** Configuration\
**Created:** [January 4, 2023, 9:48pm UTC](https://community.gladysassistant.com/t/recuperer-en-differe-l-etat-dun-appareil-mqtt/7818 "2023-01-04T21:48:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bong101](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/bong101/32/9808_2.png) [@bong101](https://community.gladysassistant.com/u/bong101)\
**Post date:** [January 4, 2023, 9:48pm UTC](https://community.gladysassistant.com/t/recuperer-en-differe-l-etat-dun-appareil-mqtt/7818/1 "2023-01-04T21:48:03Z")

</div>

It’s me again…

In the MQTT integration, I registered a device with the Switch feature.

I would like to be able to query the state of this device by running a job regularly, but it doesn’t work, which is normal, because you first have to be subscribed to the topics to see what passes through them, which I don’t want to do.

Do you

---

<div class="post-metadata">

**Author:** ![bong101](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/bong101/32/9808_2.png) [@bong101](https://community.gladysassistant.com/u/bong101)\
**Post date:** [January 6, 2023, 3:44pm UTC](https://community.gladysassistant.com/t/recuperer-en-differe-l-etat-dun-appareil-mqtt/7818/2 "2023-01-06T15:44:54Z")

</div>

I’m replying to myself

The solution came through Node-RED… I didn’t want to get into it, then I saw Pierre-Gilles’ video…  
with 2 "boxes
