Page 1 of 1

I'm missing something about Timers with Triggers

PostPosted: Mon Apr 19, 2021 1:18 pm
by Different Computers
I thought this was simple, but apparently it is not.

Here's what I have set up:

Trigger: "Freezer Door" onOffState becomes on
Condition: always execute
Actions: start timer

Trigger: "Freezer Door" onOffState becomes off
Condition: Always Execute
Actions: stop timer, set timer start (of Freezer Open Timer) value to 300 seconds

Timer: Freezer Open Timer. 300 Seconds default time.

Trigger: "Freezer Open Timer" timeLeftSeconds becomes less than 60
Condition: always execute
Actions: set off a whole bunch of stuff that draws attention to the fact the freezer door has been open for 4 minutes.


What I want: alerts go off after the freezer door being left open for 4 minutes.

What I get: alerts the moment the freezer door is opened.

What am I doing wrong here? From what I can tell, it *should* work: Door opens, timer starts. If timer counts down, alerts. If door closes, timer stops and resets. I have checked the freezer door sensor for other dependencies, and there are none.

I bet it is something dumb, but I can't find it.

Re: I'm missing something about Timers with Triggers

PostPosted: Mon Apr 19, 2021 1:57 pm
by FlyingDiver
Trigger: "Freezer Door" onOffState becomes on
Condition: always execute
Actions: start timer

Trigger: "Freezer Door" onOffState becomes off
Condition: Always Execute
Actions: stop timer

Timer: Freezer Open Timer. 240 Seconds default time.

Trigger: "Freezer Open Timer" timerExpired
Condition: always execute
Actions: set off a whole bunch of stuff that draws attention to the fact the freezer door has been open for 4 minutes.

Re: I'm missing something about Timers with Triggers

PostPosted: Mon Apr 19, 2021 2:12 pm
by Different Computers
I think I see what you think is the problem, but note that in my setup the trigger for alarms is <60 seconds. which means it would trigger at 240 seconds counted. I did this as part of trouble shooting, because I couldn't get "timer Expired" to work either.

But I'll try it.

Re: I'm missing something about Timers with Triggers

PostPosted: Mon Apr 19, 2021 2:14 pm
by Different Computers
Ah no, I see it.

There IS no trigger for "timer expired"!

Which seems odd.

Re: I'm missing something about Timers with Triggers

PostPosted: Mon Apr 19, 2021 2:17 pm
by FlyingDiver
It's not a state change

Re: I'm missing something about Timers with Triggers

PostPosted: Mon Apr 19, 2021 2:19 pm
by Different Computers
AHA!

Thank you very much. Never found that, obviously.