I'm missing something about Timers with Triggers

Posted on
Mon Apr 19, 2021 1:18 pm
Different Computers offline
User avatar
Posts: 2533
Joined: Jan 02, 2016
Location: East Coast

I'm missing something about Timers with Triggers

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.

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Mon Apr 19, 2021 1:57 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: I'm missing something about Timers with Triggers

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.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Mon Apr 19, 2021 2:12 pm
Different Computers offline
User avatar
Posts: 2533
Joined: Jan 02, 2016
Location: East Coast

Re: I'm missing something about Timers with Triggers

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.

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Mon Apr 19, 2021 2:14 pm
Different Computers offline
User avatar
Posts: 2533
Joined: Jan 02, 2016
Location: East Coast

Re: I'm missing something about Timers with Triggers

Ah no, I see it.

There IS no trigger for "timer expired"!

Which seems odd.
Attachments
Screen Shot 2021-04-19 at 4.13.52 PM.png
Screen Shot 2021-04-19 at 4.13.52 PM.png (103.98 KiB) Viewed 1851 times

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Mon Apr 19, 2021 2:17 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: I'm missing something about Timers with Triggers

It's not a state change
Attachments
Screen Shot 2021-04-19 at 4.16.53 PM.png
Screen Shot 2021-04-19 at 4.16.53 PM.png (485.82 KiB) Viewed 1850 times

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Mon Apr 19, 2021 2:19 pm
Different Computers offline
User avatar
Posts: 2533
Joined: Jan 02, 2016
Location: East Coast

Re: I'm missing something about Timers with Triggers

AHA!

Thank you very much. Never found that, obviously.

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests