I have a Piston that has been working well for almost 2 years. About 2 months ago it started something strange.
- The Piston was designed to open a door (turn on a switch) everyday at 9 minutes past sunrise if the temperature of a device was over 30*. If the door was opened it would send a SMS notification to 2 phones. If the temperature condition was not true, it would send a different SMS notification to those phones and not open the door.
About a month ago, it started sending the same SMS to each phone twice, about a minute or less apart. I really donât want 2 notices.
In order to get to the bottom of this, I broke up the original Piston removing the Task of sending the SMS notification. I then created a separate Piston that would just send the SMS notification if the switch was on⌠simple enough. Well⌠I got 2 SMS notifications this morning.
The simplified Piston and the Logs are attached. Could it be because Iâm sending to 2 phones?
Logs
9/15/2021, 7:15:59 AM +182ms
+0ms âReceived event [Home].time = 1631704560000 with a delay of -818ms
+66ms âRunTime Analysis CS > 39ms > PS > 7ms > PE > 19ms > CE
+68ms âRuntime (38418 bytes) successfully initialized in 7ms (v0.3.113.20210203) (67ms)
+69ms ââExecution stage started
+95ms ââComparison (time) 26159255 happens_daily_at (datetime) 1631703660000 = true (0ms)
+96ms ââTime restriction check passed
+98ms ââCondition #3 evaluated true (24ms)
+99ms ââCancelling statement #3âs schedulesâŚ
+102ms ââRequesting time schedule wake up at Thu, Sep 16 2021 @ 7:16:00 AM EDT
+113ms ââComparison (enum) on is (string) on = true (1ms)
+114ms ââCondition #4 evaluated true (10ms)
+115ms ââCondition group #1 evaluated true (state did not change) (42ms)
+117ms ââCancelling statement #8âs schedulesâŚ
+134ms ââExecuted virtual command sendSMSNotification (13ms)
+136ms ââExecution stage complete. (67ms)
+137ms âSetting up scheduled job for Thu, Sep 16 2021 @ 7:16:00 AM EDT (in 86400s)
+144ms âEvent processed successfully (144ms)
9/15/2021, 7:14:59 AM +155ms
+1ms âReceived event [Home].time = 1631704500000 with a delay of -845ms
+62ms âRunTime Analysis CS > 37ms > PS > 7ms > PE > 18ms > CE
+65ms âRuntime (38423 bytes) successfully initialized in 7ms (v0.3.113.20210203) (64ms)
+66ms ââExecution stage started
+95ms ââComparison (time) 26099228 happens_daily_at (datetime) 1631703660000 = true (1ms)
+96ms ââTime restriction check passed
+98ms ââCancelling condition #3âs schedulesâŚ
+99ms ââCondition #3 evaluated true (25ms)
+100ms ââCancelling statement #3âs schedulesâŚ
+103ms ââRequesting time schedule wake up at Wed, Sep 15 2021 @ 7:16:00 AM EDT
+115ms ââComparison (enum) on is (string) on = true (1ms)
+116ms ââCondition #4 evaluated true (11ms)
+117ms ââCancelling condition #1âs schedulesâŚ
+118ms ââCondition group #1 evaluated true (state changed) (46ms)
+120ms ââCancelling statement #8âs schedulesâŚ
+134ms ââExecuted virtual command sendSMSNotification (9ms)
+137ms ââExecution stage complete. (71ms)
+138ms âSetting up scheduled job for Wed, Sep 15 2021 @ 7:16:00 AM EDT (in 60s)
+146ms âEvent processed successfully (146ms)