Hello,
in a scene, I make HTTP requests to 3 URLs.
What I’m interested in in my example is the
tag_name:
I then want to make a
Condition on variables to compare this
tag_name to an MQTT variable previously retrieved:
My problem is that I can’t tell which is which
Yet when we send a message, we can see the differences:
How could we do to differentiate them?
Ah yes, I noticed the same thing when building a scene a few days ago. I thought it would be « just » that the '1’s in the « Condition on variables » should actually be
Hi @mutmut ,
This is clearly a bug/oversight, I’ll fix that
I’ve created a GitHub issue:
ouvert 08:06AM - 19 May 25 UTC
fermé 09:25AM - 19 May 25 UTC
bug
https://community.gladysassistant.com/t/amelioration-des-noms-dans-condition-sur… -variable/9524
I figured out where it came from — it’s a regression that appeared when I implemented the « IF… THEN… ELSE ».
Since the variable names were no longer just X, Y, I adapted that part of the code incorrectly
It’s fixed:
master ← fix-condition-on-variable-variable-path-label
ouvert 09:14AM - 19 May 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 ([french forum](https://community.gladysassistant.com/)/[english forum](https://en-community.gladysassistant.com/)) for testing before merging.
### Description of change
Fix https://github.com/GladysAssistant/Gladys/issues/2312
3 Likes
mutmut
May 19, 2025, 12:14pm
5
thanks @pierre-gilles for the PR !
This is not the right post but it’s in the same vein as my scene.
Now that
The fix is available in Gladys Assistant 4.59 :
1 Like
thanks @pierre-gilles , we can close this post, the renumbering is ok :