How do I stack a WebCore Timer?


#1

How do I stack a WebCore Timer? For Example - After 2 mins of being open, give the verbal command over Sonos.
If 2 more minutes go by without closing, send a push notification AND webhooks post to IFTTT connected to ‘phone’ and it’ll call me and play message “the refrigerator has been open for 4 minutes”.

I understand how to do the Commands in Sonos/Push/IFTTT but how do I stack the waits but only if the condition is not met?


#2

Something like this? Closing the contact should cancel/reset the timers.

if
    Contact is open
then
    Wait 2 minutes
    Log info "Playing to sonos"
    Wait 2 minutes
    Log info "Sending push notification and calling webhook"
end if

#3

I have never done “Log info” what is that doing?


#4

Oh instead of doing the actual command I’m just sending Log to console.


#5

Hi all
New here. How do I add “wait 2 mins” command…? I want to open a relay and wait 1 minute and then stop relay. I don’t seem to find a way to add the delay.
Thanks in advance.


#6

I think I found the answer. Thanks,!