# Help with a scene containing a message

**URL:** <https://community.gladysassistant.com/t/aide-sur-une-scene-avec-message/5778>\
**Category:** Présentations\
**Created:** [November 24, 2020, 9:00am UTC](https://community.gladysassistant.com/t/aide-sur-une-scene-avec-message/5778 "2020-11-24T09:00:31Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hamtaro](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/hamtaro/32/2373_2.png) [@Hamtaro](https://community.gladysassistant.com/u/Hamtaro)\
**Post date:** [November 24, 2020, 9:00am UTC](https://community.gladysassistant.com/t/aide-sur-une-scene-avec-message/5778/1 "2020-11-24T09:00:31Z")

</div>

Hello

I would like to set up a scene that alerts me when the temperature drops below a certain value and above another value.

Currently, I have a simple scene with an alert \< 18°C, but as a result, I am spammed with messages… I would like to have only one alert and then another one for a return within the range.

Is this possible?

Edit: It would also be great to be able to turn off a scene simply as a binary from the list of scenes, without having to delete it…

---

<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 24, 2020, 10:30am UTC](https://community.gladysassistant.com/t/aide-sur-une-scene-avec-message/5778/2 "2020-11-24T10:30:10Z")

</div>

It really interests me if someone has a solution because I expect the same behavior but in reverse: an alert when my laundry room exceeds 28°. Currently, I don’t know how to set the alert interval… I’m also being spammed ^^

---

<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, 2020, 7:50am UTC](https://community.gladysassistant.com/t/aide-sur-une-scene-avec-message/5778/3 "2020-11-27T07:50:53Z")

</div>

Hello @Hamtaro,

> [@Hamtaro](#):
>
> Right now, I made a simple scene with alert \< 18°C but as a result, I am spammed with messages… I would like to have only one alert and then another one for a return in the range.

Indeed, this is a great use case! For now, there is no way to do this.

I added an issue because this is a great addition:

> <https://github.com/GladysAssistant/Gladys/issues/979>
>
> Right now, if I create a scene that trigger "When temperature is \> 18°C", I'm sp…ammed by hundreds of messages because there is no threshold mode. I should be able to create a scene that trigger only when the temperature go from 17.9-\>18°C.

> [@Hamtaro](#):
>
> Edit: it would also be great to be able to turn off a scene simply as a binary from the list of scenes, without having to delete it…

Not bad either. I created an issue

> <https://github.com/GladysAssistant/Gladys/issues/980>

---

<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, 2020, 1:32pm UTC](https://community.gladysassistant.com/t/aide-sur-une-scene-avec-message/5778/4 "2020-11-27T13:32:04Z")

</div>

I’m working on the feature, but I’m unsure about the text to make it understandable.

I describe the feature as I implemented it on the server side:

Instead of checking the trigger condition every time a value is sent, the condition is only validated the first time it is validated.

**Example if the condition is «&nbsp;temperature \> 18&nbsp;»:**

- Temperature = 17 = invalid
- Temperature = 19 = VALID
- Temperature = 19 = invalid
- Temperature = 25 = invalid
- Temperature = 17 = invalid
- Temperature = 25 = VALID

**Example if the condition is «&nbsp;temperature = 10&nbsp;»:**

- Temperature = 8 = invalid
- Temperature = 10 = VALID
- Temperature = 10 = invalid
- Temperature = 10 = invalid
- Temperature = 17 = invalid
- Temperature = 10 = VALID

Here is the text I have put for now, but I am not convinced:

 ![Screenshot 2020-11-27 at 15.28.02](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/7/7a71b82215d12172b12789bc6c28b7072e1e1c18.png)

---

<div class="post-metadata">

**Author:** ![Hamtaro](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/hamtaro/32/2373_2.png) [@Hamtaro](https://community.gladysassistant.com/u/Hamtaro)\
**Post date:** [November 27, 2020, 1:53pm UTC](https://community.gladysassistant.com/t/aide-sur-une-scene-avec-message/5778/5 "2020-11-27T13:53:26Z")

</div>

It seems fine to me, in my use case (I know you love that, @pierre-gilles 😛 ).  
After that, we would need to test it to see if its use creates other issues.

And indeed, the text could be simplified but I don’t know how.

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [November 27, 2020, 1:55pm UTC](https://community.gladysassistant.com/t/aide-sur-une-scene-avec-message/5778/6 "2020-11-27T13:55:51Z")

</div>

The text is clear there 😉

---

<div class="post-metadata">

**Author:** ![cicoub13](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/cicoub13/32/4482_2.png) [@cicoub13](https://community.gladysassistant.com/u/cicoub13)\
**Post date:** [November 27, 2020, 2:07pm UTC](https://community.gladysassistant.com/t/aide-sur-une-scene-avec-message/5778/7 "2020-11-27T14:07:44Z")

</div>

«&nbsp;"Execute only when the device value toggles on either side of the threshold."?&nbsp;»

---

<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, 2020, 2:14pm UTC](https://community.gladysassistant.com/t/aide-sur-une-scene-avec-message/5778/8 "2020-11-27T14:14:33Z")

</div>

@cicoub13 I find this less understandable!

---

<div class="post-metadata">

**Author:** ![Reno](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/reno/32/5939_2.png) [@Reno](https://community.gladysassistant.com/u/Reno)\
**Post date:** [November 27, 2020, 2:24pm UTC](https://community.gladysassistant.com/t/aide-sur-une-scene-avec-message/5778/9 "2020-11-27T14:24:51Z")

</div>

I suggest:

Run once when the threshold is exceeded (and not as long as the threshold is exceeded)

---

<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, 2020, 2:29pm UTC](https://community.gladysassistant.com/t/aide-sur-une-scene-avec-message/5778/10 "2020-11-27T14:29:01Z")

</div>

> [@Reno](#):
>
> Run once when the threshold is exceeded (not while the threshold is exceeded)

What bothers me in these sentences (and in my current sentence) is that in the case where we have a condition:

- When the light is on
- If the switch is in the off position

This has nothing to do with a threshold! It’s about equality, so the sentence is hard to understand

---

<div class="post-metadata">

**Author:** ![Reno](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/reno/32/5939_2.png) [@Reno](https://community.gladysassistant.com/u/Reno)\
**Post date:** [November 27, 2020, 2:38pm UTC](https://community.gladysassistant.com/t/aide-sur-une-scene-avec-message/5778/11 "2020-11-27T14:38:12Z")

</div>

Run at the first occurrence of the condition (and not while it is true)

Would that be better?

---

<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, 2020, 3:13pm UTC](https://community.gladysassistant.com/t/aide-sur-une-scene-avec-message/5778/12 "2020-11-27T15:13:00Z")

</div>

I’ve merged with the first version I proposed.

None of the suggestions in this feed seem simpler to understand for a non-developer user, and that’s normal, we’re all tech in this topic 😃

I would ask for feedback from non-tech users outside the Gladys bubble to see what they understand 🙂

The feature will be released in the next Gladys release, probably next week.

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [November 27, 2020, 3:16pm UTC](https://community.gladysassistant.com/t/aide-sur-une-scene-avec-message/5778/13 "2020-11-27T15:16:26Z")

</div>

> [@pierre-gilles](#):
>
> The feature will be released in the next Gladys release, probably next week.

Will you be able to build a :dev anyway?

---

<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, 2020, 3:20pm UTC](https://community.gladysassistant.com/t/aide-sur-une-scene-avec-message/5778/14 "2020-11-27T15:20:49Z")

</div>

> [@VonOx](#):
>
> Can you build a :dev anyway?

Of course! I’ll start one at the end of the day if you want 🙂

---

<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, 2020, 4:24pm UTC](https://community.gladysassistant.com/t/aide-sur-une-scene-avec-message/5778/15 "2020-11-27T16:24:04Z")

</div>

@VonOx I started a dev build, I’m done for today, what a day! 😅

Build progress here: [https://github.com/GladysAssistant/Gladys/actions/runs/387432952](https://github.com/GladysAssistant/Gladys/actions/runs/387432952)

I’d like to have feedback on the Caldav part if you have it at home (with Google Calendar for example)

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [November 27, 2020, 4:26pm UTC](https://community.gladysassistant.com/t/aide-sur-une-scene-avec-message/5778/16 "2020-11-27T16:26:12Z")

</div>

👍 Yeah, I’ll test Gmail this weekend

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [November 30, 2020, 1:37pm UTC](https://community.gladysassistant.com/t/aide-sur-une-scene-avec-message/5778/17 "2020-11-30T13:37:28Z")

</div>

Successful test on calendar-level development, I’m ❤ the new weather box

---

<div class="post-metadata">

**Author:** ![Reno](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/reno/32/5939_2.png) [@Reno](https://community.gladysassistant.com/u/Reno)\
**Post date:** [November 30, 2020, 1:58pm UTC](https://community.gladysassistant.com/t/aide-sur-une-scene-avec-message/5778/18 "2020-11-30T13:58:45Z")

</div>

Wouldn’t it be better to have 2 ‹&nbsp;radio buttons&nbsp;› like this, so the user better understands the 2 possible choices: it’s one or the other.

- Execute on condition pass (once)
- Execute while the condition is true

After that, I agree, you always need to find the right text…

---

<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 30, 2020, 3:36pm UTC](https://community.gladysassistant.com/t/aide-sur-une-scene-avec-message/5778/19 "2020-11-30T15:36:12Z")

</div>

> [@Reno](#):
>
> Wouldn’t it be better to put 2 ‹&nbsp;radio buttons&nbsp;› like this, the user understands the 2 possible choices: it’s one or the other.

To me, that’s the principle of a checkbox 🙂 2 buttons would be a bit heavy in the UI. I sent the feature in the v4.0.2 release.

---

<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 30, 2020, 4:54pm UTC](https://community.gladysassistant.com/t/aide-sur-une-scene-avec-message/5778/20 "2020-11-30T16:54:18Z")

</div>

Could the text be:

- Execute the scene once, when the threshold is exceeded?

?

[Next page](https://community.gladysassistant.com/t/aide-sur-une-scene-avec-message/5778.md?page=2)
