MQTT with text values

Hello everyone,
I have been using for several months a box bought on the net that allows me to control my Somfy shutters via an MQTT broker but the box code (an ESP with a well-crafted code that I struggle to decipher) only accepts text requests:
U for Up
D for Down
S for Stop
P for Program
For the moment it goes through the mosquitto broker but it crashes sometimes, too often!
However, all MQTT devices available under Gladys seem to only accept numerical values.
Am I wrong? Is this a possible evolution?
Thanks for your help.
Tiboys

Do you have the code for the ESP @tiboys?

Hello,

Indeed, the MQTT message can only be a float. Moreover, in your case, there is no device of type UP/DOWN.

It is necessary to convert the « specific values » into Gladys values (ex. BUTTON_STATUS.CLICK = 1).

R.

Thank you for your help.