Repeat with Variable don´t work. Error!

try creating a repetition with an interval given by a variable



Is it possible that your variable needs to be of type DateTime?

the function does not work with a variable of date and time type

weird since it translates the 100 to 1:40 in the actions

this is how it worked in earlier versions of the rules. a number type variable was taken as seconds. nothing has changed since then. the fact that it translates correctly, but gives an error when executed, indicates an error in the code itself.

if you remake the rule, does the error still persist? @bcopeland any ideas?

the error is permanent. I originally found it in a very complex rule. Then I simplified it to that. The error is reproduced. I am very strongly convinced that there is a mistake in the code of rules 5.0

Probably is a bug. I will investigate...

4 Likes

Yup, i was just getting the same error and i just found this thread.
Happy to hear it's not just me.

Hi @bravenel. I ran across this problem today as well. I edited several rules to change the repeat interval to a variable. The commands following the repeat line have not run and the rules appear to be hung.

One of my rules:

The repeat command in the editor:

The number variable:

image

You need to turn on Action Logging and post a screenshot of those logs when the rule runs.

Thanks. That's a bug associated with the variable. Will get it sorted out for the next release.

1 Like