RM 5.1 when is variable evaluated?

I have a rule that turns on a switch, waits 30 seconds, then uses the value of a variable in a notification. The point is that I expect that variable to change value during the 30 seconds which is why I built in the delay. Rule Machine is displaying the current value of the variable as soon as I have edited the rule. Does this mean it's going to be evaluated as soon as the rule is triggered?

What's been your experience when the rule runs? I think the UI may behave like you describe but I expect that is only to provide you with a guide on what the values are currently, which may help in certain situations in choosing the right logic or device.

1 Like

Good point, I could have tested this myself :smiley:

1 Like

Just put a notification at the start of the rule as well, temporarily...

All is ok, it evaluated at the required time :slight_smile:

2 Likes