Do, If, When, Repeat, While loop Help


#41

I like the fail safe idea! Have absolutely no idea on how to do that LOL.

What I also thought was that the way the first group of If Then Else statements were running, that not all of the comparisons would be done with the same data since we asked for the forecasted temperature separately 4 or 5 times…So I took a stab at writing an integer variable and inserted it into the statements…there was not a “between” option so I used “In a range of”.

Please look at it and tell me what you think.

6/12/2018, 8:10:45 PM +152ms
+0ms ╔Received event [Home].test = 1528855845151 with a delay of 0ms
+201ms ║RunTime Analysis CS > 17ms > PS > 81ms > PE > 103ms > CE
+205ms ║Runtime (74378 bytes) successfully initialized in 81ms (v0.3.104.20180323) (204ms)
+207ms ║╔Execution stage started
+237ms ║║Comparison (time) 72645380 is_between (time) 15000000 … (time) 75000000 = true (7ms)
+238ms ║║Time restriction check passed
+240ms ║║Condition #346 evaluated true (12ms)
+241ms ║║Condition group #180 evaluated true (state did not change) (14ms)
+250ms ║║Comparison (decimal) 76.0 is_greater_than_or_equal_to (integer) 75 = true (2ms)
+251ms ║║Condition #173 evaluated true (9ms)
+252ms ║║Condition group #180 evaluated true (state did not change) (10ms)
+258ms ║║Comparison (boolean) false is (boolean) true = false (1ms)
+260ms ║║Condition #343 evaluated false (5ms)
+261ms ║║Condition group #174 evaluated false (state did not change) (7ms)
+267ms ║║Comparison (boolean) false is (boolean) true = false (2ms)
+268ms ║║Condition #344 evaluated false (5ms)
+269ms ║║Condition group #224 evaluated false (state did not change) (6ms)
+276ms ║║Comparison (boolean) false is (boolean) true = false (1ms)
+277ms ║║Condition #345 evaluated false (5ms)
+278ms ║║Condition group #240 evaluated false (state did not change) (6ms)
+284ms ║║Comparison (boolean) false is (boolean) true = false (1ms)
+286ms ║║Condition #348 evaluated false (5ms)
+287ms ║║Condition group #253 evaluated false (state did not change) (7ms)
+292ms ║║Comparison (time) 72645442 happens_daily_at (time) 15000000 = false (0ms)
+294ms ║║Condition #284 evaluated false (4ms)
+299ms ║║Cancelling statement #284’s schedules…
+302ms ║║Requesting time schedule wake up at Wed, Jun 13 2018 @ 4:10:00 AM MDT
+307ms ║║Condition group #283 evaluated false (state did not change) (17ms)
+329ms ║║Comparison (time) 72645471 is_between (time) 76200000 … (time) 13200000 = false (7ms)
+330ms ║║Condition #360 evaluated false (11ms)
+331ms ║║Condition group #313 evaluated false (state did not change) (13ms)
+344ms ║║Comparison (time) 72645486 is_between (time) 76200000 … (time) 13200000 = false (7ms)
+346ms ║║Condition #361 evaluated false (11ms)
+347ms ║║Condition group #325 evaluated false (state did not change) (12ms)
+365ms ║╚Execution stage complete. (159ms)
+371ms ║Setting up scheduled job for Tue, Jun 12 2018 @ 9:00:00 PM MDT (in 2954.478s), with 5 more jobs pending
+385ms ╚Event processed successfully (386ms)


#42

What I am seeing, I think is when the forecast value doesn’t return the proper value it sets the forecast temp to 0…

I wonder if that is true, then I should have it rerun a forecasted temp if the value comes back at 0 during these months…since it will never be 0 in the middle of the summer.

6/12/2018, 8:20:09 PM +381ms
+1ms ╔Starting piston… (v0.3.104.20180323)
+221ms ║╔Subscribing to devices…
+332ms ║║Subscribing to Den Temp.temperature…
+459ms ║║Subscribing to Nest Downstairs…
+460ms ║║Subscribing to Nest Upstairs…
+461ms ║╚Finished subscribing (242ms)
+518ms ║Comparison (decimal) 0.0 is_greater_than (integer) 82 = false (3ms)
+530ms ║Comparison (decimal) 0.0 is_inside_of_range (integer) 75 … (integer) 82 = false (2ms)
+542ms ║Comparison (decimal) 0.0 is_inside_of_range (integer) 69 … (integer) 75 = false (2ms)
+556ms ║Comparison (decimal) 0.0 is_inside_of_range (integer) 69 … (integer) 1 = false (3ms)
+886ms ║Comparison (decimal) 62.3 is_less_than (integer) 69 = true (2ms)
+906ms ║Comparison (time) 73210277 is_between (time) 15000000 … (time) 75000000 = true (7ms)
+907ms ║Time restriction check passed
+916ms ║Comparison (decimal) 76.0 is_greater_than_or_equal_to (integer) 75 = true (2ms)
+922ms ║Comparison (boolean) false is (boolean) true = false (1ms)
+930ms ║Comparison (boolean) false is (boolean) true = false (1ms)
+938ms ║Comparison (boolean) false is (boolean) true = false (2ms)
+946ms ║Comparison (boolean) false is (boolean) true = false (1ms)
+953ms ║Comparison (boolean) false is (boolean) true = false (1ms)
+961ms ║Comparison (boolean) false is (boolean) true = false (1ms)
+969ms ║Comparison (boolean) false is (boolean) true = false (2ms)
+976ms ║Comparison (boolean) false is (boolean) true = false (1ms)
+983ms ║Comparison (time) 73210362 happens_daily_at (time) 15000000 = false (1ms)
+985ms ║Cancelling statement #284’s schedules…
+989ms ║Requesting time schedule wake up at Wed, Jun 13 2018 @ 4:10:00 AM MDT
+995ms ║Comparison (boolean) false is (boolean) true = false (1ms)
+1002ms ║Comparison (boolean) false is (boolean) true = false (1ms)
+1009ms ║Comparison (boolean) false is (boolean) true = false (1ms)
+1017ms ║Comparison (boolean) false is (boolean) true = false (2ms)
+1025ms ║Comparison (boolean) false is (boolean) true = false (1ms)
+1046ms ║Comparison (decimal) 0.0 is_greater_than (integer) 77 = false (3ms)
+1057ms ║Comparison (decimal) 0.0 is_less_than_or_equal_to (integer) 68 = true (2ms)
+1079ms ║Comparison (decimal) 61.2 is_greater_than (integer) 77 = false (1ms)
+1094ms ║Comparison (time) 73210466 is_between (time) 76200000 … (time) 13200000 = false (6ms)
+1099ms ║Comparison (boolean) false is (boolean) true = false (1ms)
+1117ms ║Comparison (time) 73210490 is_between (time) 76200000 … (time) 13200000 = false (6ms)
+1125ms ║Comparison (decimal) 76.0 is_greater_than (integer) 76 = false (1ms)
+1131ms ║Comparison (boolean) false is (boolean) false = true (1ms)
+1144ms ║Setting up scheduled job for Tue, Jun 12 2018 @ 8:24:00 PM MDT (in 229.477s), with 5 more jobs pending
+1162ms ╚Piston successfully started (1161ms)

Yep, tried to run the program with a 8 pm time line for real and:

6/12/2018, 8:26:59 PM +81ms
+1ms ╔Received event [Home].time = 1528856820000 with a delay of -919ms
+303ms ║RunTime Analysis CS > 21ms > PS > 118ms > PE > 163ms > CE
+308ms ║Runtime (74414 bytes) successfully initialized in 118ms (v0.3.104.20180323) (306ms)
+310ms ║╔Execution stage started
+343ms ║║Cancelling statement #335’s schedules…
+351ms ║║Executed virtual command setVariable (4ms)
+359ms ║║Executed virtual command setVariable (4ms)
+367ms ║║Executed virtual command setVariable (4ms)
+374ms ║║Executed virtual command setVariable (2ms)
+385ms ║║Comparison (decimal) 0.0 is_greater_than (integer) 82 = false (2ms)
+387ms ║║Condition #189 evaluated false (9ms)
+389ms ║║Condition group #184 evaluated false (state did not change) (11ms)
+402ms ║║Comparison (decimal) 0.0 is_inside_of_range (integer) 75 … (integer) 82 = false (3ms)
+404ms ║║Condition #375 evaluated false (12ms)
+405ms ║║Condition group #190 evaluated false (state did not change) (14ms)
+418ms ║║Comparison (decimal) 0.0 is_inside_of_range (integer) 69 … (integer) 75 = false (3ms)
+420ms ║║Condition #374 evaluated false (11ms)
+422ms ║║Condition group #196 evaluated false (state did not change) (13ms)
+435ms ║║Comparison (decimal) 0.0 is_inside_of_range (integer) 69 … (integer) 1 = false (3ms)
+438ms ║║Condition #373 evaluated false (11ms)
+439ms ║║Condition group #368 evaluated false (state did not change) (14ms)
+448ms ║╚Execution stage complete. (139ms)
+453ms ║Setting up scheduled job for Tue, Jun 12 2018 @ 9:00:00 PM MDT (in 1980.467s), with 5 more jobs pending
+464ms ╚Event processed successfully (463ms)


#43

It’s doing that because you’re setting the 2_pm… variable to $index at the top. Get rid of that and make it so there’s no default/initial value set for it.

Just go back to what you had for your post with nvcsu as the import code, modify it to run in a few minutes, then post up the logs. We’re making too many changes now to ever figure out what the real issue with it running is.


#44

I will do what you asked with the nvcsu as the import code and run it in a sec and post as well, BUT putting the variable in for 2pm forecast seems to have worked and makes a one time calculation to make all the following decisions.

But, I think there is maybe either an error or a time out issue. I believe the error sets the forecasted temperature to either an error or the number 0…

Here is that piston and the logs with it…With the original to come in a sec.

6/12/2018, 9:11:32 PM +947ms
+211ms ╔Stopping piston…
+306ms ╚Piston successfully stopped (96ms)
6/12/2018, 9:11:18 PM +134ms
+0ms ╔Starting piston… (v0.3.104.20180323)
+309ms ║╔Subscribing to devices…
+388ms ║║Subscribing to Den Temp.temperature…
+484ms ║║Subscribing to Nest Downstairs…
+485ms ║║Subscribing to Nest Upstairs…
+486ms ║╚Finished subscribing (191ms)
+535ms ║Comparison (decimal) 68.0 is_greater_than (integer) 82 = false (2ms)
+547ms ║Comparison (decimal) 68.0 is_inside_of_range (integer) 75 … (integer) 82 = false (3ms)
+560ms ║Comparison (decimal) 68.0 is_inside_of_range (integer) 69 … (integer) 75 = false (4ms)
+573ms ║Comparison (decimal) 68.0 is_inside_of_range (integer) 69 … (integer) 1 = true (4ms)
+926ms ║Comparison (decimal) 61.2 is_less_than (integer) 69 = true (2ms)
+946ms ║Comparison (time) 76279070 is_between (time) 15000000 … (time) 75000000 = false (8ms)
+956ms ║Comparison (decimal) 77.0 is_greater_than_or_equal_to (integer) 75 = true (2ms)
+957ms ║Cancelling condition #180’s schedules…
+963ms ║Comparison (boolean) false is (boolean) true = false (2ms)
+971ms ║Comparison (boolean) false is (boolean) true = false (1ms)
+978ms ║Comparison (boolean) false is (boolean) true = false (2ms)
+985ms ║Comparison (boolean) true is (boolean) true = true (1ms)
+986ms ║Cancelling condition #348’s schedules…
+987ms ║Cancelling condition #253’s schedules…
+994ms ║Comparison (boolean) false is (boolean) true = false (1ms)
+1002ms ║Comparison (boolean) false is (boolean) true = false (1ms)
+1009ms ║Comparison (boolean) false is (boolean) true = false (2ms)
+1016ms ║Comparison (boolean) true is (boolean) true = true (1ms)
+1017ms ║Cancelling condition #347’s schedules…
+1018ms ║Cancelling condition #259’s schedules…
+1024ms ║Comparison (time) 76279156 happens_daily_at (time) 15000000 = false (1ms)
+1026ms ║Cancelling statement #284’s schedules…
+1029ms ║Requesting time schedule wake up at Wed, Jun 13 2018 @ 4:10:00 AM MDT
+1034ms ║Comparison (boolean) false is (boolean) true = false (1ms)
+1040ms ║Comparison (boolean) false is (boolean) true = false (1ms)
+1048ms ║Comparison (boolean) false is (boolean) true = false (2ms)
+1055ms ║Comparison (boolean) true is (boolean) true = true (1ms)
+1056ms ║Cancelling condition #352’s schedules…
+1057ms ║Cancelling condition #262’s schedules…
+1064ms ║Comparison (boolean) false is (boolean) true = false (2ms)
+1082ms ║Comparison (decimal) 68.0 is_greater_than (integer) 77 = false (2ms)
+1091ms ║Comparison (decimal) 68.0 is_less_than_or_equal_to (integer) 68 = true (2ms)
+1110ms ║Comparison (decimal) 60.8 is_greater_than (integer) 77 = false (1ms)
+1125ms ║Comparison (time) 76279250 is_between (time) 76200000 … (time) 13200000 = true (7ms)
+1126ms ║Time restriction check passed
+1127ms ║Cancelling condition #360’s schedules…
+1128ms ║Cancelling condition #313’s schedules…
+1133ms ║Comparison (boolean) false is (boolean) true = false (2ms)
+1134ms ║Cancelling condition #313’s schedules…
+1150ms ║Comparison (time) 76279276 is_between (time) 76200000 … (time) 13200000 = true (7ms)
+1151ms ║Time restriction check passed
+1153ms ║Cancelling condition #361’s schedules…
+1154ms ║Cancelling condition #325’s schedules…
+1161ms ║Comparison (decimal) 77.0 is_greater_than (integer) 76 = true (1ms)
+1166ms ║Comparison (boolean) false is (boolean) false = true (2ms)
+1176ms ║Setting up scheduled job for Wed, Jun 13 2018 @ 4:00:00 AM MDT (in 24520.69s), with 5 more jobs pending
+1197ms ╚Piston successfully started (1197ms)
6/12/2018, 9:09:59 PM +105ms
+0ms ╔Received event [Home].time = 1528859400000 with a delay of -896ms
+200ms ║RunTime Analysis CS > 15ms > PS > 76ms > PE > 109ms > CE
+205ms ║Runtime (74182 bytes) successfully initialized in 76ms (v0.3.104.20180323) (204ms)
+207ms ║╔Execution stage started
+230ms ║║Cancelling statement #335’s schedules…
+236ms ║║Executed virtual command setVariable (3ms)
+243ms ║║Executed virtual command setVariable (3ms)
+251ms ║║Executed virtual command setVariable (3ms)
+259ms ║║Executed virtual command setVariable (3ms)
+267ms ║║Comparison (decimal) 68.0 is_greater_than (integer) 82 = false (1ms)
+268ms ║║Condition #189 evaluated false (6ms)
+269ms ║║Condition group #184 evaluated false (state did not change) (7ms)
+279ms ║║Comparison (decimal) 68.0 is_inside_of_range (integer) 75 … (integer) 82 = false (2ms)
+281ms ║║Condition #375 evaluated false (9ms)
+282ms ║║Condition group #190 evaluated false (state did not change) (10ms)
+293ms ║║Comparison (decimal) 68.0 is_inside_of_range (integer) 69 … (integer) 75 = false (3ms)
+295ms ║║Condition #374 evaluated false (10ms)
+297ms ║║Condition group #196 evaluated false (state did not change) (12ms)
+308ms ║║Comparison (decimal) 68.0 is_inside_of_range (integer) 69 … (integer) 1 = true (3ms)
+310ms ║║Cancelling condition #373’s schedules…
+311ms ║║Condition #373 evaluated true (10ms)
+312ms ║║Cancelling condition #368’s schedules…
+313ms ║║Condition group #368 evaluated true (state changed) (12ms)
+315ms ║║Cancelling statement #369’s schedules…
+321ms ║║Executed virtual command setVariable (2ms)
+349ms ║║Executed virtual command sendSMSNotification (21ms)
+370ms ║║Executed virtual command sendSMSNotification (14ms)
+384ms ║╚Execution stage complete. (178ms)
+387ms ║Setting up scheduled job for Wed, Jun 13 2018 @ 4:10:00 AM MDT (in 25200.509s), with 5 more jobs pending
+397ms ╚Event processed successfully (398ms)
6/12/2018, 9:05:59 PM +60ms
+1ms ╔Received event [Home].time = 1528859160000 with a delay of -941ms
+241ms ║RunTime Analysis CS > 21ms > PS > 91ms > PE > 130ms > CE
+246ms ║Runtime (74181 bytes) successfully initialized in 91ms (v0.3.104.20180323) (244ms)
+247ms ║╔Execution stage started
+263ms ║║Cancelling statement #377’s schedules…
+405ms ║║Executed virtual command setVariable (3ms)
+411ms ║╚Execution stage complete. (164ms)
+414ms ║Setting up scheduled job for Tue, Jun 12 2018 @ 9:10:00 PM MDT (in 240.527s), with 5 more jobs pending
+424ms ╚Event processed successfully (424ms)
6/12/2018, 9:05:10 PM +714ms
+0ms ╔Received event [Home].test = 1528859110713 with a delay of 0ms
+197ms ║RunTime Analysis CS > 12ms > PS > 82ms > PE > 104ms > CE
+202ms ║Runtime (74176 bytes) successfully initialized in 82ms (v0.3.104.20180323) (201ms)
+203ms ║╔Execution stage started
+234ms ║║Comparison (time) 75910939 is_between (time) 15000000 … (time) 75000000 = false (7ms)
+235ms ║║Condition #346 evaluated false (11ms)
+236ms ║║Cancelling condition #180’s schedules…
+237ms ║║Condition group #180 evaluated false (state changed) (13ms)
+242ms ║║Comparison (time) 75910954 happens_daily_at (time) 15000000 = false (1ms)
+243ms ║║Condition #284 evaluated false (3ms)
+247ms ║║Cancelling statement #284’s schedules…
+250ms ║║Requesting time schedule wake up at Wed, Jun 13 2018 @ 4:10:00 AM MDT
+255ms ║║Condition group #283 evaluated false (state did not change) (16ms)
+274ms ║║Comparison (time) 75910980 is_between (time) 76200000 … (time) 13200000 = false (7ms)
+276ms ║║Condition #360 evaluated false (11ms)
+277ms ║║Condition group #313 evaluated false (state did not change) (12ms)
+288ms ║║Comparison (time) 75910993 is_between (time) 76200000 … (time) 13200000 = false (7ms)
+290ms ║║Condition #361 evaluated false (10ms)
+290ms ║║Cancelling condition #325’s schedules…
+291ms ║║Condition group #325 evaluated false (state changed) (12ms)
+308ms ║╚Execution stage complete. (106ms)
+314ms ║Setting up scheduled job for Tue, Jun 12 2018 @ 9:06:00 PM MDT (in 48.973s), with 5 more jobs pending
+326ms ╚Event processed successfully (326ms)
6/12/2018, 9:04:58 PM +648ms
+0ms ╔Starting piston… (v0.3.104.20180323)
+257ms ║╔Subscribing to devices…
+363ms ║║Subscribing to Den Temp.temperature…
+517ms ║║Subscribing to Nest Downstairs…
+518ms ║║Subscribing to Nest Upstairs…
+519ms ║╚Finished subscribing (267ms)
+570ms ║Comparison (decimal) 0.0 is_greater_than (integer) 82 = false (2ms)
+580ms ║Comparison (decimal) 0.0 is_inside_of_range (integer) 75 … (integer) 82 = false (2ms)
+590ms ║Comparison (decimal) 0.0 is_inside_of_range (integer) 69 … (integer) 75 = false (2ms)
+600ms ║Comparison (decimal) 0.0 is_inside_of_range (integer) 69 … (integer) 1 = false (2ms)
+978ms ║Comparison (decimal) 61.2 is_less_than (integer) 69 = true (3ms)
+997ms ║Comparison (time) 75899635 is_between (time) 15000000 … (time) 75000000 = false (7ms)
+998ms ║Cancelling condition #346’s schedules…
+999ms ║Cancelling condition #180’s schedules…
+1008ms ║Comparison (decimal) 77.0 is_greater_than_or_equal_to (integer) 75 = true (2ms)
+1010ms ║Cancelling condition #180’s schedules…
+1016ms ║Comparison (boolean) false is (boolean) true = false (2ms)
+1024ms ║Comparison (boolean) false is (boolean) true = false (2ms)
+1032ms ║Comparison (boolean) false is (boolean) true = false (1ms)
+1040ms ║Comparison (boolean) false is (boolean) true = false (1ms)
+1084ms ║Comparison (boolean) false is (boolean) true = false (1ms)
+1092ms ║Comparison (boolean) false is (boolean) true = false (2ms)
+1100ms ║Comparison (boolean) false is (boolean) true = false (1ms)
+1109ms ║Comparison (boolean) false is (boolean) true = false (1ms)
+1116ms ║Comparison (time) 75899761 happens_daily_at (time) 15000000 = false (0ms)
+1117ms ║Cancelling statement #284’s schedules…
+1120ms ║Requesting time schedule wake up at Wed, Jun 13 2018 @ 4:10:00 AM MDT
+1127ms ║Comparison (boolean) false is (boolean) true = false (1ms)
+1133ms ║Comparison (boolean) false is (boolean) true = false (1ms)
+1141ms ║Comparison (boolean) false is (boolean) true = false (1ms)
+1149ms ║Comparison (boolean) false is (boolean) true = false (2ms)
+1159ms ║Comparison (boolean) false is (boolean) true = false (1ms)
+1176ms ║Comparison (decimal) 0.0 is_greater_than (integer) 77 = false (1ms)
+1186ms ║Comparison (decimal) 0.0 is_less_than_or_equal_to (integer) 68 = true (1ms)
+1207ms ║Comparison (decimal) 60.8 is_greater_than (integer) 77 = false (2ms)
+1223ms ║Comparison (time) 75899862 is_between (time) 76200000 … (time) 13200000 = false (7ms)
+1228ms ║Comparison (boolean) false is (boolean) true = false (1ms)
+1246ms ║Comparison (time) 75899885 is_between (time) 76200000 … (time) 13200000 = false (7ms)
+1254ms ║Comparison (decimal) 77.0 is_greater_than (integer) 76 = true (1ms)
+1256ms ║Cancelling condition #332’s schedules…
+1260ms ║Comparison (boolean) false is (boolean) false = true (1ms)
+1262ms ║Cancelling condition #325’s schedules…
+1277ms ║Setting up scheduled job for Tue, Jun 12 2018 @ 9:06:00 PM MDT (in 60.076s), with 5 more jobs pending
+1295ms ╚Piston successfully started (1295ms)


#45

Here is the original code you asked for and it worked this evening.
Again I think it might be a forecast error or 0 error result that is messing things up at the 4 am. Wondering if there is an error or the number 0 if there is a way for it to try again.

It would be very unusual to get a 0 degree day in the summer and we do not have a value set for 0 to do anything. Maybe if we get a 0 value or error, we loop the statement back to the beginning?

6/12/2018, 9:26:59 PM +80ms
+1ms ╔Received event [Home].time = 1528860420000 with a delay of -921ms
+246ms ║RunTime Analysis CS > 19ms > PS > 82ms > PE > 145ms > CE
+251ms ║Runtime (75698 bytes) successfully initialized in 82ms (v0.3.104.20180323) (249ms)
+252ms ║╔Execution stage started
+267ms ║║Cancelling statement #335’s schedules…
+274ms ║║Executed virtual command setVariable (3ms)
+280ms ║║Executed virtual command setVariable (2ms)
+285ms ║║Executed virtual command setVariable (2ms)
+291ms ║║Executed virtual command setVariable (2ms)
+492ms ║║Comparison (decimal) 68.3 is_greater_than (integer) 82 = false (2ms)
+494ms ║║Condition #189 evaluated false (199ms)
+495ms ║║Condition group #184 evaluated false (state did not change) (200ms)
+507ms ║║Comparison (decimal) 68.3 is_between (decimal) 75.0 … (integer) 82 = false (3ms)
+508ms ║║Condition #375 evaluated false (11ms)
+509ms ║║Condition group #190 evaluated false (state did not change) (12ms)
+521ms ║║Comparison (decimal) 68.3 is_between (decimal) 69.0 … (integer) 75 = false (3ms)
+523ms ║║Condition #374 evaluated false (11ms)
+524ms ║║Condition group #196 evaluated false (state did not change) (13ms)
+536ms ║║Comparison (decimal) 68.3 is_between (integer) 69 … (integer) 1 = true (3ms)
+537ms ║║Condition #373 evaluated true (11ms)
+538ms ║║Condition group #368 evaluated true (state did not change) (12ms)
+541ms ║║Cancelling statement #369’s schedules…
+547ms ║║Executed virtual command setVariable (3ms)
+569ms ║║Executed virtual command sendSMSNotification (15ms)
+589ms ║║Executed virtual command sendSMSNotification (13ms)
+597ms ║╚Execution stage complete. (345ms)
+600ms ║Setting up scheduled job for Wed, Jun 13 2018 @ 4:10:00 AM MDT (in 24180.321s), with 4 more jobs pending
+611ms ╚Event processed successfully (610ms)
6/12/2018, 9:25:26 PM +245ms
+1ms ╔Starting piston… (v0.3.104.20180323)
+299ms ║╔Subscribing to devices…
+391ms ║║Subscribing to Den Temp.temperature…
+485ms ║║Subscribing to Nest Downstairs…
+486ms ║║Subscribing to Nest Upstairs…
+487ms ║╚Finished subscribing (192ms)
+1202ms ║Comparison (decimal) 68.3 is_greater_than (integer) 82 = false (2ms)
+1214ms ║Comparison (decimal) 68.3 is_between (decimal) 75.0 … (integer) 82 = false (2ms)
+1226ms ║Comparison (decimal) 68.3 is_between (decimal) 69.0 … (integer) 75 = false (2ms)
+1239ms ║Comparison (decimal) 68.3 is_between (integer) 69 … (integer) 1 = true (2ms)
+1259ms ║Comparison (decimal) 61.2 is_less_than (integer) 69 = true (3ms)
+1275ms ║Comparison (time) 77127512 is_between (time) 15000000 … (time) 75000000 = false (6ms)
+1284ms ║Comparison (decimal) 77.0 is_greater_than_or_equal_to (integer) 75 = true (1ms)
+1286ms ║Cancelling condition #180’s schedules…
+1291ms ║Comparison (boolean) false is (boolean) true = false (1ms)
+1298ms ║Comparison (boolean) false is (boolean) true = false (1ms)
+1307ms ║Comparison (boolean) false is (boolean) true = false (1ms)
+1314ms ║Comparison (boolean) true is (boolean) true = true (2ms)
+1321ms ║Comparison (boolean) false is (boolean) true = false (2ms)
+1328ms ║Comparison (boolean) false is (boolean) true = false (1ms)
+1335ms ║Comparison (boolean) false is (boolean) true = false (1ms)
+1342ms ║Comparison (boolean) true is (boolean) true = true (1ms)
+1350ms ║Comparison (time) 77127591 happens_daily_at (time) 15000000 = false (1ms)
+1351ms ║Cancelling statement #284’s schedules…
+1354ms ║Requesting time schedule wake up at Wed, Jun 13 2018 @ 4:10:00 AM MDT
+1360ms ║Comparison (boolean) false is (boolean) true = false (2ms)
+1366ms ║Comparison (boolean) false is (boolean) true = false (2ms)
+1373ms ║Comparison (boolean) false is (boolean) true = false (1ms)
+1381ms ║Comparison (boolean) true is (boolean) true = true (2ms)
+1388ms ║Comparison (boolean) false is (boolean) true = false (1ms)
+1405ms ║Comparison (decimal) 60.8 is_greater_than (integer) 77 = false (1ms)
+1416ms ║Comparison (decimal) 60.8 is_less_than_or_equal_to (integer) 68 = true (1ms)
+1434ms ║Comparison (decimal) 60.8 is_greater_than (integer) 77 = false (2ms)
+1448ms ║Comparison (time) 77127685 is_between (time) 76200000 … (time) 13200000 = true (6ms)
+1449ms ║Time restriction check passed
+1454ms ║Comparison (boolean) true is (boolean) true = true (2ms)
+1470ms ║Comparison (time) 77127706 is_between (time) 76200000 … (time) 13200000 = true (6ms)
+1471ms ║Time restriction check passed
+1472ms ║Cancelling condition #325’s schedules…
+1730ms ║Comparison (decimal) 77.0 is_greater_than (integer) 76 = true (1ms)
+1735ms ║Comparison (boolean) true is (boolean) false = false (2ms)
+1736ms ║Cancelling condition #325’s schedules…
+1750ms ║Setting up scheduled job for Tue, Jun 12 2018 @ 9:27:00 PM MDT (in 92.006s), with 4 more jobs pending
+1769ms ╚Piston successfully started (1768ms)


#46

It turns out you were right above, the piston doesn’t like “is between”. Strange since it works when you write it out as an expression. Anyway, lots of fussing around with this one and running tests, but have it working smoothly now!


#47

Awesome!

Will try to implement tonight and let you know what happens…hopefully everything we expect.

Either way will let you know how things are going with it…

Definitely was a challenge, but I learned an awful lot from your help.

Thank you and beer is definitely on me in Colorado…

Jeff


#48

So far, everything seems to be working great…have not had a day below 82 degrees to test out the cooler day functions, but wanted to say thanks and please let me know when you do get to Colorado for a beer(s) on me.


#49

Disregard, awoke to the heat on but today’s forcast is 65 d
egrees, so it worked as designed.


#50

Glad to hear it’s working! I’m long overdue for a ski vacation so maybe I’ll get to take you up on that beer sometime! :slight_smile: