1) Give a description of the problem
I created this super simple piston to disable my thermostat when a window is opened. Too many times do I come home in the summer to me cooling the outside so this simple piston was the answer. Thermostat off when window is open but not returning to prior state when windows are closed.
2) What is the expected behavior?
When a window is opened the thermostat mode is captured and then the thermostat is turned off
3) What is happening/not happening?
The thermostat is turning off correctly when the window is opened but not turning back on when it is closed. I searched around and found a few people doing something similar and I copied it but for some reason mine isnât working.
4) Post a Green Snapshot of the piston
5) Attach any logs (From ST IDE and by turning logging level to Full)
2/15/2019, 9:56:40 AM +243ms
+1ms âReceived event [zCS - All Windows].contact = closed with a delay of 56ms
+9856ms âRunTime Analysis CS > 20ms > PS > 9815ms > PE > 20ms > CE
+9857ms âPiston waited at a semaphore for 9771ms
+9860ms âRuntime (37611 bytes) successfully initialized in 9815ms (v0.3.109.20181207) (9857ms)
+9861ms ââExecution stage started
+9873ms ââComparison (enum) closed is (string) open = false (2ms)
+9875ms ââCancelling condition #6âs schedulesâŚ
+9877ms ââCondition #6 evaluated false (9ms)
+9878ms ââCondition group #1 evaluated false (state did not change) (11ms)
+9881ms ââCancelling statement #2âs schedulesâŚ
+9894ms ââSkipped execution of physical command [Ecobee Downstairs].setThermostatMode([]) because it would make no change to the device. (3ms)
+9895ms ââExecuted [Ecobee Downstairs].setThermostatMode (6ms)
+9898ms ââExecution stage complete. (38ms)
+9900ms âEvent processed successfully (9899ms)
2/15/2019, 9:56:30 AM +821ms
+0ms âReceived event [Ecobee Downstairs].thermostatMode = off with a delay of 68ms
+9089ms âRunTime Analysis CS > 13ms > PS > 9058ms > PE > 18ms > CE
+9090ms âPiston waited at a semaphore for 9019ms
+9092ms âRuntime (37610 bytes) successfully initialized in 9058ms (v0.3.109.20181207) (9091ms)
+9093ms ââExecution stage started
+9107ms ââComparison (enum) open is (string) open = true (2ms)
+9109ms ââCondition #6 evaluated true (9ms)
+9116ms ââComparison (enum) off is_not (string) off = false (2ms)
+9118ms ââCancelling condition #7âs schedulesâŚ
+9119ms ââCondition #7 evaluated false (8ms)
+9120ms ââCancelling condition #1âs schedulesâŚ
+9121ms ââCondition group #1 evaluated false (state changed) (22ms)
+9124ms ââCancelling statement #2âs schedulesâŚ
+9962ms ââExecuted physical command [Ecobee Downstairs].setThermostatMode([]) (829ms)
+9964ms ââExecuted [Ecobee Downstairs].setThermostatMode (831ms)
+9967ms ââExecution stage complete. (874ms)
+9968ms âEvent processed successfully (9969ms)
2/15/2019, 9:56:29 AM +806ms
+1ms âReceived event [Ecobee Downstairs].thermostatMode = with a delay of 95ms
+103ms âRunTime Analysis CS > 26ms > PS > 57ms > PE > 20ms > CE
+105ms âRuntime (37541 bytes) successfully initialized in 57ms (v0.3.109.20181207) (102ms)
+107ms ââExecution stage started
+122ms ââComparison (enum) open is (string) open = true (2ms)
+124ms ââCondition #6 evaluated true (11ms)
+131ms ââComparison (enum) is_not (string) off = true (2ms)
+133ms ââCancelling condition #7âs schedulesâŚ
+135ms ââCondition #7 evaluated true (8ms)
+136ms ââCancelling condition #1âs schedulesâŚ
+137ms ââCondition group #1 evaluated true (state changed) (24ms)
+140ms ââCancelling statement #8âs schedulesâŚ
+148ms ââExecuted virtual command setVariable (3ms)
+151ms ââCancelling statement #4âs schedulesâŚ
+966ms ââExecuted physical command [Ecobee Downstairs].off() (805ms)
+967ms ââExecuted [Ecobee Downstairs].off (807ms)
+970ms ââExecution stage complete. (864ms)
+972ms âEvent processed successfully (972ms)
2/15/2019, 9:56:29 AM +138ms
+2ms âReceived event [Ecobee Downstairs].thermostatMode = off with a delay of 80ms
+91ms âRunTime Analysis CS > 23ms > PS > 45ms > PE > 22ms > CE
+93ms âRuntime (37538 bytes) successfully initialized in 45ms (v0.3.109.20181207) (90ms)
+95ms ââExecution stage started
+111ms ââComparison (enum) open is (string) open = true (2ms)
+113ms ââCondition #6 evaluated true (11ms)
+119ms ââComparison (enum) off is_not (string) off = false (2ms)
+121ms ââCancelling condition #7âs schedulesâŚ
+122ms ââCondition #7 evaluated false (9ms)
+124ms ââCancelling condition #1âs schedulesâŚ
+125ms ââCondition group #1 evaluated false (state changed) (23ms)
+128ms ââCancelling statement #2âs schedulesâŚ
+590ms ââExecuted physical command [Ecobee Downstairs].setThermostatMode([]) (452ms)
+592ms ââExecuted [Ecobee Downstairs].setThermostatMode (454ms)
+595ms ââExecution stage complete. (501ms)
+596ms âEvent processed successfully (596ms)
2/15/2019, 9:56:19 AM +98ms
+1ms âReceived event [Ecobee Downstairs].thermostatMode = with a delay of 59ms
+9137ms âRunTime Analysis CS > 18ms > PS > 9102ms > PE > 16ms > CE
+9138ms âPiston waited at a semaphore for 9067ms
+9140ms âRuntime (37610 bytes) successfully initialized in 9102ms (v0.3.109.20181207) (9138ms)
+9141ms ââExecution stage started
+9156ms ââComparison (enum) open is (string) open = true (2ms)
+9158ms ââCondition #6 evaluated true (10ms)
+9164ms ââComparison (enum) is_not (string) off = true (2ms)
+9166ms ââCondition #7 evaluated true (7ms)
+9167ms ââCondition group #1 evaluated true (state did not change) (20ms)
+9170ms ââCancelling statement #8âs schedulesâŚ
+9178ms ââExecuted virtual command setVariable (3ms)
+9181ms ââCancelling statement #4âs schedulesâŚ
+9976ms ââExecuted physical command [Ecobee Downstairs].off() (787ms)
+9977ms ââExecuted [Ecobee Downstairs].off (789ms)
+9980ms ââExecution stage complete. (839ms)
+9982ms âEvent processed successfully (9981ms)
2/15/2019, 9:56:18 AM +35ms
+1ms âReceived event [Ecobee Downstairs].thermostatMode = off with a delay of 61ms
+172ms âRunTime Analysis CS > 17ms > PS > 139ms > PE > 15ms > CE
+174ms âRuntime (37543 bytes) successfully initialized in 139ms (v0.3.109.20181207) (172ms)
+175ms ââExecution stage started
+193ms ââComparison (enum) open is (string) open = true (2ms)
+195ms ââCondition #6 evaluated true (13ms)
+201ms ââComparison (enum) off is_not (string) off = false (2ms)
+203ms ââCondition #7 evaluated false (7ms)
+204ms ââCondition group #1 evaluated false (state did not change) (23ms)
+207ms ââCancelling statement #2âs schedulesâŚ
+1020ms ââExecuted physical command [Ecobee Downstairs].setThermostatMode([]) (803ms)
+1021ms ââExecuted [Ecobee Downstairs].setThermostatMode (806ms)
+1024ms ââExecution stage complete. (848ms)
+1025ms âEvent processed successfully (1025ms)
2/15/2019, 9:56:16 AM +852ms
+1ms âReceived event [Ecobee Downstairs].thermostatMode = with a delay of 69ms
+77ms âRunTime Analysis CS > 19ms > PS > 41ms > PE > 16ms > CE
+79ms âRuntime (37537 bytes) successfully initialized in 41ms (v0.3.109.20181207) (77ms)
+80ms ââExecution stage started
+94ms ââComparison (enum) open is (string) open = true (2ms)
+96ms ââCondition #6 evaluated true (9ms)
+103ms ââComparison (enum) is_not (string) off = true (2ms)
+105ms ââCancelling condition #7âs schedulesâŚ
+106ms ââCondition #7 evaluated true (9ms)
+108ms ââCancelling condition #1âs schedulesâŚ
+109ms ââCondition group #1 evaluated true (state changed) (22ms)
+112ms ââCancelling statement #8âs schedulesâŚ
+119ms ââExecuted virtual command setVariable (2ms)
+123ms ââCancelling statement #4âs schedulesâŚ
+1139ms ââExecuted physical command [Ecobee Downstairs].off() (1007ms)
+1140ms ââExecuted [Ecobee Downstairs].off (1010ms)
+1143ms ââExecution stage complete. (1063ms)
+1145ms âEvent processed successfully (1145ms)
2/15/2019, 9:56:15 AM +972ms
+1ms âReceived event [Ecobee Downstairs].thermostatMode = off with a delay of 63ms
+71ms âRunTime Analysis CS > 18ms > PS > 37ms > PE > 17ms > CE
+74ms âRuntime (37535 bytes) successfully initialized in 37ms (v0.3.109.20181207) (72ms)
+75ms ââExecution stage started
+88ms ââComparison (enum) open is (string) open = true (2ms)
+90ms ââCondition #6 evaluated true (10ms)
+96ms ââComparison (enum) off is_not (string) off = false (2ms)
+98ms ââCancelling condition #7âs schedulesâŚ
+99ms ââCondition #7 evaluated false (8ms)
+101ms ââCancelling condition #1âs schedulesâŚ
+102ms ââCondition group #1 evaluated false (state changed) (21ms)
+105ms ââCancelling statement #2âs schedulesâŚ
+828ms ââExecuted physical command [Ecobee Downstairs].setThermostatMode([]) (714ms)
+830ms ââExecuted [Ecobee Downstairs].setThermostatMode (716ms)
+833ms ââExecution stage complete. (759ms)
+834ms âEvent processed successfully (835ms)
2/15/2019, 9:56:14 AM +624ms
+2ms âReceived event [Ecobee Downstairs].thermostatMode = with a delay of 99ms
+95ms âRunTime Analysis CS > 25ms > PS > 53ms > PE > 17ms > CE
+97ms âRuntime (37540 bytes) successfully initialized in 53ms (v0.3.109.20181207) (94ms)
+99ms ââExecution stage started
+113ms ââComparison (enum) open is (string) open = true (2ms)
+115ms ââCondition #6 evaluated true (11ms)
+121ms ââComparison (enum) is_not (string) off = true (2ms)
+123ms ââCancelling condition #7âs schedulesâŚ
+124ms ââCondition #7 evaluated true (8ms)
+125ms ââCancelling condition #1âs schedulesâŚ
+126ms ââCondition group #1 evaluated true (state changed) (22ms)
+129ms ââCancelling statement #8âs schedulesâŚ
+136ms ââExecuted virtual command setVariable (3ms)
+140ms ââCancelling statement #4âs schedulesâŚ
+1304ms ââExecuted physical command [Ecobee Downstairs].off() (1155ms)
+1305ms ââExecuted [Ecobee Downstairs].off (1159ms)
+1308ms ââExecution stage complete. (1210ms)
+1310ms âEvent processed successfully (1309ms)
2/15/2019, 9:56:13 AM +684ms
+1ms âReceived event [zCS - All Windows].contact = open with a delay of 52ms
+76ms âRunTime Analysis CS > 18ms > PS > 37ms > PE > 21ms > CE
+78ms âRuntime (37537 bytes) successfully initialized in 37ms (v0.3.109.20181207) (76ms)
+79ms ââExecution stage started
+90ms ââComparison (enum) open is (string) open = true (2ms)
+92ms ââCondition #6 evaluated true (7ms)
+106ms ââComparison (enum) off is_not (string) off = false (2ms)
+108ms ââCondition #7 evaluated false (15ms)
+109ms ââCondition group #1 evaluated false (state did not change) (25ms)
+112ms ââCancelling statement #2âs schedulesâŚ
+858ms ââExecuted physical command [Ecobee Downstairs].setThermostatMode([]) (742ms)
+859ms ââExecuted [Ecobee Downstairs].setThermostatMode (744ms)
+862ms ââExecution stage complete. (784ms)
+864ms âEvent processed successfully (863ms)