1) Give a description of the problem
If condition is not met anymore, wait doesn’t reset, scheduling is not canceled
2) What is the expected behaviour?
If the temperaure setpoint is sucessfully changed on first try, scheduling should be canceled
3) What is happening/not happening?
Very short on the intended function: My thermostat is naughty, doesn’t like to receive commands sometimes so in order to make sure the heating setpoint is changed, after first command, wait for 60s, send PUSH notification and try again, for 3 times. 2 set of comands each day.
No matter if setpoint chage was succesful after first, second or third try … the code will execute no matter the conditions and all 3 PUSH notifications will be received.
TCP set to on condition state. Why is scheduling after 60s not canceled if the condition is not fulfilled anymore? Could be because of every (TOD) triggers?
I can solve this on many different ways but I’m scratching my head over why this doesn’t work.
**4) Post a Green Snapshot of the piston!
5) Attach logs after turning logging level to Full
29.3.2022, 22:53:01 +113ms
+1ms ╔Received event [Mitt hjem].time = 1648587182274 with a delay of -1161ms
+64ms ║RunTime Analysis CS > 44ms > PS > 5ms > PE > 15ms > CE
+66ms ║Runtime (41997 bytes) successfully initialized in 5ms (v0.3.114.20220203) (65ms)
+67ms ║╔Execution stage started
+96ms ║║Executed virtual command [Bad 2 Thermostat].sendPushNotification (12ms)
+100ms ║╚Execution stage complete. (33ms)
+102ms ║Setting up scheduled job for Wed, Mar 30 2022 @ 8:12:00 PM CEST (in 76738s), with 1 more job pending
+257ms ╚Event processed successfully (257ms)
29.3.2022, 22:52:02 +102ms
+1ms ╔Received event [Mitt hjem].time = 1648587123693 with a delay of -1591ms
+62ms ║RunTime Analysis CS > 32ms > PS > 5ms > PE > 24ms > CE
+64ms ║Runtime (41997 bytes) successfully initialized in 5ms (v0.3.114.20220203) (63ms)
+65ms ║╔Execution stage started
+95ms ║║Executed virtual command [Bad 2 Thermostat].sendPushNotification (11ms)
+165ms ║║Executed physical command [Bad 2 Thermostat].quickSetHeat([24.0]) (66ms)
+166ms ║║Executed [Bad 2 Thermostat].quickSetHeat (68ms)
+170ms ║║Executed virtual command [Bad 2 Thermostat].wait (0ms)
+171ms ║║Requesting a wake up for Tue, Mar 29 2022 @ 10:53:02 PM CEST (in 60.0s)
+178ms ║╚Execution stage complete. (113ms)
+180ms ║Setting up scheduled job for Tue, Mar 29 2022 @ 10:53:02 PM CEST (in 59s), with 2 more jobs pending
+225ms ╚Event processed successfully (224ms)
29.3.2022, 22:51:02 +70ms
+1ms ╔Received event [Mitt hjem].time = 1648587063389 with a delay of -1319ms
+44ms ║RunTime Analysis CS > 19ms > PS > 7ms > PE > 18ms > CE
+47ms ║Runtime (41997 bytes) successfully initialized in 7ms (v0.3.114.20220203) (45ms)
+48ms ║╔Execution stage started
+110ms ║║Executed virtual command [Bad 2 Thermostat].sendPushNotification (12ms)
+1615ms ║║Executed physical command [Bad 2 Thermostat].quickSetHeat([24.0]) (1500ms)
+1616ms ║║Executed [Bad 2 Thermostat].quickSetHeat (1502ms)
+1620ms ║║Executed virtual command [Bad 2 Thermostat].wait (0ms)
+1622ms ║║Requesting a wake up for Tue, Mar 29 2022 @ 10:52:03 PM CEST (in 60.0s)
+1645ms ║╚Execution stage complete. (1596ms)
+1647ms ║Setting up scheduled job for Tue, Mar 29 2022 @ 10:52:03 PM CEST (in 59s), with 2 more jobs pending
+1654ms ╚Event processed successfully (1654ms)
29.3.2022, 22:49:59 +42ms
+1ms ╔Received event [Mitt hjem].time = 1648587000000 with a delay of -958ms
+93ms ║RunTime Analysis CS > 42ms > PS > 6ms > PE > 45ms > CE
+96ms ║Runtime (41996 bytes) successfully initialized in 6ms (v0.3.114.20220203) (94ms)
+98ms ║╔Execution stage started
+123ms ║║Comparison (decimal) 20.0 is_different_than (integer) 24 = true (2ms)
+125ms ║║Condition #6 evaluated true (11ms)
+126ms ║║Condition group #5 evaluated true (state did not change) (13ms)
+128ms ║║Cancelling statement #7’s schedules…
+4340ms ║║Executed physical command [Bad 2 Thermostat].quickSetHeat([24.0]) (4208ms)
+4341ms ║║Executed [Bad 2 Thermostat].quickSetHeat (4210ms)
+4345ms ║║Executed virtual command [Bad 2 Thermostat].wait (1ms)
+4347ms ║║Requesting a wake up for Tue, Mar 29 2022 @ 10:51:03 PM CEST (in 60.0s)
+4377ms ║╚Execution stage complete. (4280ms)
+4379ms ║Setting up scheduled job for Tue, Mar 29 2022 @ 10:51:03 PM CEST (in 59s), with 2 more jobs pending
+4416ms ╚Event processed successfully (4416ms)
REMOVE BELOW AFTER READING
If a solution is found for your question then please mark the post as the solution.