# Retrieve a "text" value from MQTT

**URL:** <https://community.gladysassistant.com/t/recuperer-une-valeur-text-depuis-mqtt/9472>\
**Category:** Demandes livrées\
**Tags:** mqtt\
**Created:** [April 9, 2025, 11:59am UTC](https://community.gladysassistant.com/t/recuperer-une-valeur-text-depuis-mqtt/9472 "2025-04-09T11:59:18Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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 9, 2025, 11:03am UTC](https://community.gladysassistant.com/t/recuperer-une-valeur-text-depuis-mqtt/9472/4 "2025-05-09T11:03:56Z")

</div>

Hi @mutmut 🙂

I was sure it was already possible, but a few lines of code were missing to make it work.

It’s fixed!

If I configure a feature with a custom MQTT topic :

 ![Screenshot 2025-05-09 at 13.02.29](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/0/1/01ac4c6dc300e65cd13d7197a9480719b8222c08.png)

When I send a message on this custom topic :

 ![Screenshot 2025-05-09 at 12.58.31](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/e/3/e368029327d9bdd0d64de058c38fab2ef1bfec43.png)

I can see this text on my dashboard :

 ![Screenshot 2025-05-09 at 12.58.40](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/f/4/f42a23597c9d5867634d305b67eee0233de34ccf.png)

The PR :

> <https://github.com/GladysAssistant/Gladys/pull/2297>
>
> \### Pull Request check-list
> 
> To ensure your Pull Request can be accepted as fa…st as possible, make sure to review and check all of these items:
> 
> \- \[x\] If your changes affects code, did your write the tests?
> \- \[x\] Are tests passing? (\`npm test\` on both front/server)
> \- \[x\] Is the linter passing? (\`npm run eslint\` on both front/server)
> \- \[x\] Did you run prettier? (\`npm run prettier\` on both front/server)
> \- \[x\] If you are adding a new features/services, did you run integration comparator? (\`npm run compare-translations\` on front)
> \- \[x\] Did you test this pull request in real life? With real devices? If this development is a big feature or a new service, we recommend that you provide a Docker image to the community (\[french forum\](https://community.gladysassistant.com/)/\[english forum\](https://en-community.gladysassistant.com/)) for testing before merging.
> 
> \### Description of change
> 
> https://community.gladysassistant.com/t/recuperer-une-valeur-text-depuis-mqtt/9472

---

_[View the full topic](https://community.gladysassistant.com/t/recuperer-une-valeur-text-depuis-mqtt/9472)._
