HVAC mode control based on outside temperature


#1

1) Give a description of the problem
It appears my piston hasn’t subscribed to the temperature rising above 74, no trigger. My thermostats did not return to cooling mode after leaving the windows open over night. I closed the windows in the morning, before the outside temp rose above 74, and it ran the temperature check which if failed because it was 69.8 outside. The piston never ran again. So do i need to change line 31 to “rises above”? but will it fire if the temp is above 74 outside when the windows are closed.

2) What is the expected behaviour?
I expected the cooling mode to return to cooling when the temperature rised above 74

3) What is happening/not happening?
thermostats were off when i came home after work.

**4) Post a Green Snapshot

5) Attach logs after turning logging level to Full
5/22/2019, 6:48:22 AM +255ms
+1ms ╔Received event [Home].:6016b899e43af35b9e0239c098cab0b1: = @WindowState with a delay of 61ms
+134ms ║RunTime Analysis CS > 16ms > PS > 56ms > PE > 62ms > CE
+137ms ║Runtime (61783 bytes) successfully initialized in 56ms (v0.3.10b.20190514) (135ms)
+139ms ║╔Execution stage started
+155ms ║║Comparison (decimal) 69.8 is_greater_than_or_equal_to (integer) 74 = false (2ms)
+157ms ║║Condition #46 evaluated false (11ms)
+158ms ║║Condition group #44 evaluated false (state did not change) (14ms)
+167ms ║║Comparison (decimal) 69.8 is_less_than (integer) 70 = true (2ms)
+169ms ║║Cancelling condition #47’s schedules…
+170ms ║║Condition #47 evaluated true (11ms)
+177ms ║║Comparison (string) cool is (string) cool = true (2ms)
+179ms ║║Condition #49 evaluated true (7ms)
+185ms ║║Comparison (string) cool is (string) cool = true (2ms)
+187ms ║║Condition #50 evaluated true (7ms)
+193ms ║║Comparison (string) cool is (string) cool = true (2ms)
+195ms ║║Condition #51 evaluated true (7ms)
+197ms ║║Condition group #48 evaluated true (state did not change) (24ms)
+198ms ║║Cancelling condition #45’s schedules…
+199ms ║║Condition group #45 evaluated true (state changed) (40ms)
+202ms ║║Cancelling statement #52’s schedules…
+250ms ║║Executed physical command [Game Room Thermostat].off() (42ms)
+251ms ║║Executed [Game Room Thermostat].off (45ms)
+279ms ║║Executed physical command [Living Room Thermostat].off() (24ms)
+280ms ║║Executed [Living Room Thermostat].off (27ms)
+306ms ║║Executed physical command [Master Bedroom Thermostat].off() (23ms)
+307ms ║║Executed [Master Bedroom Thermostat].off (25ms)
+311ms ║║Cancelling statement #98’s schedules…
+356ms ║║Executed virtual command sendPushNotification (39ms)
+368ms ║║Comparison (decimal) 69.8 is_less_than (integer) 58 = false (2ms)
+370ms ║║Condition #65 evaluated false (10ms)
+371ms ║║Condition group #63 evaluated false (state did not change) (11ms)
+381ms ║║Comparison (decimal) 69.8 is_greater_than (integer) 70 = false (2ms)
+383ms ║║Cancelling condition #66’s schedules…
+384ms ║║Condition #66 evaluated false (10ms)
+385ms ║║Condition group #64 evaluated false (state did not change) (13ms)
+392ms ║║Comparison (dynamic) closed changes_to (string) open = false (1ms)
+394ms ║║Cancelling condition #6’s schedules…
+395ms ║║Condition #6 evaluated false (6ms)
+397ms ║║Cancelling condition #1’s schedules…
+398ms ║║Condition group #1 evaluated false (state changed) (10ms)
+401ms ║╚Execution stage complete. (263ms)
+403ms ╚Event processed successfully (402ms)
5/21/2019, 9:14:30 PM +246ms
+0ms ╔Received event [Home].:6016b899e43af35b9e0239c098cab0b1: = @WindowState with a delay of 67ms
+163ms ║RunTime Analysis CS > 21ms > PS > 78ms > PE > 64ms > CE
+166ms ║Runtime (61786 bytes) successfully initialized in 78ms (v0.3.10b.20190514) (165ms)
+167ms ║╔Execution stage started
+183ms ║║Comparison (decimal) 72.0 is_greater_than_or_equal_to (integer) 74 = false (2ms)
+185ms ║║Cancelling condition #46’s schedules…
+187ms ║║Condition #46 evaluated false (12ms)
+188ms ║║Cancelling condition #44’s schedules…
+189ms ║║Condition group #44 evaluated false (state changed) (16ms)
+198ms ║║Comparison (decimal) 72.0 is_less_than (integer) 70 = false (2ms)
+200ms ║║Condition #47 evaluated false (9ms)
+201ms ║║Condition group #45 evaluated false (state did not change) (11ms)
+212ms ║║Comparison (decimal) 72.0 is_less_than (integer) 58 = false (2ms)
+214ms ║║Condition #65 evaluated false (9ms)
+216ms ║║Condition group #63 evaluated false (state did not change) (11ms)
+225ms ║║Comparison (decimal) 72.0 is_greater_than (integer) 70 = true (2ms)
+227ms ║║Condition #66 evaluated true (9ms)
+233ms ║║Comparison (string) cool is (string) heat = false (2ms)
+235ms ║║Condition #68 evaluated false (7ms)
+237ms ║║Condition group #67 evaluated false (state did not change) (8ms)
+238ms ║║Condition group #64 evaluated false (state did not change) (21ms)
+245ms ║║Comparison (dynamic) open changes_to (string) open = true (1ms)
+247ms ║║Cancelling condition #6’s schedules…
+248ms ║║Condition #6 evaluated true (7ms)
+258ms ║║Comparison (decimal) 72.0 is_greater_than_or_equal_to (integer) 34 = true (2ms)
+260ms ║║Condition #83 evaluated true (11ms)
+261ms ║║Cancelling condition #1’s schedules…
+263ms ║║Condition group #1 evaluated true (state changed) (21ms)
+266ms ║║Cancelling statement #8’s schedules…
+278ms ║║Executed virtual command setVariable (4ms)
+290ms ║║Executed virtual command setVariable (4ms)
+302ms ║║Executed virtual command setVariable (4ms)
+306ms ║║Executed virtual command wait (1ms)
+308ms ║║Waiting for 1000ms
+1312ms ║║Cancelling statement #4’s schedules…
+1367ms ║║Executed physical command [Game Room Thermostat].off() (51ms)
+1369ms ║║Executed [Game Room Thermostat].off (53ms)
+1400ms ║║Executed physical command [Living Room Thermostat].off() (29ms)
+1401ms ║║Executed [Living Room Thermostat].off (31ms)
+1431ms ║║Executed physical command [Master Bedroom Thermostat].off() (28ms)
+1432ms ║║Executed [Master Bedroom Thermostat].off (30ms)
+1436ms ║║Cancelling statement #106’s schedules…
+1489ms ║║Executed virtual command sendPushNotification (47ms)
+1493ms ║╚Execution stage complete. (1326ms)
+1495ms ╚Event processed successfully (1494ms)
5/20/2019, 8:30:07 PM +125ms
+1ms ╔Received event [Home].:6016b899e43af35b9e0239c098cab0b1: = @WindowState with a delay of 59ms
+137ms ║RunTime Analysis CS > 17ms > PS > 59ms > PE > 61ms > CE
+140ms ║Runtime (61779 bytes) successfully initialized in 59ms (v0.3.10b.20190514) (138ms)
+142ms ║╔Execution stage started
+158ms ║║Comparison (decimal) 82.8 is_greater_than_or_equal_to (integer) 74 = true (2ms)
+160ms ║║Condition #46 evaluated true (12ms)
+166ms ║║Comparison (dynamic) closed is (string) closed = true (2ms)
+168ms ║║Cancelling condition #89’s schedules…
+169ms ║║Condition #89 evaluated true (8ms)
+171ms ║║Cancelling condition #44’s schedules…
+172ms ║║Condition group #44 evaluated true (state changed) (25ms)
+175ms ║║Cancelling statement #57’s schedules…
+379ms ║║Executed physical command [Game Room Thermostat].cool() (198ms)
+380ms ║║Executed [Game Room Thermostat].cool (201ms)
+411ms ║║Executed physical command [Living Room Thermostat].cool() (28ms)
+413ms ║║Executed [Living Room Thermostat].cool (30ms)
+439ms ║║Executed physical command [Master Bedroom Thermostat].cool() (23ms)
+441ms ║║Executed [Master Bedroom Thermostat].cool (25ms)
+444ms ║║Cancelling statement #59’s schedules…
+452ms ║║Executed virtual command setVariable (4ms)
+458ms ║║Executed virtual command setVariable (2ms)
+465ms ║║Executed virtual command setVariable (3ms)
+469ms ║║Cancelling statement #102’s schedules…
+513ms ║║Executed virtual command sendPushNotification (38ms)
+526ms ║║Comparison (decimal) 82.8 is_less_than (integer) 58 = false (2ms)
+527ms ║║Condition #65 evaluated false (9ms)
+529ms ║║Condition group #63 evaluated false (state did not change) (11ms)
+538ms ║║Comparison (decimal) 82.8 is_greater_than (integer) 70 = true (2ms)
+540ms ║║Condition #66 evaluated true (9ms)
+546ms ║║Comparison (string) cool is (string) heat = false (2ms)
+548ms ║║Condition #68 evaluated false (6ms)
+550ms ║║Condition group #67 evaluated false (state did not change) (8ms)
+551ms ║║Condition group #64 evaluated false (state did not change) (21ms)
+558ms ║║Comparison (dynamic) closed changes_to (string) open = false (1ms)
+560ms ║║Cancelling condition #6’s schedules…
+561ms ║║Condition #6 evaluated false (7ms)
+563ms ║║Cancelling condition #1’s schedules…
+564ms ║║Condition group #1 evaluated false (state changed) (9ms)
+567ms ║╚Execution stage complete. (425ms)
+568ms ╚Event processed successfully (568ms)
5/20/2019, 8:29:53 PM +712ms
+1ms ╔Received event [Home].:6016b899e43af35b9e0239c098cab0b1: = @WindowState with a delay of 49ms
+130ms ║RunTime Analysis CS > 15ms > PS > 51ms > PE > 63ms > CE
+133ms ║Runtime (61784 bytes) successfully initialized in 51ms (v0.3.10b.20190514) (131ms)
+134ms ║╔Execution stage started
+149ms ║║Comparison (decimal) 82.8 is_greater_than_or_equal_to (integer) 74 = true (2ms)
+151ms ║║Condition #46 evaluated true (11ms)
+157ms ║║Comparison (dynamic) open is (string) closed = false (2ms)
+159ms ║║Cancelling condition #89’s schedules…
+160ms ║║Condition #89 evaluated false (8ms)
+162ms ║║Cancelling condition #44’s schedules…
+163ms ║║Condition group #44 evaluated false (state changed) (22ms)
+171ms ║║Comparison (decimal) 82.8 is_less_than (integer) 70 = false (2ms)
+173ms ║║Condition #47 evaluated false (9ms)
+174ms ║║Condition group #45 evaluated false (state did not change) (10ms)
+185ms ║║Comparison (decimal) 82.8 is_less_than (integer) 58 = false (2ms)
+187ms ║║Condition #65 evaluated false (9ms)
+189ms ║║Condition group #63 evaluated false (state did not change) (11ms)
+197ms ║║Comparison (decimal) 82.8 is_greater_than (integer) 70 = true (2ms)
+199ms ║║Condition #66 evaluated true (9ms)
+206ms ║║Comparison (string) cool is (string) heat = false (2ms)
+208ms ║║Condition #68 evaluated false (7ms)
+209ms ║║Condition group #67 evaluated false (state did not change) (8ms)
+211ms ║║Condition group #64 evaluated false (state did not change) (20ms)
+218ms ║║Comparison (dynamic) open changes_to (string) open = true (0ms)
+220ms ║║Cancelling condition #6’s schedules…
+221ms ║║Condition #6 evaluated true (7ms)
+230ms ║║Comparison (decimal) 82.8 is_greater_than_or_equal_to (integer) 34 = true (2ms)
+232ms ║║Condition #83 evaluated true (10ms)
+233ms ║║Cancelling condition #1’s schedules…
+234ms ║║Condition group #1 evaluated true (state changed) (20ms)
+237ms ║║Cancelling statement #8’s schedules…
+249ms ║║Executed virtual command setVariable (3ms)
+260ms ║║Executed virtual command setVariable (3ms)
+271ms ║║Executed virtual command setVariable (4ms)
+275ms ║║Executed virtual command wait (1ms)
+277ms ║║Waiting for 1000ms
+1282ms ║║Cancelling statement #4’s schedules…
+1320ms ║║Executed physical command [Game Room Thermostat].off() (33ms)
+1322ms ║║Executed [Game Room Thermostat].off (36ms)
+1348ms ║║Executed physical command [Living Room Thermostat].off() (23ms)
+1349ms ║║Executed [Living Room Thermostat].off (26ms)
+1374ms ║║Executed physical command [Master Bedroom Thermostat].off() (22ms)
+1375ms ║║Executed [Master Bedroom Thermostat].off (24ms)
+1380ms ║║Cancelling statement #106’s schedules…
+1401ms ║║Executed virtual command sendPushNotification (13ms)
+1405ms ║╚Execution stage complete. (1271ms)
+1407ms ╚Event processed successfully (1406ms)
5/20/2019, 1:40:20 PM +961ms
+0ms ╔Received event [Home].:6016b899e43af35b9e0239c098cab0b1: = @WindowState with a delay of 44ms
+124ms ║RunTime Analysis CS > 15ms > PS > 49ms > PE > 61ms > CE
+128ms ║Runtime (61779 bytes) successfully initialized in 49ms (v0.3.10b.20190514) (126ms)
+129ms ║╔Execution stage started
+145ms ║║Comparison (decimal) 83.1 is_greater_than_or_equal_to (integer) 74 = true (2ms)
+147ms ║║Condition #46 evaluated true (12ms)
+153ms ║║Comparison (dynamic) closed is (string) closed = true (1ms)
+155ms ║║Cancelling condition #89’s schedules…
+156ms ║║Condition #89 evaluated true (8ms)
+157ms ║║Cancelling condition #44’s schedules…
+158ms ║║Condition group #44 evaluated true (state changed) (24ms)
+161ms ║║Cancelling statement #57’s schedules…
+214ms ║║Executed physical command [Game Room Thermostat].cool() (48ms)
+215ms ║║Executed [Game Room Thermostat].cool (50ms)
+241ms ║║Executed physical command [Living Room Thermostat].cool() (22ms)
+242ms ║║Executed [Living Room Thermostat].cool (25ms)
+265ms ║║Executed physical command [Master Bedroom Thermostat].cool() (20ms)
+266ms ║║Executed [Master Bedroom Thermostat].cool (22ms)
+270ms ║║Cancelling statement #59’s schedules…
+277ms ║║Executed virtual command setVariable (3ms)
+284ms ║║Executed virtual command setVariable (3ms)
+291ms ║║Executed virtual command setVariable (3ms)
+294ms ║║Cancelling statement #102’s schedules…
+312ms ║║Executed virtual command sendPushNotification (12ms)
+324ms ║║Comparison (decimal) 83.1 is_less_than (integer) 58 = false (2ms)
+326ms ║║Condition #65 evaluated false (10ms)
+328ms ║║Condition group #63 evaluated false (state did not change) (11ms)
+337ms ║║Comparison (decimal) 83.1 is_greater_than (integer) 70 = true (2ms)
+339ms ║║Condition #66 evaluated true (10ms)
+346ms ║║Comparison (string) cool is (string) heat = false (2ms)
+348ms ║║Condition #68 evaluated false (7ms)
+350ms ║║Condition group #67 evaluated false (state did not change) (8ms)
+351ms ║║Condition group #64 evaluated false (state did not change) (22ms)
+358ms ║║Comparison (dynamic) closed changes_to (string) open = false (1ms)
+360ms ║║Cancelling condition #6’s schedules…
+361ms ║║Condition #6 evaluated false (7ms)
+362ms ║║Cancelling condition #1’s schedules…
+363ms ║║Condition group #1 evaluated false (state changed) (9ms)
+366ms ║╚Execution stage complete. (238ms)
+368ms ╚Event processed successfully (368ms)
5/20/2019, 1:40:03 PM +614ms
+1ms ╔Received event [Home].:6016b899e43af35b9e0239c098cab0b1: = @WindowState with a delay of 57ms
+132ms ║RunTime Analysis CS > 15ms > PS > 56ms > PE > 61ms > CE
+136ms ║Runtime (61784 bytes) successfully initialized in 56ms (v0.3.10b.20190514) (134ms)
+137ms ║╔Execution stage started
+153ms ║║Comparison (decimal) 83.1 is_greater_than_or_equal_to (integer) 74 = true (2ms)
+155ms ║║Condition #46 evaluated true (11ms)
+161ms ║║Comparison (dynamic) open is (string) closed = false (1ms)
+163ms ║║Cancelling condition #89’s schedules…
+164ms ║║Condition #89 evaluated false (8ms)
+165ms ║║Cancelling condition #44’s schedules…
+167ms ║║Condition group #44 evaluated false (state changed) (23ms)
+176ms ║║Comparison (decimal) 83.1 is_less_than (integer) 70 = false (2ms)
+178ms ║║Condition #47 evaluated false (10ms)
+179ms ║║Condition group #45 evaluated false (state did not change) (11ms)
+191ms ║║Comparison (decimal) 83.1 is_less_than (integer) 58 = false (2ms)
+193ms ║║Condition #65 evaluated false (10ms)
+195ms ║║Condition group #63 evaluated false (state did not change) (11ms)
+204ms ║║Comparison (decimal) 83.1 is_greater_than (integer) 70 = true (2ms)
+206ms ║║Condition #66 evaluated true (10ms)
+213ms ║║Comparison (string) cool is (string) heat = false (2ms)
+215ms ║║Condition #68 evaluated false (6ms)
+216ms ║║Condition group #67 evaluated false (state did not change) (9ms)
+217ms ║║Condition group #64 evaluated false (state did not change) (21ms)
+225ms ║║Comparison (dynamic) open changes_to (string) open = true (0ms)
+227ms ║║Cancelling condition #6’s schedules…
+228ms ║║Condition #6 evaluated true (7ms)
+237ms ║║Comparison (decimal) 83.1 is_greater_than_or_equal_to (integer) 34 = true (2ms)
+239ms ║║Condition #83 evaluated true (10ms)
+240ms ║║Cancelling condition #1’s schedules…
+241ms ║║Condition group #1 evaluated true (state changed) (21ms)
+244ms ║║Cancelling statement #8’s schedules…
+256ms ║║Executed virtual command setVariable (2ms)
+267ms ║║Executed virtual command setVariable (3ms)
+277ms ║║Executed virtual command setVariable (2ms)
+281ms ║║Executed virtual command wait (1ms)
+282ms ║║Waiting for 1000ms
+1287ms ║║Cancelling statement #4’s schedules…
+1334ms ║║Executed physical command [Game Room Thermostat].off() (43ms)
+1336ms ║║Executed [Game Room Thermostat].off (45ms)
+1362ms ║║Executed physical command [Living Room Thermostat].off() (24ms)
+1364ms ║║Executed [Living Room Thermostat].off (26ms)
+1389ms ║║Executed physical command [Master Bedroom Thermostat].off() (22ms)
+1390ms ║║Executed [Master Bedroom Thermostat].off (24ms)
+1393ms ║║Cancelling statement #106’s schedules…
+1429ms ║║Executed virtual command sendPushNotification (29ms)
+1433ms ║╚Execution stage complete. (1295ms)
+1434ms ╚Event processed successfully (1434ms)
5/20/2019, 1:39:08 PM +122ms
+2ms ╔Received event [Home].test = 1558377548122 with a delay of 1ms
+157ms ║RunTime Analysis CS > 19ms > PS > 56ms > PE > 82ms > CE
+161ms ║Runtime (61756 bytes) successfully initialized in 56ms (v0.3.10b.20190514) (158ms)
+162ms ║╔Execution stage started
+183ms ║║Comparison (decimal) 83.1 is_greater_than_or_equal_to (integer) 74 = true (3ms)
+185ms ║║Condition #46 evaluated true (15ms)
+192ms ║║Comparison (dynamic) closed is (string) closed = true (2ms)
+194ms ║║Condition #89 evaluated true (7ms)
+196ms ║║Condition group #44 evaluated true (state did not change) (27ms)
+200ms ║║Cancelling statement #57’s schedules…
+211ms ║║Skipped execution of physical command [Game Room Thermostat].cool([]) because it would make no change to the device. (3ms)
+213ms ║║Executed [Game Room Thermostat].cool (6ms)
+220ms ║║Skipped execution of physical command [Living Room Thermostat].cool([]) because it would make no change to the device. (3ms)
+221ms ║║Executed [Living Room Thermostat].cool (6ms)
+228ms ║║Skipped execution of physical command [Master Bedroom Thermostat].cool([]) because it would make no change to the device. (3ms)
+229ms ║║Executed [Master Bedroom Thermostat].cool (6ms)
+233ms ║║Cancelling statement #59’s schedules…
+244ms ║║Executed virtual command setVariable (4ms)
+251ms ║║Executed virtual command setVariable (3ms)
+259ms ║║Executed virtual command setVariable (3ms)
+264ms ║║Cancelling statement #102’s schedules…
+308ms ║║Executed virtual command sendPushNotification (37ms)
+323ms ║║Comparison (decimal) 83.1 is_less_than (integer) 58 = false (3ms)
+326ms ║║Condition #65 evaluated false (12ms)
+328ms ║║Condition group #63 evaluated false (state did not change) (14ms)
+338ms ║║Comparison (decimal) 83.1 is_greater_than (integer) 70 = true (3ms)
+340ms ║║Condition #66 evaluated true (10ms)
+348ms ║║Comparison (string) cool is (string) heat = false (2ms)
+350ms ║║Condition #68 evaluated false (7ms)
+352ms ║║Condition group #67 evaluated false (state did not change) (10ms)
+353ms ║║Condition group #64 evaluated false (state did not change) (24ms)
+362ms ║║Comparison (dynamic) closed changes_to (string) open = false (1ms)
+364ms ║║Condition #6 evaluated false (6ms)
+438ms ║║Condition group #1 evaluated false (state did not change) (80ms)
+443ms ║╚Execution stage complete. (281ms)
+445ms ╚Event processed successfully (445ms)
5/20/2019, 1:38:51 PM +60ms
+1ms ╔Starting piston… (v0.3.10b.20190514)
+338ms ║╔Subscribing to devices…
+399ms ║║Subscribing to Home.:6016b899e43af35b9e0239c098cab0b1:.@WindowState
+461ms ║║Subscribing to Game Room Thermostat…
+463ms ║║Subscribing to Living Room Thermostat…
+465ms ║║Subscribing to Master Bedroom Thermostat…
+466ms ║╚Finished subscribing (141ms)
+502ms ║Comparison (decimal) 83.1 is_greater_than_or_equal_to (integer) 74 = true (3ms)
+510ms ║Comparison (dynamic) closed is (string) closed = true (2ms)
+536ms ║Comparison (decimal) 83.1 is_less_than (integer) 70 = false (2ms)
+545ms ║Comparison (string) cool is (string) cool = true (2ms)
+553ms ║Comparison (string) cool is (string) cool = true (3ms)
+561ms ║Comparison (string) cool is (string) cool = true (3ms)
+584ms ║Comparison (decimal) 83.1 is_less_than (integer) 58 = false (2ms)
+592ms ║Comparison (dynamic) closed is (string) closed = true (2ms)
+616ms ║Comparison (decimal) 83.1 is_greater_than (integer) 70 = true (2ms)
+625ms ║Comparison (string) cool is (string) heat = false (3ms)
+633ms ║Comparison (string) cool is (string) heat = false (2ms)
+641ms ║Comparison (string) cool is (string) heat = false (2ms)
+659ms ║Comparison (dynamic) closed changes_to (string) open = false (1ms)
+671ms ║Comparison (decimal) 83.1 is_greater_than_or_equal_to (integer) 34 = true (2ms)
+693ms ╚Piston successfully started (692ms)
5/20/2019, 1:33:41 PM +231ms
+1ms ╔Starting piston… (v0.3.10b.20190514)
+428ms ║╔Subscribing to devices…
+513ms ║║Subscribing to Home.:6016b899e43af35b9e0239c098cab0b1:.@WindowState
+588ms ║║Subscribing to Game Room Thermostat…
+590ms ║║Subscribing to Living Room Thermostat…
+591ms ║║Subscribing to Master Bedroom Thermostat…
+593ms ║╚Finished subscribing (176ms)
+629ms ║Comparison (decimal) 82.9 is_greater_than_or_equal_to (integer) 74 = true (3ms)
+637ms ║Comparison (dynamic) closed is (string) closed = true (2ms)
+660ms ║Comparison (decimal) 82.9 is_less_than (integer) 70 = false (3ms)
+669ms ║Comparison (string) cool is (string) cool = true (3ms)
+677ms ║Comparison (string) cool is (string) cool = true (3ms)
+685ms ║Comparison (string) cool is (string) cool = true (3ms)
+707ms ║Comparison (decimal) 82.9 is_less_than (integer) 58 = false (2ms)
+715ms ║Comparison (dynamic) closed is (string) closed = true (2ms)
+736ms ║Comparison (decimal) 82.9 is_greater_than (integer) 70 = true (2ms)
+745ms ║Comparison (string) cool is (string) heat = false (2ms)
+753ms ║Comparison (string) cool is (string) heat = false (2ms)
+761ms ║Comparison (string) cool is (string) heat = false (2ms)
+779ms ║Comparison (dynamic) closed changes_to (string) open = false (1ms)
+790ms ║Comparison (decimal) 82.9 is_greater_than_or_equal_to (integer) 34 = true (2ms)
+811ms ╚Piston successfully started (810ms)
5/20/2019, 12:27:29 PM +787ms
+1ms ╔Received event [Home].:6016b899e43af35b9e0239c098cab0b1: = @WindowState with a delay of 53ms
+132ms ║RunTime Analysis CS > 16ms > PS > 55ms > PE > 60ms > CE
+135ms ║Runtime (59447 bytes) successfully initialized in 55ms (v0.3.10b.20190514) (133ms)
+136ms ║╔Execution stage started
+152ms ║║Comparison (decimal) 81.1 is_greater_than_or_equal_to (integer) 74 = true (2ms)
+154ms ║║Condition #46 evaluated true (11ms)
+162ms ║║Comparison (dynamic) closed is (string) closed = true (2ms)
+164ms ║║Cancelling condition #89’s schedules…
+165ms ║║Condition #89 evaluated true (8ms)
+167ms ║║Cancelling condition #44’s schedules…
+168ms ║║Condition group #44 evaluated true (state changed) (25ms)
+171ms ║║Cancelling statement #57’s schedules…
+312ms ║║Executed physical command [Game Room Thermostat].cool() (135ms)
+315ms ║║Executed [Game Room Thermostat].cool (138ms)
+345ms ║║Executed physical command [Living Room Thermostat].cool() (26ms)
+346ms ║║Executed [Living Room Thermostat].cool (28ms)
+376ms ║║Executed physical command [Master Bedroom Thermostat].cool() (26ms)
+377ms ║║Executed [Master Bedroom Thermostat].cool (29ms)
+381ms ║║Cancelling statement #59’s schedules…
+389ms ║║Executed virtual command setVariable (3ms)
+396ms ║║Executed virtual command setVariable (3ms)
+403ms ║║Executed virtual command setVariable (3ms)
+415ms ║║Comparison (decimal) 81.1 is_less_than (integer) 58 = false (2ms)
+416ms ║║Condition #65 evaluated false (9ms)
+418ms ║║Condition group #63 evaluated false (state did not change) (11ms)
+429ms ║║Comparison (decimal) 81.1 is_greater_than (integer) 70 = true (2ms)
+431ms ║║Condition #66 evaluated true (12ms)
+438ms ║║Comparison (string) cool is (string) heat = false (2ms)
+440ms ║║Condition #68 evaluated false (7ms)
+442ms ║║Condition group #67 evaluated false (state did not change) (8ms)
+443ms ║║Condition group #64 evaluated false (state did not change) (24ms)
+450ms ║║Comparison (dynamic) closed changes_to (string) open = false (1ms)
+452ms ║║Cancelling condition #6’s schedules…
+453ms ║║Condition #6 evaluated false (7ms)
+458ms ║║Cancelling condition #1’s schedules…
+461ms ║║Condition group #1 evaluated false (state changed) (15ms)
+464ms ║╚Execution stage complete. (328ms)
+466ms ╚Event processed successfully (466ms)
5/20/2019, 12:27:16 PM +218ms
+0ms ╔Received event [Home].:6016b899e43af35b9e0239c098cab0b1: = @WindowState with a delay of 50ms
+133ms ║RunTime Analysis CS > 17ms > PS > 58ms > PE > 59ms > CE
+137ms ║Runtime (59452 bytes) successfully initialized in 58ms (v0.3.10b.20190514) (135ms)
+138ms ║╔Execution stage started
+154ms ║║Comparison (decimal) 81.1 is_greater_than_or_equal_to (integer) 74 = true (2ms)
+156ms ║║Condition #46 evaluated true (12ms)
+162ms ║║Comparison (dynamic) open is (string) closed = false (2ms)
+164ms ║║Cancelling condition #89’s schedules…
+165ms ║║Condition #89 evaluated false (8ms)
+167ms ║║Cancelling condition #44’s schedules…
+168ms ║║Condition group #44 evaluated false (state changed) (23ms)
+177ms ║║Comparison (decimal) 81.1 is_less_than (integer) 70 = false (2ms)
+179ms ║║Condition #47 evaluated false (10ms)
+181ms ║║Condition group #45 evaluated false (state did not change) (11ms)
+192ms ║║Comparison (decimal) 81.1 is_less_than (integer) 58 = false (2ms)
+194ms ║║Condition #65 evaluated false (10ms)
+196ms ║║Condition group #63 evaluated false (state did not change) (11ms)
+205ms ║║Comparison (decimal) 81.1 is_greater_than (integer) 70 = true (2ms)
+207ms ║║Condition #66 evaluated true (10ms)
+214ms ║║Comparison (string) cool is (string) heat = false (2ms)
+216ms ║║Condition #68 evaluated false (7ms)
+217ms ║║Condition group #67 evaluated false (state did not change) (8ms)
+219ms ║║Condition group #64 evaluated false (state did not change) (21ms)
+226ms ║║Comparison (dynamic) open changes_to (string) open = true (1ms)
+228ms ║║Cancelling condition #6’s schedules…
+229ms ║║Condition #6 evaluated true (7ms)
+238ms ║║Comparison (decimal) 81.1 is_greater_than_or_equal_to (integer) 34 = true (2ms)
+240ms ║║Condition #83 evaluated true (10ms)
+242ms ║║Cancelling condition #1’s schedules…
+243ms ║║Condition group #1 evaluated true (state changed) (22ms)
+246ms ║║Cancelling statement #8’s schedules…
+257ms ║║Executed virtual command setVariable (3ms)
+268ms ║║Executed virtual command setVariable (3ms)
+280ms ║║Executed virtual command setVariable (3ms)
+284ms ║║Executed virtual command wait (1ms)
+285ms ║║Waiting for 1000ms
+1289ms ║║Cancelling statement #4’s schedules…
+1335ms ║║Executed physical command [Game Room Thermostat].off() (42ms)
+1336ms ║║Executed [Game Room Thermostat].off (44ms)
+1366ms ║║Executed physical command [Living Room Thermostat].off() (27ms)
+1367ms ║║Executed [Living Room Thermostat].off (30ms)
+1393ms ║║Executed physical command [Master Bedroom Thermostat].off() (23ms)
+1394ms ║║Executed [Master Bedroom Thermostat].off (26ms)
+1398ms ║╚Execution stage complete. (1260ms)
+1399ms ╚Event processed successfully (1399ms)
5/20/2019, 11:38:16 AM +348ms
+0ms ╔Received event [Home].:6016b899e43af35b9e0239c098cab0b1: = @WindowState with a delay of 60ms
+153ms ║RunTime Analysis CS > 22ms > PS > 74ms > PE > 57ms > CE
+156ms ║Runtime (59447 bytes) successfully initialized in 74ms (v0.3.10b.20190514) (155ms)
+157ms ║╔Execution stage started
+174ms ║║Comparison (decimal) 79.3 is_greater_than_or_equal_to (integer) 74 = true (2ms)
+176ms ║║Condition #46 evaluated true (13ms)
+182ms ║║Comparison (dynamic) closed is (string) closed = true (2ms)
+184ms ║║Cancelling condition #89’s schedules…
+185ms ║║Condition #89 evaluated true (8ms)
+187ms ║║Cancelling condition #44’s schedules…
+188ms ║║Condition group #44 evaluated true (state changed) (24ms)
+191ms ║║Cancelling statement #57’s schedules…
+327ms ║║Executed physical command [Game Room Thermostat].cool() (130ms)
+328ms ║║Executed [Game Room Thermostat].cool (133ms)
+361ms ║║Executed physical command [Living Room Thermostat].cool() (29ms)
+362ms ║║Executed [Living Room Thermostat].cool (31ms)
+395ms ║║Executed physical command [Master Bedroom Thermostat].cool() (28ms)
+396ms ║║Executed [Master Bedroom Thermostat].cool (31ms)
+400ms ║║Cancelling statement #59’s schedules…
+408ms ║║Executed virtual command setVariable (4ms)
+415ms ║║Executed virtual command setVariable (4ms)
+422ms ║║Executed virtual command setVariable (4ms)
+436ms ║║Comparison (decimal) 79.3 is_less_than (integer) 58 = false (2ms)
+438ms ║║Condition #65 evaluated false (12ms)
+440ms ║║Condition group #63 evaluated false (state did not change) (14ms)
+450ms ║║Comparison (decimal) 79.3 is_greater_than (integer) 70 = true (2ms)
+451ms ║║Condition #66 evaluated true (10ms)
+458ms ║║Comparison (string) cool is (string) heat = false (2ms)
+460ms ║║Condition #68 evaluated false (7ms)
+461ms ║║Condition group #67 evaluated false (state did not change) (8ms)
+463ms ║║Condition group #64 evaluated false (state did not change) (21ms)
+470ms ║║Comparison (dynamic) closed changes_to (string) open = false (1ms)
+472ms ║║Cancelling condition #6’s schedules…
+473ms ║║Condition #6 evaluated false (7ms)
+474ms ║║Cancelling condition #1’s schedules…
+476ms ║║Condition group #1 evaluated false (state changed) (9ms)
+478ms ║╚Execution stage complete. (321ms)
+480ms ╚Event processed successfully (480ms)
5/20/2019, 11:36:59 AM +116ms
+1ms ╔Received event [Home].:6016b899e43af35b9e0239c098cab0b1: = @WindowState with a delay of 88ms
+169ms ║RunTime Analysis CS > 20ms > PS > 78ms > PE > 71ms > CE
+173ms ║Runtime (59449 bytes) successfully initialized in 78ms (v0.3.10b.20190514) (171ms)
+174ms ║╔Execution stage started
+192ms ║║Comparison (decimal) 79.3 is_greater_than_or_equal_to (integer) 74 = true (2ms)
+194ms ║║Condition #46 evaluated true (11ms)
+200ms ║║Comparison (dynamic) open is (string) closed = false (1ms)
+202ms ║║Cancelling condition #89’s schedules…
+203ms ║║Condition #89 evaluated false (8ms)
+204ms ║║Cancelling condition #44’s schedules…
+205ms ║║Condition group #44 evaluated false (state changed) (23ms)
+214ms ║║Comparison (decimal) 79.3 is_less_than (integer) 70 = false (2ms)
+216ms ║║Condition #47 evaluated false (8ms)
+217ms ║║Condition group #45 evaluated false (state did not change) (11ms)
+228ms ║║Comparison (decimal) 79.3 is_less_than (integer) 58 = false (1ms)
+230ms ║║Condition #65 evaluated false (8ms)
+231ms ║║Condition group #63 evaluated false (state did not change) (11ms)
+240ms ║║Comparison (decimal) 79.3 is_greater_than (integer) 70 = true (2ms)
+242ms ║║Condition #66 evaluated true (9ms)
+249ms ║║Comparison (string) cool is (string) heat = false (2ms)
+251ms ║║Condition #68 evaluated false (7ms)
+253ms ║║Condition group #67 evaluated false (state did not change) (9ms)
+254ms ║║Condition group #64 evaluated false (state did not change) (22ms)
+262ms ║║Comparison (dynamic) open changes_to (string) open = true (1ms)
+264ms ║║Cancelling condition #6’s schedules…
+265ms ║║Condition #6 evaluated true (7ms)

REMOVE BELOW AFTER READING
If a solution is found for your question then please mark the post as the solution.


#2

will this fix it?


#3

My freetime is scarce the next few days, but generally, I try to use a trigger to fire off the piston, and conditions to control the flow afterwards. In your “s8am” piston, the only time the piston will fire is when {@WindowState} changes to open.


#4

with my edit it just keeps firing on the rises above… one would think it would only look for the rises above and stop… but it just keeps firing repeatedly, the push message is ringing my phone off the hook.


#5

perhaps this is the solution…


#6

It might help to make the trigger periodic (check every 15 minutes or every half-hour). Then check the conditions and make changes accordingly. Only send messages if a change in thermostat control is made.
Unless you have thermal conditions like Alderaan,


you should be able to pick up temperature shifts in time to react appropriately without wasting too much heating or cooling.


#7

Would be nice to let the temperature in house rise above the normal set point when a cold front is going to be rolling in soon.
Right now the trigger is running about every 12 to 20 minutes. My SmartThings app only updates every two minutes from my ambient weather data.
In Alderaan’s case start removing some heat in advance!