Allow injecting a variable into the 'Attendre' action

As the title indicates, this would allow better control of waiting times in scenes.

To be able to switch from this:

To one functioning identically to « control a device » with the following fields:

I’m bumping this feature request myself! :grin:

Summer is coming back, I’ll be in the same situation as last year.

My use case is really simple: it’s recommended to filter your pool water for a duration that depends on its temperature.

The calculation is:

Filtration time (h) = temperature / 2

I would therefore like to retrieve the water temperature, divide it by two (already possible) and inject this variable into the field of the Wait block.

Calling all developers! :+1:

1 Like

Hi everyone,

I’ve developed this feature :slight_smile:

You can now inject a variable into this action:

As a bonus, I added a new « random » function to the calculations available in scenes, which allows waiting a random amount of time.

Example: Wait between 0 and 10 milliseconds.

Very handy to turn on the light at a random time at home when you’re not there!

The PR:

2 Likes

or for lowering/raising your roller shutters (Somfy via Matter :wink: ) to make someone think they’re using a remote control. I love it!!

1 Like

Awesome!! :+1: Thanks for this dev!

1 Like

There’s no denying it, it’s a festival of features 'all simple' but really nice that you’re preparing for us!

The 'simple' referring to the fact that it can be described in a few words, but I have no idea whether it’s complicated to develop or not :wink:

2 Likes

This new feature is available in Gladys Assistant 4.58 :