Event Trigger SMS to Include Duration?

I have an event trigger to check if the garage door is open every 30 minutes. Then I have an SMS sent if it is. I would like to include the duration value in the SMS. Is there a variable available to pass the duration value to SMS?

Garage Door Controller - door stays ‘open’ for 30 minutes

SMS would say something like “The garage door has been open for 30 minutes.”

Garage Door Controller - door stays ‘open’ for 60 minutes

SMS would say something like “The garage door has been open for 60 minutes.”

1 Like

Could you use an expression along with a variable to calculate it? Snapshot the time when the event first triggers then calculate the duration using that on each ‘stays’ triggers.