Help with Repeat and Wait for Event

I created a rule that I wanted to use as a medicine reminder where the rule would repeat a message until a virtual switch ("meds reminder") is shut off. I used a "certain time" as the trigger and "wait for event" as the means to recognize the status of the virtual switch. For some reason, the message keeps repeating even though I shut off the virtual switch.

I want a way that forces me to physically shut off the reminder... Whats the best way to make this happen?

In your rule there's nothing that actually stops the repeat. The wait for event statement will pause until the meds switch gets turned off and then the repeat continues.

What you probably want is the REPEAT UNTIL...

(Oh great now I gotta go figure out why my echo alert list is offline!)

1 Like

"Wait for event" isn't really doing anything for you in this rule. That is an action available anywhere in a rule, has nothing to do with a repeat specifically, and will just wait for the event to happen before proceeding to your next action (which in your case really isn't anything--there are no "real" actions left, and the repeat will loop on its own per the "every 0:10:00" specified).

I'd suggest something like a "Repeat While" as above to address this, though there are a few other things you could do as well. The docs contain some more examples of properly formatted repeats: Rule 5.1 | Hubitat Documentation

3 Likes

Thanks much Brad5 and Bert1234. This worked perfectly and was "simple as possible". Thanks for taking the time to respond!!

1 Like

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