# An MQTT topic of type 'text' is no longer 'controllable' in a scene

**URL:** <https://community.gladysassistant.com/t/un-topic-mqtt-de-type-texte-nest-plus-controlable-dans-une-scene/8719>\
**Category:** Développement\
**Created:** [February 11, 2024, 11:08am UTC](https://community.gladysassistant.com/t/un-topic-mqtt-de-type-texte-nest-plus-controlable-dans-une-scene/8719 "2024-02-11T11:08:43Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![StephaneB](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/stephaneb/32/15443_2.png) [@StephaneB](https://community.gladysassistant.com/u/StephaneB)\
**Post date:** [February 11, 2024, 11:08am UTC](https://community.gladysassistant.com/t/un-topic-mqtt-de-type-texte-nest-plus-controlable-dans-une-scene/8719/1 "2024-02-11T11:08:43Z")

</div>

Hello @pierre-gilles (and also @jgcb00 and @alpha-rd who were involved in the original topic…)

I’m following up on the fixes made regarding the topic [Bug/Amélioration Température de consigne](https://community.gladysassistant.com/t/bug-amelioration-temperature-de-consigne/8586/25) :

Actually, numeric or boolean topics seem to work fine. However, the text-type topic is no longer usable 😉 Here are the two behaviors in the action ‹&nbsp;control a device&nbsp;› :

- if I try to enter a text as a ’ simple ’ value (for example «&nbsp;abc&nbsp;»), the error «&nbsp;An error occurred while saving your scene. Please check that all actions / triggers are filled and correct.&nbsp;» appears when I save the scene
- if I enter a text as a ’ calculated ’ value (for example also «&nbsp;abc&nbsp;»), the scene saves fine, but the MQTT topic value is not changed when the scene executes (I check this later in the scene with the action ‹&nbsp;retrieve last state&nbsp;›…)

Thanks in advance for the fix you can include in a future Gladys release 😉

---

<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:** [February 11, 2024, 3:22pm UTC](https://community.gladysassistant.com/t/un-topic-mqtt-de-type-texte-nest-plus-controlable-dans-une-scene/8719/2 "2024-02-11T15:22:10Z")

</div>

Well spotted! Can you create a GitHub issue on the Gladys repo?

---

<div class="post-metadata">

**Author:** ![StephaneB](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/stephaneb/32/15443_2.png) [@StephaneB](https://community.gladysassistant.com/u/StephaneB)\
**Post date:** [February 11, 2024, 5:32pm UTC](https://community.gladysassistant.com/t/un-topic-mqtt-de-type-texte-nest-plus-controlable-dans-une-scene/8719/3 "2024-02-11T17:32:27Z")

</div>

I can try. Never done it before 😉 Is there a doc/tutorial that explains how to access it and how it is recommended to write it?

---

<div class="post-metadata">

**Author:** ![StephaneB](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/stephaneb/32/15443_2.png) [@StephaneB](https://community.gladysassistant.com/u/StephaneB)\
**Post date:** [February 11, 2024, 6:44pm UTC](https://community.gladysassistant.com/t/un-topic-mqtt-de-type-texte-nest-plus-controlable-dans-une-scene/8719/4 "2024-02-11T18:44:12Z")

</div>

Okay, I did it, inspired by [Tag on scene feature: When all scenes of a tag are only disabled, the tag is deleted · Issue #2000 · GladysAssistant/Gladys · GitHub](https://github.com/GladysAssistant/Gladys/issues/2000)  
I’ll let you tell me if the format/content isn’t quite what you need.

---

<div class="post-metadata">

**Author:** ![StephaneB](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/stephaneb/32/15443_2.png) [@StephaneB](https://community.gladysassistant.com/u/StephaneB)\
**Post date:** [February 11, 2024, 6:44pm UTC](https://community.gladysassistant.com/t/un-topic-mqtt-de-type-texte-nest-plus-controlable-dans-une-scene/8719/5 "2024-02-11T18:44:29Z")

</div>

> <https://github.com/GladysAssistant/Gladys/issues/2026>
>
> Related to the subject : \[Un topic MQTT de type ‘texte’ n’est plus ‘contrôlable’… dans une scène\](https://community.gladysassistant.com/t/un-topic-mqtt-de-type-texte-nest-plus-controlable-dans-une-scene/8719)
> 
> \*\*Describe the bug\*\*
> When a MQTT topic is created in Gladys with the type 'text', this topic can not be modified from a scene with the action "Controler un appareil". There are two different bahaviour (and both are not the expected behaviour):
> 
> \- if I try to define a 'simple' value, the scene can not be saved
> \- if I try define a 'calculated' value, the scene is correctly saved, but the topic is not modifier when the scene is executed

---

<div class="post-metadata">

**Author:** ![Terdious](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/terdious/32/6316_2.png) [@Terdious](https://community.gladysassistant.com/u/Terdious)\
**Post date:** [February 11, 2024, 7:17pm UTC](https://community.gladysassistant.com/t/un-topic-mqtt-de-type-texte-nest-plus-controlable-dans-une-scene/8719/6 "2024-02-11T19:17:28Z")

</div>

That looks very good for an issue @StephaneB.

You specified the topic well on the Gladys community, that’s great.

Thanks

---

<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:** [February 12, 2024, 8:14am UTC](https://community.gladysassistant.com/t/un-topic-mqtt-de-type-texte-nest-plus-controlable-dans-une-scene/8719/7 "2024-02-12T08:14:37Z")

</div>

Thanks @StephaneB 🙂 I changed the title for clarity, but what you did was really good 👍

---

<div class="post-metadata">

**Author:** ![StephaneB](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/stephaneb/32/15443_2.png) [@StephaneB](https://community.gladysassistant.com/u/StephaneB)\
**Post date:** [March 4, 2024, 10:13pm UTC](https://community.gladysassistant.com/t/un-topic-mqtt-de-type-texte-nest-plus-controlable-dans-une-scene/8719/8 "2024-03-04T22:13:48Z")

</div>

@pierre-gilles I’m just checking in about this little bug, simply because I don’t know whether issues on GitHub are handled on a set schedule or whether there is no particular rule… I’d be happy to see this little bug fixed at some point, if it’s not too complicated to do 😉

---

<div class="post-metadata">

**Author:** ![StephaneB](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/stephaneb/32/15443_2.png) [@StephaneB](https://community.gladysassistant.com/u/StephaneB)\
**Post date:** [March 4, 2024, 10:26pm UTC](https://community.gladysassistant.com/t/un-topic-mqtt-de-type-texte-nest-plus-controlable-dans-une-scene/8719/9 "2024-03-04T22:26:00Z")

</div>

Just to clarify: no pressure! It’s more to anticipate whether a correction might arrive in a few days/weeks, or whether it could take a few months so I can plan to do without it… I can well imagine that with all the aspects to manage in parallel (training, new features, corrections, …) you need to make choices.

---

<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:** [March 5, 2024, 8:01am UTC](https://community.gladysassistant.com/t/un-topic-mqtt-de-type-texte-nest-plus-controlable-dans-une-scene/8719/10 "2024-03-05T08:01:27Z")

</div>

Hi @StephaneB,

There are no specific rules, we’re an open-source project, and any contributor on this forum can decide to take it on. If someone drops by and wants to take care of it… 🙂

---

<div class="post-metadata">

**Author:** ![StephaneB](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/stephaneb/32/15443_2.png) [@StephaneB](https://community.gladysassistant.com/u/StephaneB)\
**Post date:** [March 5, 2024, 9:02pm UTC](https://community.gladysassistant.com/t/un-topic-mqtt-de-type-texte-nest-plus-controlable-dans-une-scene/8719/11 "2024-03-05T21:02:07Z")

</div>

Ok, thanks for the reply. I’m keeping my fingers crossed that one of you will agree to fix this little issue at some point 😉

---

<div class="post-metadata">

**Author:** ![zedyxer](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/zedyxer/32/13458_2.png) [@zedyxer](https://community.gladysassistant.com/u/zedyxer)\
**Post date:** [March 7, 2024, 9:44am UTC](https://community.gladysassistant.com/t/un-topic-mqtt-de-type-texte-nest-plus-controlable-dans-une-scene/8719/12 "2024-03-07T09:44:52Z")

</div>

Hello

I happened to come across this very interesting thread. In fact, I tried to create a virtual MQTT text to send emails via Node-RED. Indeed, it’s impossible to send a text via MQTT; I’d welcome a solution to this 🙂

---

<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:** [March 8, 2024, 8:35am UTC](https://community.gladysassistant.com/t/un-topic-mqtt-de-type-texte-nest-plus-controlable-dans-une-scene/8719/13 "2024-03-08T08:35:56Z")

</div>

Hi @StephaneB @zedyxer, I investigated this this morning — it’s actually not a regression, there was never any development on this subject. I looked at the code, it’s impossible that it worked, it was never coded 😛 (or I missed something)

What has been developed is that it is possible to create a «&nbsp;text&nbsp;» type sensor in the MQTT integration:

 ![Screenshot 2024-03-08 at 09.30.11](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/0/0773515542ba304eddc242b7ffc76ecc2815d825.png)

With the following functionality: (be careful, it must be a «&nbsp;sensor&nbsp;»):

 ![Screenshot 2024-03-08 at 09.30.29](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/e/e8582906800a214f1e1dc277d11f925d7b6a3468.png)

Then, on the dashboard, this «&nbsp;text&nbsp;» sensor can be displayed:

 ![Screenshot 2024-03-08 at 09.31.00](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/8/81ec5303c071e92ee77255d18a75812581920496.png)

The value of this sensor can be modified via MQTT using our MQTT API:

```auto
Topic: gladys/master/device/:device_external_id/feature/:device_feature_external_id/text
Body: Magnificent

```

Source: Documentation → [MQTT API | Gladys Assistant](https://gladysassistant.com/fr/docs/api/mqtt-api/)

This can also be modified in Gladys via the scene action «&nbsp;send an MQTT message&nbsp;»:

 ![Screenshot 2024-03-08 at 09.32.54](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/5/5ba2d8f08073cebabf9587dd59961787dff30863.png)

(Or externally via Node-RED or other)

The MQTT topic comes from the feature page in the MQTT integration:

 ![Screenshot 2024-03-08 at 09.33.33](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/0/0eef1495208ade1149aaaf09ecbe2d9348f5af47.png)

Control via the «&nbsp;Control a device&nbsp;» action has not been developed. That can be changed, but it’s a development effort (not a simple fix).

If you ever want this feature, I invite you to create a feature request, with an explanation of the need so we can better understand what you’re trying to do 🙂

Also, I feel that with what I’ve explained in this post you already have enough to work with 😃

---

<div class="post-metadata">

**Author:** ![StephaneB](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/stephaneb/32/15443_2.png) [@StephaneB](https://community.gladysassistant.com/u/StephaneB)\
**Post date:** [March 8, 2024, 7:13pm UTC](https://community.gladysassistant.com/t/un-topic-mqtt-de-type-texte-nest-plus-controlable-dans-une-scene/8719/14 "2024-03-08T19:13:14Z")

</div>

Thank you for this analysis. I’ll take a look over the weekend at the suggestions you gave, I’ll send you feedback that you’ll find when you return from vacation 😉

---

<div class="post-metadata">

**Author:** ![StephaneB](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/stephaneb/32/15443_2.png) [@StephaneB](https://community.gladysassistant.com/u/StephaneB)\
**Post date:** [March 9, 2024, 10:28am UTC](https://community.gladysassistant.com/t/un-topic-mqtt-de-type-texte-nest-plus-controlable-dans-une-scene/8719/15 "2024-03-09T10:28:51Z")

</div>

@pierre
