# Bug or regression? Variables now incorrect

**URL:** <https://community.gladysassistant.com/t/bug-ou-regression-variables-devenues-incorrectes/8451>\
**Category:** Développement\
**Created:** [November 2, 2023, 7:47am UTC](https://community.gladysassistant.com/t/bug-ou-regression-variables-devenues-incorrectes/8451 "2023-11-02T07:47:08Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [November 2, 2023, 7:47am UTC](https://community.gladysassistant.com/t/bug-ou-regression-variables-devenues-incorrectes/8451/1 "2023-11-02T07:47:08Z")

</div>

Hi @pierre-gilles,

This morning I created a new scene for «&nbsp;Gladys starts&nbsp;» and I took the opportunity to update my «&nbsp;intrusion detection&nbsp;» scene.  
But to my great surprise, my variables were turned into text and therefore no longer appear in the final message sent on Telegram.

The last line allows comparison of what should have been displayed:

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/1/1f94b8910a950a08c883ec17e6e4d7ce7c2a67a7.png)

I went through Gladys Plus and reloaded the page several times just in case. A trigger test also confirms that the variables here are in error.  
Same behavior locally.

---

<div class="post-metadata">

**Author:** ![guim31](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/guim31/32/4840_2.png) [@guim31](https://community.gladysassistant.com/u/guim31)\
**Post date:** [November 2, 2023, 7:56am UTC](https://community.gladysassistant.com/t/bug-ou-regression-variables-devenues-incorrectes/8451/2 "2023-11-02T07:56:18Z")

</div>

Wouldn’t you just need to add a space in the variable’s syntax? I find it surprising that it’s displayed like this :

{{0.11.lastvalue}}

Should be :

{{ 0.11.lastvalue }}

---

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [November 2, 2023, 7:56am UTC](https://community.gladysassistant.com/t/bug-ou-regression-variables-devenues-incorrectes/8451/3 "2023-11-02T07:56:52Z")

</div>

It’s a scene that has existed for several months and was working.  
I don’t know since when it was «&nbsp;modified&nbsp;», maybe because of the update?

---

<div class="post-metadata">

**Author:** ![guim31](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/guim31/32/4840_2.png) [@guim31](https://community.gladysassistant.com/u/guim31)\
**Post date:** [November 2, 2023, 7:57am UTC](https://community.gladysassistant.com/t/bug-ou-regression-variables-devenues-incorrectes/8451/4 "2023-11-02T07:57:42Z")

</div>

I’ll admit I don’t know anything about that… 😕

---

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [November 2, 2023, 7:58am UTC](https://community.gladysassistant.com/t/bug-ou-regression-variables-devenues-incorrectes/8451/5 "2023-11-02T07:58:51Z")

</div>

Hence my message 😅  
Either I’m the only one and it’s just bad luck, or there was a bug or a regression in the library update or in part of the core?

---

<div class="post-metadata">

**Author:** ![guim31](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/guim31/32/4840_2.png) [@guim31](https://community.gladysassistant.com/u/guim31)\
**Post date:** [November 2, 2023, 8:00am UTC](https://community.gladysassistant.com/t/bug-ou-regression-variables-devenues-incorrectes/8451/6 "2023-11-02T08:00:11Z")

</div>

I just checked on my side, the scenes where I use a message that contains variables are still OK, the variable is still formatted as it should be.  
Sorry for not being much help ^^  
We’re waiting for the boss!

---

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [November 2, 2023, 8:02am UTC](https://community.gladysassistant.com/t/bug-ou-regression-variables-devenues-incorrectes/8451/7 "2023-11-02T08:02:54Z")

</div>

Thanks, at least you’re providing some context!

---

<div class="post-metadata">

**Author:** ![spenceur](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/spenceur/32/1961_2.png) [@spenceur](https://community.gladysassistant.com/u/spenceur)\
**Post date:** [November 2, 2023, 8:32am UTC](https://community.gladysassistant.com/t/bug-ou-regression-variables-devenues-incorrectes/8451/8 "2023-11-02T08:32:01Z")

</div>

For my part I had the same kind of issue, but only with a single variable.  
As for how long, no idea, though

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [November 2, 2023, 3:13pm UTC](https://community.gladysassistant.com/t/bug-ou-regression-variables-devenues-incorrectes/8451/9 "2023-11-02T15:13:49Z")

</div>

> [@lmilcent](#):
>
> This morning I created a new scene for «&nbsp;Gladys starts&nbsp;» and I took the opportunity to update my «&nbsp;intrusion detection&nbsp;» scene.  
> But to my great surprise, my variables became text and therefore no longer appear in the final message sent on Telegram.

You must have modified the scene order, each variable is identified by its position in the scene (0.1.1 are the coordinates of the variable in the scene)

If you change the order, it indeed re-creates the variables’ positions and breaks the functionality!

---

<div class="post-metadata">

**Author:** ![guim31](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/guim31/32/4840_2.png) [@guim31](https://community.gladysassistant.com/u/guim31)\
**Post date:** [November 2, 2023, 3:28pm UTC](https://community.gladysassistant.com/t/bug-ou-regression-variables-devenues-incorrectes/8451/10 "2023-11-02T15:28:36Z")

</div>

That’s interesting — could this be implemented as a dev task so that the variables and their coordinates are updated when the position changes in the scene?

---

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [November 2, 2023, 3:29pm UTC](https://community.gladysassistant.com/t/bug-ou-regression-variables-devenues-incorrectes/8451/11 "2023-11-02T15:29:12Z")

</div>

That’s it, I added a «&nbsp;if the alarm is armed&nbsp;» block as a condition.

I understand better why it’s «&nbsp;broken&nbsp;», but to me that’s rather a bug in that case. As a user I would expect Gladys to update the references automatically, as is the case with retrieving the latest values if I change one of the sensors.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [November 2, 2023, 3:29pm UTC](https://community.gladysassistant.com/t/bug-ou-regression-variables-devenues-incorrectes/8451/12 "2023-11-02T15:29:59Z")

</div>

Yes, that’s true, we’d need to recalculate all the references! Are you creating a GitHub issue?

---

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [November 2, 2023, 3:36pm UTC](https://community.gladysassistant.com/t/bug-ou-regression-variables-devenues-incorrectes/8451/13 "2023-11-02T15:36:05Z")

</div>

> <https://github.com/GladysAssistant/Gladys/issues/1926>
>
> Bug confirmed and described on the french forum: 
> https://community.gladysassis…tant.com/t/bug-ou-regression-variables-devenues-incorrectes/8451/8

---

<div class="post-metadata">

**Author:** ![guim31](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/guim31/32/4840_2.png) [@guim31](https://community.gladysassistant.com/u/guim31)\
**Post date:** [November 2, 2023, 3:38pm UTC](https://community.gladysassistant.com/t/bug-ou-regression-variables-devenues-incorrectes/8451/14 "2023-11-02T15:38:12Z")

</div>

DAMN I just created an issue too… ^^ @pierre-gilles I’ll let you delete it 😉

> <https://github.com/GladysAssistant/Gladys/issues/1927>
>
> See this topic : https://community.gladysassistant.com/t/bug-ou-regression-varia…bles-devenues-incorrectes/8451

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [November 2, 2023, 3:38pm UTC](https://community.gladysassistant.com/t/bug-ou-regression-variables-devenues-incorrectes/8451/15 "2023-11-02T15:38:53Z")

</div>

> [@guim31](#):
>
> @pierre-gilles I’ll let you remove it 😉

You can close it, can’t you?

---

<div class="post-metadata">

**Author:** ![guim31](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/guim31/32/4840_2.png) [@guim31](https://community.gladysassistant.com/u/guim31)\
**Post date:** [November 2, 2023, 3:39pm UTC](https://community.gladysassistant.com/t/bug-ou-regression-variables-devenues-incorrectes/8451/16 "2023-11-02T15:39:35Z")

</div>

Ah yes, sorry — I didn’t think I had the option to close. It’s done!
