Repeat While Expression

I’m not sure where to place the Repeat While Expression in my rule. Should it be placed after the action that I want repeated?

I want the notification to repeat every 1 minute while a virtual switch is on and a door is open. Does the following rule look correct?

No. The Action to be repeated follows the Repeat and the block of Actions to be Repeated is terminated with END-REP.

See the Documentation, scroll down to the section on Repeat.

1 Like

You may want to consider using the stock Notifications app for this use case. It can send repeated notifications and there are restriction options such as a switch being in a specific state.

1 Like

Would the Notifications app allow me to display how long the contact sensor has been open?

I’m personally not seeing how to do that, so I’m using Rule Machine. The rule I posted earlier is an early version which I will modify to show elapsed time.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.