mutmut
23 Septiembre, 2026 20:39
1
Para llamar a una variable después de una acción Obtener el último estado, hay que poner 2 llaves y un espacio para que aparezcan estas variables: {{
Lamentablemente, el texto explicativo no es lo suficientemente claro y algunos usuarios (incluido yo al principio) pueden no lograrlo.
Sería mejor tener los {{ en texto formateado, sin las comillas o bien poner en toda letra: 2 llaves y un espacio.
¡Gracias por tu respuesta @mutmut , tienes toda la razón!
Al mirar el código, el problema no viene realmente del texto de ayuda: es el campo el que no reacciona como se anuncia. La lista de variables debería abrirse tan pronto como se escribe {{, pero hoy en día espera un carácter más. Funciona con un espacio, pero también con cualquier letra: por ejemplo, {{temp abre directamente la lista filtrada sobre las variables que contienen « temp ».
En lugar de reescribir la ayuda para describir este comportamiento extraño, vamos a corregir el campo: bastará con escribir {{ para ver la lista, como ya dice el texto. La corrección se aplicará a todos los campos de escena que aceptan variables (mensajes, MQTT, solicitudes HTTP, cálculos, condiciones…).
He abierto un issue en GitHub: #3356
Mientras tanto, hay que escribir {{ y luego un espacio, o el comienzo del nombre de la variable
¡Hola a todos!
Este tema ahora está en desarrollo .
Se ha abierto una PR para abrir la lista de variables tan pronto como se escribe {{:
master ← fix/scene-variables-dropdown-on-double-brace
opened 09:05AM - 13 Nov 26 UTC
### Description
In every scene field that accepts variables (message, MQTT, HTT… P request, calculated values, "Only continue if" conditions, set variable, external integration actions…), the help text says *"To inject a variable, type '{{'"*, but typing `{{` alone showed nothing: the list of variables only appeared once a third character was typed.
**Root cause:** `front/src/components/scene/TextWithVariablesInjected.jsx` configured Tagify with `dropdown.enabled: 1`. In mix mode, Tagify 4.5.0 shows the suggestions only when `state.tag.value.length >= dropdown.enabled`, where `state.tag.value` is the text typed **after** the pattern (`{{`). With `1`, `{{` alone (value `""`) never opened the list.
**Fix:** `dropdown.enabled: 0`. This one line fixes every field using the component, and the existing help text becomes accurate without any translation change. In mix mode Tagify never opens the dropdown on focus or on click (both paths are guarded by `mode != "mix"`), so focusing a field, typing plain text or a JSON payload (`{"a": 1`) still shows nothing.
**Regression test:** the external integration scene spec (`SceneExternalIntegration.cy.js`), which already has a trigger variable ("Object type") and a variables-aware text field, now types `{{`, asserts that the dropdown opens and lists the variable, picks it, finishes the text, and checks that the saved caption is `{{triggerEvent.data.label}} detected`. I confirmed the assertion fails on the unfixed code (`.tagify__dropdown` never appears) and passes with the fix.
Out of scope, left as-is: the optional cosmetic rewording of the help text (`'{{'.` → `« {{ »`) mentioned in the issue.
No living spec covers this behavior. `docs/specs/external-integrations/capabilities/scene-triggers-and-actions.md` only references the "type '{{'" help text, which is now accurate.
### Related request
Closes #3356
Forum: https://community.gladysassistant.com/t/modifier-le-texte-pour-utiliser-des-variables/10905
### Checklist
- [x] If a forum topic or GitHub issue exists, the description links it (`Forum: https://community.gladysassistant.com/t/...` or `Closes #...`)
- [x] Tests pass: Cypress (`npm run cypress:run`): full suite, 27 specs, 133/133 passing. Server untouched, so no server coverage run.
- [x] Linter and prettier pass on the front (`npm run prettier-check`, `npm run eslint`: 0 errors, changed files have no warnings). `npm run compare-translations` and `npm run build` pass too.
- [x] No undocumented breaking change
---
_Generated by [Claude Code](https://claude.ai/code/session_01MNjB35SuT5mKERRzVeZt3G)_
No duden en seguir la PR, probar (opcional, especialmente para pequeñas solicitudes) y dar sus comentarios aquí si es necesario.
Hola,
La lista de variables ahora se abre tan pronto como se escribe {{ en un campo de texto de escena. Esto se ha corregido en Gladys Assistant 5.3.3 .
Los detalles están en el anuncio:
¡Hola a todos!
¡Gladys Assistant 5.3.3 está aquí
No te dejes engañar por el número de versión: este lanzamiento se centra casi por completo en un proyecto, Gladys en tu teléfono. Muchos de vosotros consultáis vuestro panel de control en el móvil, pero en cuanto queréis cambiar un widget o una escena, os encontráis con un formulario de escritorio comprimido en una pantalla pequeña. Por eso hemos reconstruido el panel de control y la edición de escenas partiendo del teléfono. En un ordena…