Close garage door doesn't trigger SMS


#1

1) Give a description of the problem
I am not getting a SMS message when the garage door closes after I get the initial SMS of the door being up for more than 10 minutes.

2) What is the expected behaviour?
I found a sample piston that sends a SMS after a period of time that the garage door remains open. If the garage door is closed after the initial SMS message, I should get a second SMS message that states the door has been closed.

3) What is happening/not happening?
I am not getting a SMS message when the garage door closes after I get the initial SMS of the door being up for more than 10 minutes.

**4) Post a Green Snapshot of the piston![image|45x37]

5) Attach logs after turning logging level to Full
7/15/2022, 3:21:55 PM +456ms
+3ms ╔Received event [Door - Garage].contact = closed with a delay of 15ms, canQueue: true, calledMyself: false
+10ms ║RunTime initialize > 9 LockT > 1ms > r9T > 2ms > pistonT > 1ms (first state access 6 4 5)
+12ms ║Runtime (6632 bytes) initialized in 2ms (v0.3.114.20220428_HE)
+14ms ║╔Execution stage started
+19ms ║║Comparison (enum) closed changes_to (string) open = false (0ms)
+21ms ║║Condition #2 evaluated false (4ms)
+23ms ║║Condition group #1 evaluated false (condition changed) (6ms)
+27ms ║║Calculating (string)closed + (string)Variable ’
+32ms ║║Calculating (decimal)0.0 / (decimal)60000.0 >> (decimal)0.0
+35ms ║║Comparison (integer) 1 is_less_than (integer) 0 = false (1ms)
+36ms ║║Condition #4 evaluated false (12ms)
+37ms ║║Condition group #3 evaluated false (condition did not change) (13ms)
+41ms ║╚Execution stage complete. (27ms)
+44ms ╚Event processed successfully (41ms)
7/15/2022, 3:21:21 PM +429ms
+3ms ╔Received event [2367 xxxxxxx].time = 1657923681384 with a delay of 45ms, canQueue: true, calledMyself: false
+10ms ║RunTime initialize > 9 LockT > 0ms > r9T > 2ms > pistonT > 0ms (first state access 7 4 5)
+12ms ║Runtime (6638 bytes) initialized in 2ms (v0.3.114.20220428_HE)
+19ms ║╔Execution stage started
+294ms ║║Executed physical command [SMS-xxxxxxxxx].deviceNotification(Garage door has been open for 10 minutes.) (267ms)
+295ms ║║Executed [SMS-xxxxxxxx].deviceNotification (268ms)
+300ms ║╚Execution stage complete. (281ms)
+303ms ╚Event processed successfully (301ms)
7/15/2022, 3:20:21 PM +333ms
+2ms ╔Received event [Door - Garage].contact = open with a delay of 20ms, canQueue: true, calledMyself: false
+32ms ║RunTime initialize > 31 LockT > 1ms > r9T > 25ms > pistonT > 24ms (first state access 5 3 28)
+34ms ║Runtime (6560 bytes) initialized in 25ms (v0.3.114.20220428_HE)
+36ms ║╔Execution stage started
+41ms ║║Comparison (enum) open changes_to (string) open = true (1ms)
+43ms ║║Condition #2 evaluated true (4ms)
+45ms ║║Condition group #1 evaluated true (condition changed) (6ms)
+50ms ║║Executed virtual command [SMS-xxxxxxxxx].wait (0ms)
+53ms ║║Requesting wake up at Fri, Jul 15 2022 @ 3:21:21 PM PDT (in 59999ms) for 7 (st:8)
+58ms ║╚Execution stage complete. (24ms)
+86ms ║Setting up scheduled job for Fri, Jul 15 2022 @ 3:21:21 PM PDT (in 60020ms)
+89ms ╚Event processed successfully (87ms)

Clear

Full

#2

Change it to push notification while testing, maybe SMS is being throttled (I didn’t look at the piston closely).


#3

You are getting 0 returned for your previousAge function. I see two right brackets next to each other in the function argument. That is probably what is confusing it.