The "Continue only if" box should offer devices' instant values by default

In addition to allowing the comparison of previously created variables, allow taking an instantaneous value without having to create a « get device value » action

Requested here:

I had never seen this request, and I actually think it’s very important to make creating scenes easier > so help people picture themselves using Gladys !! :slight_smile:

Totally agree with you @guim31, it really helps make creating scenes simpler when you don’t yet have any experience.

From my experience, I think that managing/creating scenes is the part that took me the longest to learn.
So I think that, given the project’s philosophy of aiming to be accessible, any simplification at that level will be beneficial!

Little bump for this awesome request :stuck_out_tongue:

I’m bringing this back… For me, it’s a must-have!

@guim31 where is this box « continue only if » located?

If I’m not mistaken, it no longer exists because we have the If...Then...Else that replaces it.

@pierre-gilles do you confirm?
And if so, we can close this topic.

@pierre-gilles I’m bringing this request forward for next week. Just note that the ‹ continue only if › box is the one that was renamed to ‹ condition on variable ›.

ok, thanks!

Hi everyone!

This topic is now in development.

A PR has been opened to propose the instant values of devices in “Continue only if”:

Don’t hesitate to follow the PR, test as soon as possible, and share your feedback here.

Hi everyone!

This topic is now in development.

A PR has been opened to compare the current state of a device directly in “Continue only if”:

Feel free to follow the PR, test (optional, especially for small requests) and give your feedback here if needed.

Is it the same component that is directly accessible as an action and in the conditions block of an ‘if then else’, and therefore will the improvement benefit all ten cases?

Yes, it’s exactly the same component, so the improvement applies wherever you can set a « Condition on variables »:

  • directly as a step in a scene;
  • in the conditions of an « If / Then / Else » block;
  • in the conditions of a « While » block.

In all three cases, you can now directly choose a device: its state is read at the time the condition is executed, without needing a « Get the last state » block beforehand. It works on desktop as well as on mobile (on mobile, you choose the device in the same room selection sheet as for other device fields).

Existing scenes are not affected: variable conditions continue to work as before, and you can mix both in the same block.

The PR has just been merged, so it will be available in the next version of Gladys. Don’t hesitate to give me feedback once you’ve tested it!