Currently we can compare numbers in a Condition sur variables :
Now that we can store and retrieve TEXT data in MQTT, it would be great to have a comparison on TEXT variables :
If we can’t have everything in the same function, I propose having 2 functions :
Condition sur variables numériques
Condition sur variables alphanumériques
Hello,
Do we know whether a request has any chance of being taken into account, and if so, within what timeframe? I’m still blocked by this textual comparison, so it’s a shame
Thank you in any case for Gladys
Hi @jean_bruder ,
Can we talk again about your specific use case on this topic to see if we can do something different in the meantime? I’m sure there are plenty of workarounds so you won’t be blocked
1 Like
Hi everyone
It’s fixed in this PR:
master ← handle-scene-condition-on-variables-text
ouvert 09:07AM - 12 Dec 25 UTC
### 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 ([forum](https://community.gladysassistant.com/)) for testing before merging.
### Description of change
Scene: Condition on variables should allow text comparison
Tested and validated on my side
2 Likes
Available in Gladys Assistant 4.66.2 :
Gladys Assistant 4.66.2 est disponible avec toutes ces nouveautés :
Suivi d’énergie :
Possibilité d’utiliser un Lixee TIC en mode standard
Création en un clic des fonctionnalités dans l’intégration MQTT
Amélioration de la liste de contrats
En bonus :
Correction d’un bug sur le déclencheur de scène « Recevoir un message MQTT » qui ne fonctionnait pas correctement quand le message était vide
Scène : Il est maintenant possible de comparer une fonctionnalité « texte » avec un texte dans le déc…
4 Likes