Modify text to use variables

To call a variable after an action Get the last state, you need to put 2 curly braces and a space to see these variables: {{
Unfortunately, the explanatory text is not explicit enough and some users (including myself at the beginning) may not be able to do it.

It would be better to have the {{ in formatted text, without the apostrophes or to write in full: 2 curly braces and a space.

Thanks for your feedback @mutmut, you’re absolutely right!

Looking at the code, the issue isn’t really with the help text: it’s the field that doesn’t behave as advertised. The variable list should open as soon as you type {{, but today it waits for an extra character. It works with a space, but also with any letter: for example, {{temp directly opens the filtered list of variables containing “temp”.

Rather than rewriting the help to describe this odd behavior, we’re going to fix the field: you’ll just need to type {{ to see the list, as the text already says. The fix will apply to all scene fields that accept variables (messages, MQTT, HTTP requests, calculations, conditions
).

I’ve opened an issue on GitHub: #3356

In the meantime, you’ll need to type {{ then a space, or the beginning of the variable name :slightly_smiling_face:

Hi everyone!

This topic is now in development.

A PR has been opened to open the list of variables as soon as you type {{:

Don’t hesitate to follow the PR, to test (optional, especially for small requests) and to give your feedback here if needed.

Hello,

The list of variables now opens as soon as you type {{ in a scene text field. This is fixed in Gladys Assistant 5.3.3.

The details are in the announcement: