Multiple "Stays" triggers for same event

Hello,

I saw Bug: Rule Machine with multiple timed triggers (using OR) does not trigger correctly which seems related to this and I thought this would actually solve my issue:

I have a rule that checks in my garage door is opened and sends reminders after 5, 30, 60, 120 minutes (please see rules and logs in screenshots).

However, it looks like only the first one triggers. I never get a warning for 30 minutes or longer. The logs don't seem to mention the other timers either.

Now, I could create multiple rules, but this will get noisy fast. And it quickly becomes a mess to manage. Especially since I intend adding more sensors and possibly more timers.

Having everything together in a single rule is so much more efficient.

Is this a strong limitation and I'll just have to bite the bullet, or is there a better way to go at this?


Suggest you read the yellow boxed text at the bottom of this section of the documentation: Rule 5.1 | Hubitat Documentation

Other ways to achieve the result you’re looking for include having multiple rules each with one trigger or using wait actions.

2 Likes

Here's an alternative approach:

I'm bored, so I was noodling on this idea... I don't know if this would work, but it's a fun thought exercise.

I'm not sure if the "Cancel timed actions" steps are really necssary, but I put them in there in an abundance of caution :person_shrugging:

Grg open & stays = 5 min

Notify Pixel "GD open 5 min"
Wait for event = Grg Clsd (timeout = 25 min)
If Grg Clsd
     Cancel timed actions
     Exit rule
Else
     Notify Pixel "GD open 30 min"
     Wait for event = Grg Clsd (timeout = 30 min)
     If Grg Clsd
          Cancel timed actions
          Exit rule
     Else
          Notify Pixel "GD open 1 hr"
          Wait for event = Grg Clsd (timeout = 60 min)
          If Grg Clsd
               Cancel timed actions
               Exit rule
          Else
               Notify Pixel "GD open 2 hrs"
End If
2 Likes

If u make separate rules for each time it should work
Multiple triggers in an or only trigger once
. Its one big trigger.

I had this come up a long time ago. I know they recently made changed to allow multiple triggers with "stays" so things may be different now.. But, I was told that multiple stays will not work on the same Tigger event.

In other words "Garage Door sensor reports open" is the trigger event being subscribed to, and only up to one timer can be applied to that event. The additional triggers still use the same event to trigger, just with different timers, but since only one timer can be applied to that event, only the first one works. You'd need multiple rules or a different logic to do what youre trying to do.

Crap I hit the wrong reply button. Oh well.

1 Like