# Unable to check the "Run only when the threshold has been reached" checkbox

**URL:** <https://community.gladysassistant.com/t/impossible-de-cocher-la-case-executer-seulement-lorsque-le-seuil-est-passe/8515>\
**Category:** Configuration\
**Created:** [November 20, 2023, 9:23pm UTC](https://community.gladysassistant.com/t/impossible-de-cocher-la-case-executer-seulement-lorsque-le-seuil-est-passe/8515 "2023-11-20T21:23:48Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Psoy](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/psoy/32/9005_2.png) [@Psoy](https://community.gladysassistant.com/u/Psoy)\
**Post date:** [November 20, 2023, 9:23pm UTC](https://community.gladysassistant.com/t/impossible-de-cocher-la-case-executer-seulement-lorsque-le-seuil-est-passe/8515/1 "2023-11-20T21:23:48Z")

</div>

Good evening @pierre-gilles

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [November 20, 2023, 9:49pm UTC](https://community.gladysassistant.com/t/impossible-de-cocher-la-case-executer-seulement-lorsque-le-seuil-est-passe/8515/2 "2023-11-20T21:49:41Z")

</div>

Same bug, but if it’s already checked then you can’t uncheck it anymore

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

---

<div class="post-metadata">

**Author:** ![Psoy](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/psoy/32/9005_2.png) [@Psoy](https://community.gladysassistant.com/u/Psoy)\
**Post date:** [November 20, 2023, 9:50pm UTC](https://community.gladysassistant.com/t/impossible-de-cocher-la-case-executer-seulement-lorsque-le-seuil-est-passe/8515/3 "2023-11-20T21:50:28Z")

</div>

That’s the same.

---

<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 20, 2023, 10:03pm UTC](https://community.gladysassistant.com/t/impossible-de-cocher-la-case-executer-seulement-lorsque-le-seuil-est-passe/8515/4 "2023-11-20T22:03:43Z")

</div>

A regression (the bug had already been fixed, it seems to me)

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [November 20, 2023, 11:09pm UTC](https://community.gladysassistant.com/t/impossible-de-cocher-la-case-executer-seulement-lorsque-le-seuil-est-passe/8515/5 "2023-11-20T23:09:26Z")

</div>

@pierre-gilles,  
I tried, and by removing what you fixed in June it works again for me

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

---

<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 21, 2023, 7:48am UTC](https://community.gladysassistant.com/t/impossible-de-cocher-la-case-executer-seulement-lorsque-le-seuil-est-passe/8515/6 "2023-11-21T07:48:55Z")

</div>

I second that. I posted in the update announcement thread before seeing your messages…!

---

<div class="post-metadata">

**Author:** ![b3n.0](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/b3n.0/32/3458_2.png) [@b3n.0](https://community.gladysassistant.com/u/b3n.0)\
**Post date:** [November 21, 2023, 8:31am UTC](https://community.gladysassistant.com/t/impossible-de-cocher-la-case-executer-seulement-lorsque-le-seuil-est-passe/8515/7 "2023-11-21T08:31:34Z")

</div>

Indeed, same here on my end and with Gladys+ as well…

---

<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 21, 2023, 5:15pm UTC](https://community.gladysassistant.com/t/impossible-de-cocher-la-case-executer-seulement-lorsque-le-seuil-est-passe/8515/8 "2023-11-21T17:15:49Z")

</div>

Can someone create a GitHub issue?

Edit: I moved the thread, and I closed the other one 🙂 You really need to create new threads; long, drawn-out threads are really complicated 😅

---

<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 21, 2023, 5:49pm UTC](https://community.gladysassistant.com/t/impossible-de-cocher-la-case-executer-seulement-lorsque-le-seuil-est-passe/8515/9 "2023-11-21T17:49:10Z")

</div>

Yes, you’re right, we got a bit scattered!

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [November 21, 2023, 6:36pm UTC](https://community.gladysassistant.com/t/impossible-de-cocher-la-case-executer-seulement-lorsque-le-seuil-est-passe/8515/10 "2023-11-21T18:36:44Z")

</div>

> [@pierre-gilles](#):
>
> Can someone create a GitHub issue?

I’ll take care of creating the issue

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [November 21, 2023, 8:50pm UTC](https://community.gladysassistant.com/t/impossible-de-cocher-la-case-executer-seulement-lorsque-le-seuil-est-passe/8515/11 "2023-11-21T20:50:59Z")

</div>

So the issue and the PR

> <https://github.com/GladysAssistant/Gladys/issues/1940>
>
> In scene trigger on device change, threshold is not clickable. The same bug as t…he one already fixed in June
> 
> https://community.gladysassistant.com/t/impossible-de-cocher-la-case-executer-seulement-lorsque-le-seuil-est-passe/8515

> <https://github.com/GladysAssistant/Gladys/pull/1941>
>
> \### 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:
> 
> \- \[\] If your changes affects code, did your write the tests?
> \- \[\] Are tests passing? (\`npm test\` on both front/server)
> \- \[\] Is the linter passing? (\`npm run eslint\` on both front/server)
> \- \[\] Did you run prettier? (\`npm run prettier\` on both front/server)
> \- \[\] If you are adding a new features/services, did you run integration comparator? (\`npm run compare-translations\` on front)
> \- \[\] 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.
> \- \[\] If your changes modify the API (REST or Node.js), did you modify the API documentation? (Documentation is based on comments in code)
> \- \[\] If you are adding a new features/services which needs explanation, did you modify the user documentation? See \[the GitHub repo\](https://github.com/GladysAssistant/v4-website) and the \[website\](https://gladysassistant.com).
> \- \[\] Did you add fake requests data for the demo mode (\`front/src/config/demo.js\`) so that the demo website is working without a backend? (if needed) See \[https://demo.gladysassistant.com\](https://demo.gladysassistant.com).
> 
> NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.
> 
> \### Description of change
> 
> PR to fix threshold not clickable on scene trigger
> https://github.com/GladysAssistant/Gladys/issues/1940

---

<div class="post-metadata">

**Author:** ![Psoy](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/psoy/32/9005_2.png) [@Psoy](https://community.gladysassistant.com/u/Psoy)\
**Post date:** [November 21, 2023, 9:17pm UTC](https://community.gladysassistant.com/t/impossible-de-cocher-la-case-executer-seulement-lorsque-le-seuil-est-passe/8515/12 "2023-11-21T21:17:49Z")

</div>

thanks @_Will_71

---

<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 22, 2023, 7:23pm UTC](https://community.gladysassistant.com/t/impossible-de-cocher-la-case-executer-seulement-lorsque-le-seuil-est-passe/8515/13 "2023-11-22T19:23:49Z")

</div>

> [@\_Will\_71](#):
>
> So the issue and the PR

Thanks for the PR! Indeed it fixes the problem, but in my opinion the root cause is deeper than that — I wouldn’t be surprised if we see the issue resurface in the future.

I think the problem comes from a Preact bug; I found this GitHub issue while searching a bit:

https

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [November 22, 2023, 7:36pm UTC](https://community.gladysassistant.com/t/impossible-de-cocher-la-case-executer-seulement-lorsque-le-seuil-est-passe/8515/14 "2023-11-22T19:36:13Z")

</div>

It’s clear that it’s not normal to have to modify it like that. Worth keeping an eye on.

---

<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 23, 2023, 5:22pm UTC](https://community.gladysassistant.com/t/impossible-de-cocher-la-case-executer-seulement-lorsque-le-seuil-est-passe/8515/15 "2023-11-23T17:22:09Z")

</div>

I just deployed the fix on Gladys Plus (since it’s a frontend fix, it’s available right now on Gladys Plus)

A Gladys local version will arrive later 🙂

---

<div class="post-metadata">

**Author:** ![Psoy](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/psoy/32/9005_2.png) [@Psoy](https://community.gladysassistant.com/u/Psoy)\
**Post date:** [November 23, 2023, 5:46pm UTC](https://community.gladysassistant.com/t/impossible-de-cocher-la-case-executer-seulement-lorsque-le-seuil-est-passe/8515/16 "2023-11-23T17:46:11Z")

</div>

> [@pierre-gilles](#):
>
> I just deployed the fix on Gladys Plus

good evening @pierre-gilles  
It works for me, thank you very much

---

<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 27, 2023, 9:59am UTC](https://community.gladysassistant.com/t/impossible-de-cocher-la-case-executer-seulement-lorsque-le-seuil-est-passe/8515/17 "2023-11-27T09:59:57Z")

</div>

Bug fixed in Gladys Assistant 4.31.1 :

> [@Gladys Assistant 4.31.1 : Correction de bugs!](https://community.gladysassistant.com/t/gladys-assistant-4-31-1-correction-de-bugs/8538):
>
> Salut à tous ! Je viens de sortir Gladys Assistant 4.31.1, une version mineure avec quelques correctifs: Correction d’un bug assez critique qui empêchait de cocher la case «&nbsp;Exécuter seulement lorsque le seuil est passé&nbsp;» dans les scènes ! Bug corrigé par @_Will_71, merci du fix prayCorrection d’un bug dans les scènes où le sélecteur de variable dans «&nbsp;continuer seulement si&nbsp;» recouvrait d’autres sélecteurs de variables. Merci @_Will_71 pour le fix ! Amélioration des traductions. Merci @ci…

---

<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 27, 2023, 10:00am UTC](https://community.gladysassistant.com/t/impossible-de-cocher-la-case-executer-seulement-lorsque-le-seuil-est-passe/8515/18 "2023-11-27T10:00:00Z")

</div>


