Name improvements in "Condition on variable"

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 :frowning:
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 :slight_smile:

I’ve created a GitHub issue:

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 :stuck_out_tongue:

It’s fixed:

3 Likes

thanks @pierre-gilles for the PR !
This is not the right post but it’s in the same vein as my scene.
Now that

No, it

and here it is: [Condition sur variables] : Ajouter la comparaison de variables TEXT

1 Like

The fix is available in Gladys Assistant 4.59 :

1 Like

thanks @pierre-gilles , we can close this post, the renumbering is ok :