Help with a scene containing a message

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…

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 ^^

Hello @Hamtaro,

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:

Not bad either. I created an issue

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 « temperature > 18 »:

  • Temperature = 17 = invalid
  • Temperature = 19 = VALID
  • Temperature = 19 = invalid
  • Temperature = 25 = invalid
  • Temperature = 17 = invalid
  • Temperature = 25 = VALID

Example if the condition is « temperature = 10 »:

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

It seems fine to me, in my use case (I know you love that, @pierre-gilles :stuck_out_tongue: ).
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.

The text is clear there :wink:

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

@cicoub13 I find this less understandable!

I suggest:

Run once when the threshold is exceeded (and not as long as 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

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

Would that be better?

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

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

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

Will you be able to build a :dev anyway?

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

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

Build progress here: 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)

:+1: Yeah, I’ll test Gmail this weekend

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

Wouldn’t it be better to have 2 ‹ radio buttons › 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…

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

Could the text be:

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

?