mutmut
19. Mai 2025 um 18:57
1
Aktuell kann man Zahlen bei einer Bedingung für Variablen vergleichen:
Jetzt, wo man TEXT-Daten in MQTT speichern und abrufen kann, wäre es toll, einen Vergleich für TEXT-Variablen zu haben:
Falls nicht alles in derselben Funktion möglich ist, schlage ich zwei Funktionen vor:
Bedingung für numerische Variablen
Bedingung für alphanumerische Variablen
Hallo,
Weiß man, ob eine Anfrage berücksichtigt wird, und wenn ja, in welchem Zeitraum? Ich hänge nämlich an diesem Textvergleich fest, das ist schade
Danke euch trotzdem für Gladys
Hallo @jean_bruder ,
Können wir nochmal über deinen konkreten Anwendungsfall in diesem Thema sprechen, um zu sehen, ob wir nicht anders vorgehen können, bis dahin? Ich bin sicher, es gibt viele Workarounds, damit du nicht blockiert bist
Hallo zusammen
Das ist in diesem PR korrigiert:
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
Bei mir getestet und bestätigt
Verfügbar 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…