Piston continues to execute even arguments not met


#1

1) Give a description of the problem
The piston have 2 main arguments, where it uses the condition “is and stays for X time”. Even though I change the environment to that if stop meeting the rule the piston continues and execute both statements

2) What is the expected behaviour?
By the time the argument is not met anymore, the “stays for X time” should reset an the actual value disconsidered

3) What is happening/not happening?
the piston after initiated just goes on without stopping

4) Post a Green Snapshot of the pistonimage

5) Attach logs after turning logging level to Full
(PASTE YOUR LOGS HERE THEN HIGHLIGHT ALL OF THE LOGS AND CLICK ON THE </> ICON TO FORMAT THEM CORRECTLY)

2/8/2021, 11:59:41 PM +210ms
+3ms ╔Received event [Home].time = 1612839580981 with a delay of 229ms,canQueue: true, calledMyself: false
+6ms ║RunTime initialize &gt; 5 LockT &gt; 0ms &gt; rtDT &gt; 1ms &gt; pistonT &gt; 0ms (first state access 4 4 1)
+10ms ║Runtime (10648 bytes) successfully initialized in 1ms (v0.3.113.20210203_HE)
+53ms ║╔Execution stage started
+65ms ║║Cancelling condition #16's schedules...
+67ms ║║Condition #16 evaluated true (2ms)
+68ms ║║Cancelling condition #15's schedules...
+69ms ║║Condition group #15 evaluated true (state changed) (5ms)
+71ms ║║Cancelling statement #17's schedules...
+101ms ║║Executed physical command [Luz Ale].off() (27ms)
+102ms ║║Executed virtual command [Luz Ale].toggle (29ms)
+107ms ║║Error while executing physical command virtual-tts-Alexa-porta quarto.off([]): java.lang.IllegalArgumentException: Command 'off' is not supported by device.
+145ms ║║Executed virtual command [virtual-tts-Alexa-porta quarto].toggle (41ms)
+168ms ║╚Execution stage complete. (115ms)
+187ms ╚Event processed successfully (185ms)
2/8/2021, 11:59:25 PM +767ms
+4ms ╔Received event [Home].time = 1612839565939 with a delay of -172ms,canQueue: true, calledMyself: false
+7ms ║RunTime initialize &gt; 6 LockT &gt; 0ms &gt; rtDT &gt; 1ms &gt; pistonT &gt; 0ms (first state access 5 4 2)
+10ms ║Runtime (10646 bytes) successfully initialized in 1ms (v0.3.113.20210203_HE)
+54ms ║Synchronizing scheduled event, waiting for 119ms
+175ms ║╔Execution stage started
+183ms ║║Cancelling condition #7's schedules...
+185ms ║║Condition #7 evaluated true (2ms)
+187ms ║║Cancelling condition #6's schedules...
+188ms ║║Condition group #6 evaluated true (state changed) (6ms)
+190ms ║║Cancelling statement #8's schedules...
+221ms ║║Executed physical command [virtual-tts-Alexa-porta quarto].active() (27ms)
+223ms ║║Executed [virtual-tts-Alexa-porta quarto].active (30ms)
+232ms ║║Comparison (enum) on is (string) on = true (1ms)
+234ms ║║Condition #11 evaluated true (6ms)
+241ms ║║Comparison (enum) off is (string) on = false (1ms)
+243ms ║║Condition #13 evaluated false (7ms)
+248ms ║║Condition #14 evaluated false (4ms)
+250ms ║║Condition group #12 evaluated false (state did not change) (14ms)
+252ms ║║Condition group #10 evaluated false (state did not change) (24ms)
+298ms ║║Condition #7 evaluated true (1ms)
+299ms ║║Condition group #6 evaluated true (state did not change) (2ms)
+300ms ║║Cancelling statement #8's schedules...
+342ms ║║Executed physical command [virtual-tts-Alexa-porta quarto].active() (38ms)
+343ms ║║Executed [virtual-tts-Alexa-porta quarto].active (41ms)
+353ms ║║Comparison (enum) on is (string) on = true (1ms)
+355ms ║║Condition #11 evaluated true (6ms)
+361ms ║║Comparison (enum) off is (string) on = false (1ms)
+362ms ║║Condition #13 evaluated false (6ms)
+367ms ║║Condition #14 evaluated false (3ms)
+368ms ║║Condition group #12 evaluated false (state did not change) (11ms)
+370ms ║║Condition group #10 evaluated false (state did not change) (21ms)
+391ms ║╚Execution stage complete. (216ms)
+447ms ║Setting up scheduled job for Tue, Feb 9 2021 @ 12:59:40 AM BRST (in 15s)
+449ms ╚Event processed successfully (447ms)

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


#2

See if this helps