Help with repetition in Rule Machine

Hy everyone!

I made a rule using a vibration sensor that uses Echo Speaks to alert when someone rings the intercom.

It is working well, except by one detail: it should repeat the message just 3 times and, if the intercom isn't answered, the rule is triggered again 1 minute and 30 seconds after it stopped, but the message is being repeated many more times.

Some tip to solve the problem? I don't know where is the error...

Thanks in advance.

The problem is that the rule is being triggered multiple times. To resolve this, wrap your rule in a Private Boolean. Set the PB to be false when the rule is triggered, and to be True just before the exit statement.

Finally restrict the trigger to function only if the PB is True.

6 Likes

Thanks a lot, @aaiyar: the problem was solved with you suggestion!

1 Like