Trigger Event with Variable Delay

I have a trigger based on a contact staying open for 60 seconds. I want to change that delay to be a global variable so I change it from a dashboard. I can't see a way to select a variable for the seconds. What trigger type do I need to use to set this up?

From what I can see, using a Hub Variable as the “stays” value is not an option that is available at this time.

Tagging @bravenel in case it might be an option for a future release.

Triggering the rule for the contact opening then using a Wait for door opened for a variable duration might be a viable work around.

That sounds like a good idea, but I cannot figure out how to actually implement. Here's what I have right now, but it just doesn't look right. I only want to actions to happen if the door stays open. This is one of those things that shouldn't be this hard. :slight_smile:
Any thoughts?

Well, maybe this will work? (I am out of town so I can't test!)

Use Wait for expression

Wait for Expression: (R)Back Door contact opened --> duration: DoorOpenWait(0:02:00)

2 Likes

Download the Hubitat app