Making web request to IFTTT


#41

How did we miss that haha… nice catch


#42

Wow… Ok, removed the extra ] then tested… crazy now:
2 mins: “Attention” was said FOUR times. The open time said “2 minutes” now that I changed the wait to 121 seconds.
4 mins: “Attention” was only said twice, as it’s supposed to… but the full announcement went like this: “Attention, attention. It appears that the refrigera- attention, attention. It appears that the refrigerator door has been open for 4 minutes. I’m contacting Merrick”.
I did receive the text!

12/6/2017, 1:38:16 PM +514ms
+0ms ╔Received event [Refrigerator].contact = closed with a delay of 363ms
+93ms ║RunTime Analysis CS > 13ms > PS > 34ms > PE > 47ms > CE
+107ms ║Runtime (41596 bytes) successfully initialized in 34ms (v0.2.0ff.20171129) (105ms)
+107ms ║╔Execution stage started
+117ms ║║Comparison (enum) closed is (string) open = false (1ms)
+119ms ║║Cancelling condition #9’s schedules…
+120ms ║║Condition #9 evaluated false (6ms)
+120ms ║║Cancelling condition #14’s schedules…
+121ms ║║Condition group #14 evaluated false (state changed) (8ms)
+122ms ║║Cancelling condition #1’s schedules…
+123ms ║║Condition group #1 evaluated false (state changed) (11ms)
+125ms ║║Cancelling statement #16’s schedules…
+131ms ║║Executed virtual command setVariable (3ms)
+133ms ║╚Execution stage complete. (26ms)
+284ms ╚Event processed successfully (284ms)
12/6/2017, 1:38:04 PM +145ms
+1ms ╔Received event [Home].time = 1512585485771 with a delay of -1626ms
+153ms ║RunTime Analysis CS > 20ms > PS > 63ms > PE > 69ms > CE
+166ms ║Runtime (41597 bytes) successfully initialized in 63ms (v0.2.0ff.20171129) (163ms)
+167ms ║╔Execution stage started
+182ms ║║Cancelling statement #10’s schedules…
+221ms ║║Calculating (long) 240564 > (long) 210000 >> (boolean) true
+226ms ║║Calculating (string) Attention. Attention. It appears that the refrigerator door has been open for + (string) 4 minutes >> (string) Attention. Attention. It appears that the refrigerator door has been open for 4 minutes
+229ms ║║Calculating (string) Attention. Attention. It appears that the refrigerator door has been open for 4 minutes + (string) . >> (string) Attention. Attention. It appears that the refrigerator door has been open for 4 minutes.
+232ms ║║Calculating (string) Attention. Attention. It appears that the refrigerator door has been open for 4 minutes. + (string) I’m contacting Merrick >> (string) Attention. Attention. It appears that the refrigerator door has been open for 4 minutes. I’m contacting Merrick
+860ms ║║Executed physical command [Kitchen Sonos].playText([Attention. Attention. It appears that the refrigerator door has been open for 4 minutes. I’m contacting Merrick]) (622ms)
+860ms ║║Executed [Kitchen Sonos].playText (624ms)
+874ms ║║Comparison (long) 241216 is_between (integer) 210000 … (integer) 270000 = true (3ms)
+876ms ║║Cancelling condition #8’s schedules…
+877ms ║║Condition #8 evaluated true (14ms)
+878ms ║║Cancelling condition #5’s schedules…
+879ms ║║Condition group #5 evaluated true (state changed) (15ms)
+881ms ║║Cancelling statement #6’s schedules…
+894ms ║║Calculating (string) Merrick, the Refrigerator has been open for + (string) 4 minutes >> (string) Merrick, the Refrigerator has been open for 4 minutes
+924ms ║║Executed virtual command sendSMSNotification (24ms)
+927ms ║║Cancelling statement #12’s schedules…
+1193ms ║║Calculating (integer) 0 + (integer) 1 >> (integer) 1
+1197ms ║║Executed virtual command setVariable (2ms)
+1209ms ║║Comparison (enum) open is (string) open = true (2ms)
+1211ms ║║Condition #9 evaluated true (11ms)
+1216ms ║║Comparison (integer) 1 is_less_than (integer) 4 = true (2ms)
+1218ms ║║Condition #15 evaluated true (6ms)
+1219ms ║║Condition group #14 evaluated true (state did not change) (19ms)
+1220ms ║║Condition group #1 evaluated true (state did not change) (21ms)
+1222ms ║║Cancelling statement #2’s schedules…
+1226ms ║║Executed virtual command wait (1ms)
+1227ms ║║Requesting a wake up for Wed, Dec 6 2017 @ 1:40:06 PM EST (in 121.0s)
+1235ms ║╚Execution stage complete. (1069ms)
+1237ms ║Setting up scheduled job for Wed, Dec 6 2017 @ 1:40:06 PM EST (in 120.992s)
+1277ms ╚Event processed successfully (1277ms)
12/6/2017, 1:36:04 PM +103ms
+1ms ╔Received event [Home].time = 1512585365000 with a delay of -897ms
+91ms ║RunTime Analysis CS > 13ms > PS > 36ms > PE > 42ms > CE
+104ms ║Runtime (41596 bytes) successfully initialized in 36ms (v0.2.0ff.20171129) (103ms)
+106ms ║╔Execution stage started
+119ms ║║Cancelling statement #10’s schedules…
+144ms ║║Calculating (long) 120445 > (long) 210000 >> (boolean) false
+148ms ║║Calculating (string) Attention. Attention. It appears that the refrigerator door has been open for + (string) 2 minutes >> (string) Attention. Attention. It appears that the refrigerator door has been open for 2 minutes
+151ms ║║Calculating (string) Attention. Attention. It appears that the refrigerator door has been open for 2 minutes + (string) . >> (string) Attention. Attention. It appears that the refrigerator door has been open for 2 minutes.
+154ms ║║Calculating (string) Attention. Attention. It appears that the refrigerator door has been open for 2 minutes. + (string) >> (string) Attention. Attention. It appears that the refrigerator door has been open for 2 minutes.
+623ms ║║Executed physical command [Kitchen Sonos].playText([Attention. Attention. It appears that the refrigerator door has been open for 2 minutes.]) (465ms)
+624ms ║║Executed [Kitchen Sonos].playText (467ms)
+636ms ║║Comparison (long) 120936 is_between (integer) 210000 … (integer) 270000 = false (3ms)
+638ms ║║Condition #8 evaluated false (10ms)
+638ms ║║Condition group #5 evaluated false (state did not change) (11ms)
+648ms ║║Comparison (enum) open is (string) open = true (1ms)
+650ms ║║Condition #9 evaluated true (9ms)
+654ms ║║Comparison (integer) 0 is_less_than (integer) 4 = true (1ms)
+655ms ║║Condition #15 evaluated true (4ms)
+656ms ║║Condition group #14 evaluated true (state did not change) (16ms)
+657ms ║║Condition group #1 evaluated true (state did not change) (17ms)
+659ms ║║Cancelling statement #2’s schedules…
+666ms ║║Executed virtual command wait (4ms)
+667ms ║║Requesting a wake up for Wed, Dec 6 2017 @ 1:38:05 PM EST (in 121.0s)
+671ms ║╚Execution stage complete. (567ms)
+673ms ║Setting up scheduled job for Wed, Dec 6 2017 @ 1:38:05 PM EST (in 120.996s)
+694ms ╚Event processed successfully (694ms)
12/6/2017, 1:34:03 PM +875ms
+1ms ╔Received event [Refrigerator].contact = open with a delay of 77ms
+87ms ║RunTime Analysis CS > 12ms > PS > 32ms > PE > 42ms > CE
+97ms ║Runtime (41601 bytes) successfully initialized in 32ms (v0.2.0ff.20171129) (95ms)
+98ms ║╔Execution stage started
+107ms ║║Comparison (enum) open is (string) open = true (1ms)
+109ms ║║Cancelling condition #9’s schedules…
+109ms ║║Condition #9 evaluated true (6ms)
+113ms ║║Comparison (integer) 0 is_less_than (integer) 4 = true (1ms)
+115ms ║║Condition #15 evaluated true (5ms)
+116ms ║║Cancelling condition #14’s schedules…
+116ms ║║Condition group #14 evaluated true (state changed) (13ms)
+117ms ║║Cancelling condition #1’s schedules…
+118ms ║║Condition group #1 evaluated true (state changed) (16ms)
+120ms ║║Cancelling statement #2’s schedules…
+123ms ║║Executed virtual command wait (0ms)
+124ms ║║Requesting a wake up for Wed, Dec 6 2017 @ 1:36:04 PM EST (in 121.0s)
+129ms ║╚Execution stage complete. (32ms)
+130ms ║Setting up scheduled job for Wed, Dec 6 2017 @ 1:36:05 PM EST (in 120.995s)
+151ms ╚Event processed successfully (150ms)
12/6/2017, 1:32:53 PM +439ms
+4ms ╔Starting piston… (v0.2.0ff.20171129)
+228ms ║╔Subscribing to devices…
+247ms ║║Subscribing to Refrigerator.contact…
+328ms ║║Subscribing to Kitchen Sonos…
+329ms ║╚Finished subscribing (114ms)
+358ms ║Comparison (enum) closed is (string) open = false (4ms)
+365ms ║Comparison (integer) 0 is_less_than (integer) 4 = true (4ms)
+387ms ║Comparison (long) 1020205 is_between (integer) 210000 … (integer) 270000 = false (5ms)
+405ms ╚Piston successfully started (404ms)
12/6/2017, 1:21:53 PM +63ms
+0ms ╔Starting piston… (v0.2.0ff.20171129)
+321ms ║╔Subscribing to devices…
+338ms ║║Subscribing to Refrigerator.contact…
+454ms ║║Subscribing to Kitchen Sonos…
+455ms ║╚Finished subscribing (150ms)
+486ms ║Comparison (enum) closed is (string) open = false (2ms)
+494ms ║Comparison (integer) 0 is_less_than (integer) 4 = true (4ms)
+512ms ║Calculating (enum) closed + (error) Variable '
+522ms ║Comparison (error) Invalid device is_between (integer) 210000 … (integer) 270000 = false (4ms)
+541ms ╚Piston successfully started (541ms)
12/6/2017, 1:15:53 PM +798ms
+1ms ╔Received event [Refrigerator].contact = closed with a delay of 184ms
+90ms ║RunTime Analysis CS > 13ms > PS > 42ms > PE > 35ms > CE
+104ms ║Runtime (41838 bytes) successfully initialized in 42ms (v0.2.0ff.20171129) (101ms)
+104ms ║╔Execution stage started
+114ms ║║Comparison (enum) closed is (string) open = false (2ms)
+115ms ║║Cancelling condition #9’s schedules…
+116ms ║║Condition #9 evaluated false (6ms)
+117ms ║║Cancelling condition #14’s schedules…
+118ms ║║Condition group #14 evaluated false (state changed) (8ms)
+119ms ║║Cancelling condition #1’s schedules…
+119ms ║║Condition group #1 evaluated false (state changed) (10ms)
+122ms ║║Cancelling statement #16’s schedules…
+127ms ║║Executed virtual command setVariable (3ms)
+129ms ║╚Execution stage complete. (25ms)
+138ms ╚Event processed successfully (138ms)
12/6/2017, 1:15:39 PM +389ms
+0ms ╔Received event [Refrigerator].contact = open with a delay of 69ms
+75ms ║RunTime Analysis CS > 12ms > PS > 33ms > PE > 31ms > CE
+85ms ║Runtime (41840 bytes) successfully initialized in 33ms (v0.2.0ff.20171129) (83ms)
+86ms ║╔Execution stage started
+95ms ║║Comparison (enum) open is (string) open = true (1ms)
+97ms ║║Cancelling condition #9’s schedules…
+97ms ║║Condition #9 evaluated true (6ms)
+101ms ║║Comparison (integer) 0 is_less_than (integer) 4 = true (1ms)
+102ms ║║Condition #15 evaluated true (4ms)
+103ms ║║Cancelling condition #14’s schedules…
+104ms ║║Condition group #14 evaluated true (state changed) (13ms)
+105ms ║║Cancelling condition #1’s schedules…
+106ms ║║Condition group #1 evaluated true (state changed) (15ms)
+108ms ║║Cancelling statement #2’s schedules…
+111ms ║║Executed virtual command wait (1ms)
+112ms ║║Requesting a wake up for Wed, Dec 6 2017 @ 1:17:39 PM EST (in 120.0s)
+116ms ║╚Execution stage complete. (31ms)
+118ms ║Setting up scheduled job for Wed, Dec 6 2017 @ 1:17:39 PM EST (in 119.995s)
+138ms ╚Event processed successfully (139ms)
12/6/2017, 1:12:40 PM +279ms
+1ms ╔Received event [Refrigerator].contact = closed with a delay of 359ms
+98ms ║RunTime Analysis CS > 13ms > PS > 53ms > PE > 32ms > CE
+113ms ║Runtime (41838 bytes) successfully initialized in 53ms (v0.2.0ff.20171129) (111ms)
+114ms ║╔Execution stage started
+123ms ║║Comparison (enum) closed is (string) open = false (1ms)
+125ms ║║Cancelling condition #9’s schedules…
+126ms ║║Condition #9 evaluated false (5ms)
+127ms ║║Cancelling condition #14’s schedules…
+127ms ║║Condition group #14 evaluated false (state changed) (8ms)
+128ms ║║Cancelling condition #1’s schedules…
+129ms ║║Condition group #1 evaluated false (state changed) (10ms)
+131ms ║║Cancelling statement #16’s schedules…
+136ms ║║Executed virtual command setVariable (2ms)
+139ms ║╚Execution stage complete. (26ms)
+148ms ╚Event processed successfully (148ms)
12/6/2017, 1:12:03 PM +102ms
+1ms ╔Received event [Home].time = 1512583924433 with a delay of -1331ms
+93ms ║RunTime Analysis CS > 21ms > PS > 41ms > PE > 30ms > CE
+106ms ║Runtime (41836 bytes) successfully initialized in 41ms (v0.2.0ff.20171129) (103ms)
+107ms ║╔Execution stage started
+122ms ║║Executed virtual command wait (0ms)
+123ms ║║Waiting for 1000ms
+1128ms ║║Cancelling statement #10’s schedules…
+1159ms ║║Calculating (long) 239657 > (long) 210000 >> (boolean) true
+1165ms ║║Calculating (string) Attention. Attention. It appears that the refrigerator door has been open for + (string) 3 minutes >> (string) Attention. Attention. It appears that the refrigerator door has been open for 3 minutes
+1168ms ║║Calculating (string) Attention. Attention. It appears that the refrigerator door has been open for 3 minutes + (string) . >> (string) Attention. Attention. It appears that the refrigerator door has been open for 3 minutes.
+1171ms ║║Calculating (string) Attention. Attention. It appears that the refrigerator door has been open for 3 minutes. + (string) I’m contacting Merrick >> (string) Attention. Attention. It appears that the refrigerator door has been open for 3 minutes. I’m contacting Merrick
+1333ms ║║Executed physical command [Kitchen Sonos].playText([Attention. Attention. It appears that the refrigerator door has been open for 3 minutes. I’m contacting Merrick]) (158ms)
+1334ms ║║Executed [Kitchen Sonos].playText (159ms)
+1347ms ║║Calculating (enum) open + (error) Variable '
+1355ms ║║Comparison (error) Invalid device is_between (integer) 210000 … (integer) 270000 = false (4ms)
+1357ms ║║Condition #8 evaluated false (20ms)
+1358ms ║║Condition group #5 evaluated false (state did not change) (21ms)
+1367ms ║║Comparison (enum) open is (string) open = true (1ms)
+1369ms ║║Condition #9 evaluated true (8ms)
+1374ms ║║Comparison (integer) 0 is_less_than (integer) 4 = true (2ms)
+1376ms ║║Condition #15 evaluated true (5ms)
+1377ms ║║Condition group #14 evaluated true (state did not change) (16ms)
+1378ms ║║Condition group #1 evaluated true (state did not change) (18ms)
+1380ms ║║Cancelling statement #2’s schedules…
+1384ms ║║Executed virtual command wait (1ms)
+1385ms ║║Requesting a wake up for Wed, Dec 6 2017 @ 1:14:04 PM EST (in 120.0s)
+1390ms ║╚Execution stage complete. (1284ms)
+1392ms ║Setting up scheduled job for Wed, Dec 6 2017 @ 1:14:04 PM EST (in 119.995s)
+1411ms ╚Event processed successfully (1411ms)
12/6/2017, 1:10:03 PM +102ms
+0ms ╔Received event [Home].time = 1512583804911 with a delay of -1810ms
+81ms ║RunTime Analysis CS > 14ms > PS > 43ms > PE > 25ms > CE
+95ms ║Runtime (41836 bytes) successfully initialized in 43ms (v0.2.0ff.20171129) (93ms)
+97ms ║╔Execution stage started
+111ms ║║Executed virtual command wait (0ms)
+112ms ║║Waiting for 1000ms
+1117ms ║║Cancelling statement #10’s schedules…
+1158ms ║║Calculating (long) 119656 > (long) 210000 >> (boolean) false
+1165ms ║║Calculating (string) Attention. Attention. It appears that the refrigerator door has been open for + (string) 1 minute >> (string) Attention. Attention. It appears that the refrigerator door has been open for 1 minute
+1170ms ║║Calculating (string) Attention. Attention. It appears that the refrigerator door has been open for 1 minute + (string) . >> (string) Attention. Attention. It appears that the refrigerator door has been open for 1 minute.
+1173ms ║║Calculating (string) Attention. Attention. It appears that the refrigerator door has been open for 1 minute. + (string) >> (string) Attention. Attention. It appears that the refrigerator door has been open for 1 minute.
+1277ms ║║Executed physical command [Kitchen Sonos].playText([Attention. Attention. It appears that the refrigerator door has been open for 1 minute.]) (98ms)
+1278ms ║║Executed [Kitchen Sonos].playText (100ms)
+1290ms ║║Calculating (enum) open + (error) Variable '
+1297ms ║║Comparison (error) Invalid device is_between (integer) 210000 … (integer) 270000 = false (4ms)
+1299ms ║║Condition #8 evaluated false (18ms)
+1301ms ║║Condition group #5 evaluated false (state did not change) (19ms)
+1313ms ║║Comparison (enum) open is (string) open = true (2ms)
+1315ms ║║Condition #9 evaluated true (10ms)
+1320ms ║║Comparison (integer) 0 is_less_than (integer) 4 = true (2ms)
+1321ms ║║Condition #15 evaluated true (5ms)
+1322ms ║║Condition group #14 evaluated true (state did not change) (18ms)
+1323ms ║║Condition group #1 evaluated true (state did not change) (20ms)
+1325ms ║║Cancelling statement #2’s schedules…
+1330ms ║║Executed virtual command wait (0ms)
+1331ms ║║Requesting a wake up for Wed, Dec 6 2017 @ 1:12:04 PM EST (in 120.0s)
+1336ms ║╚Execution stage complete. (1240ms)
+1337ms ║Setting up scheduled job for Wed, Dec 6 2017 @ 1:12:04 PM EST (in 119.995s)
+1357ms ╚Event processed successfully (1356ms)
12/6/2017, 1:08:04 PM +784ms
+2ms ╔Received event [Refrigerator].contact = open with a delay of 184ms
+90ms ║RunTime Analysis CS > 15ms > PS > 51ms > PE > 23ms > CE
+98ms ║Runtime (41841 bytes) successfully initialized in 51ms (v0.2.0ff.20171129) (96ms)
+99ms ║╔Execution stage started
+109ms ║║Comparison (enum) open is (string) open = true (2ms)
+110ms ║║Cancelling condition #9’s schedules…
+111ms ║║Condition #9 evaluated true (6ms)
+115ms ║║Comparison (integer) 0 is_less_than (integer) 4 = true (1ms)
+116ms ║║Condition #15 evaluated true (4ms)
+117ms ║║Cancelling condition #14’s schedules…
+118ms ║║Condition group #14 evaluated true (state changed) (14ms)
+119ms ║║Cancelling condition #1’s schedules…
+120ms ║║Condition group #1 evaluated true (state changed) (16ms)
+122ms ║║Cancelling statement #2’s schedules…
+125ms ║║Executed virtual command wait (0ms)
+126ms ║║Requesting a wake up for Wed, Dec 6 2017 @ 1:10:04 PM EST (in 120.0s)
+131ms ║╚Execution stage complete. (32ms)
+132ms ║Setting up scheduled job for Wed, Dec 6 2017 @ 1:10:04 PM EST (in 119.995s)
+150ms ╚Event processed successfully (150ms)
Clear Full


#43

The lights were off :wink: now that we have logs we can see.

Add a wait after the last message. Something like 30 seconds. Your while loop is immediately getting back into things after the last message and I think that might be messing things up


#44

So sorry! I wasn’t purposely not sending logs… I didn’t know it’d be helpful. :roll_eyes:


#45

Haha very helpful indeed but no worries


#46

Do you mean after the text message? Or at line 34?


#47

After the text message at line 39/40


#48

At 2 mins: “Attention” said 3 times, all the rest good.
At 4 mins: “Attention” said 4 times, all the rest good (and I recvd the SMS)


#49

You need a wait after the speak text on line 32/33

Sorry, I think I over complicated things, I don’t have an audio device so as you know I substituted with a push notification. My piston example didn’t allow for the time it takes to read the message hence the need for a wait after, but then that throws all the timing off… the following seems to be a simpler method to achieve your needs…


#50

Think I’m safe to trash what I have, and then import your inz8j? I know I’ll have to designate the contact sensors, phone number, and change to ‘speak’


#51

Give it a try… but just pause the other one for now…


#52

Does this look correct? I’ll test now… but it’s a long test! LOL


#53

Out of curiosity, when I specify a Volume level (which is optional), why don’t I see it in the coding?


#54

There’s a few statements that do that… Never seen this example as I don’t have audio devices…


#55

What is pushing that piston through the cases? Is it just going to fall through?


#56

Tested:
2 mins said 1 mins.
4 mins said 3 mins, contacting Merrick, SMS received.
6 mins said 5 mins, contacting Merrick
8 mins said 7 mins, contacting Merrick
10 mins said 8 mins, contacting Merrick

I guess it never did case 2 or case 3


#57

Logs?


#58

12/6/2017, 4:31:54 PM +524ms
+1ms ╔Received event [Refrigerator].contact = closed with a delay of 72ms
+79ms ║RunTime Analysis CS > 12ms > PS > 36ms > PE > 31ms > CE
+93ms ║Runtime (41936 bytes) successfully initialized in 36ms (v0.2.0ff.20171129) (91ms)
+94ms ║╔Execution stage started
+103ms ║║Comparison (enum) closed is (string) open = false (1ms)
+105ms ║║Cancelling condition #32’s schedules…
+106ms ║║Condition #32 evaluated false (7ms)
+107ms ║║Cancelling condition #8’s schedules…
+107ms ║║Condition group #8 evaluated false (state changed) (8ms)
+110ms ║║Cancelling statement #9’s schedules…
+111ms ║║Executed virtual command cancelTasks (0ms)
+114ms ║╚Execution stage complete. (20ms)
+131ms ╚Event processed successfully (130ms)
12/6/2017, 4:31:15 PM +308ms
+1ms ╔Received event [Home].time = 1512595876554 with a delay of -1246ms
+89ms ║RunTime Analysis CS > 14ms > PS > 41ms > PE > 34ms > CE
+101ms ║Runtime (41935 bytes) successfully initialized in 41ms (v0.2.0ff.20171129) (99ms)
+102ms ║╔Execution stage started
+117ms ║║Evaluating switch with values [[i:12:null:0, v:[t:decimal, v:1.0, vt:string]]]
+124ms ║║Comparison (decimal) 1.0 is (integer) 0 = false (1ms)
+134ms ║║Comparison (decimal) 1.0 is (integer) 1 = true (1ms)
+147ms ║║Evaluating switch with values [[i:12:null:0, v:[t:decimal, v:2.0, vt:string]]]
+151ms ║║Comparison (decimal) 2.0 is (integer) 0 = false (2ms)
+154ms ║║Comparison (decimal) 2.0 is (integer) 1 = false (2ms)
+158ms ║║Comparison (decimal) 2.0 is (integer) 2 = true (2ms)
+160ms ║║Cancelling statement #39’s schedules…
+194ms ║║Executed physical command [Kitchen Sonos].playText([Attention. Attention. The refrigerator door has been open for 6 minutes and Merrick has been notified., 3]) (27ms)
+195ms ║║Executed [Kitchen Sonos].playText (28ms)
+198ms ║║Cancelling statement #24’s schedules…
+201ms ║║Executed virtual command wait (0ms)
+203ms ║║Requesting a wake up for Wed, Dec 6 2017 @ 4:33:15 PM EST (in 120.0s)
+209ms ║╚Execution stage complete. (107ms)
+211ms ║Setting up scheduled job for Wed, Dec 6 2017 @ 4:33:15 PM EST (in 119.993s)
+230ms ╚Event processed successfully (230ms)
12/6/2017, 4:29:16 PM +323ms
+1ms ╔Received event [Home].time = 1512595757703 with a delay of -1381ms
+94ms ║RunTime Analysis CS > 19ms > PS > 47ms > PE > 29ms > CE
+108ms ║Runtime (41935 bytes) successfully initialized in 47ms (v0.2.0ff.20171129) (105ms)
+109ms ║╔Execution stage started
+123ms ║║Evaluating switch with values [[i:12:null:0, v:[t:decimal, v:0.0, vt:string]]]
+127ms ║║Comparison (decimal) 0.0 is (integer) 0 = true (2ms)
+143ms ║║Evaluating switch with values [[i:12:null:0, v:[t:decimal, v:1.0, vt:string]]]
+147ms ║║Comparison (decimal) 1.0 is (integer) 0 = false (1ms)
+150ms ║║Comparison (decimal) 1.0 is (integer) 1 = true (2ms)
+153ms ║║Cancelling statement #37’s schedules…
+191ms ║║Executed physical command [Kitchen Sonos].playText([Attention. Attention. It appears that the refrigerator door has been open for 4 minutes. I’m contacting Merrick, 3]) (30ms)
+192ms ║║Executed [Kitchen Sonos].playText (31ms)
+194ms ║║Cancelling statement #20’s schedules…
+223ms ║║Executed virtual command sendSMSNotification (23ms)
+230ms ║║Executed virtual command wait (4ms)
+231ms ║║Requesting a wake up for Wed, Dec 6 2017 @ 4:31:16 PM EST (in 120.0s)
+237ms ║╚Execution stage complete. (129ms)
+239ms ║Setting up scheduled job for Wed, Dec 6 2017 @ 4:31:16 PM EST (in 119.993s)
+258ms ╚Event processed successfully (258ms)
12/6/2017, 4:27:17 PM +297ms
+1ms ╔Received event [Home].time = 1512595638848 with a delay of -1551ms
+321ms ║RunTime Analysis CS > 14ms > PS > 273ms > PE > 33ms > CE
+333ms ║Runtime (41938 bytes) successfully initialized in 273ms (v0.2.0ff.20171129) (332ms)
+334ms ║╔Execution stage started
+350ms ║║Evaluating switch with values [[i:12:null:0, v:[t:decimal, v:0.0, vt:string]]]
+354ms ║║Comparison (decimal) 0.0 is (integer) 0 = true (2ms)
+360ms ║║Cancelling statement #33’s schedules…
+396ms ║║Executed physical command [Kitchen Sonos].playText([Attention. Attention. It appears that the refrigerator door has been open for 2 minutes. Please check on it., 3]) (28ms)
+397ms ║║Executed [Kitchen Sonos].playText (30ms)
+400ms ║║Cancelling statement #35’s schedules…
+404ms ║║Executed virtual command wait (0ms)
+406ms ║║Requesting a wake up for Wed, Dec 6 2017 @ 4:29:17 PM EST (in 120.0s)
+412ms ║╚Execution stage complete. (78ms)
+414ms ║Setting up scheduled job for Wed, Dec 6 2017 @ 4:29:17 PM EST (in 119.993s)
+431ms ╚Event processed successfully (431ms)
12/6/2017, 4:25:18 PM +722ms
+1ms ╔Received event [Refrigerator].contact = open with a delay of 108ms
+86ms ║RunTime Analysis CS > 18ms > PS > 38ms > PE > 29ms > CE
+96ms ║Runtime (41942 bytes) successfully initialized in 38ms (v0.2.0ff.20171129) (94ms)
+97ms ║╔Execution stage started
+106ms ║║Comparison (enum) open is (string) open = true (1ms)
+108ms ║║Cancelling condition #32’s schedules…
+108ms ║║Condition #32 evaluated true (6ms)
+109ms ║║Cancelling condition #8’s schedules…
+110ms ║║Condition group #8 evaluated true (state changed) (8ms)
+117ms ║║Evaluating switch with values [[i:12:null:0, v:[t:decimal, v:0.0, vt:string]]]
+119ms ║║Comparison (decimal) 0.0 is (integer) 0 = true (1ms)
+122ms ║║Cancelling statement #17’s schedules…
+125ms ║║Executed virtual command wait (0ms)
+126ms ║║Requesting a wake up for Wed, Dec 6 2017 @ 4:27:18 PM EST (in 120.0s)
+131ms ║╚Execution stage complete. (35ms)
+133ms ║Setting up scheduled job for Wed, Dec 6 2017 @ 4:27:18 PM EST (in 119.994s)
+151ms ╚Event processed successfully (151ms)
Clear Full


#59

1, 3, 5 and 7 are not even programmed into the piston… the text in each case is hard coded, they just don’t change like that on their own, and your logs show correct read out of 2, 4, 6 and you closed the contact before 8, so look old like it worked perfectly.

I’m starting to feel trolled!


#60

Yikes, I left the previous version running instead of pausing it… Sorry! I’ll fix and test again this evening.