Piston will not resume from paused state after set time


#1

1) Give a description of the problem
Don’t understand why piston will not resume after set time

2) What is the expected behavior?
Pushing button dimmer should set to 100%, auto light piston should pause for 3 min
then dimmer should dim back to 28% and auto light piston resume.

3) What is happening/not happening?
After pushing the button it will set to 100% and suspend the piston after 3 min it will dim again to 28% but the piston will stay in suspended state. Even when I resume it manually the motion light will stay on and will not turn off ( when the piston is suspended by other pistons it will resume fine and light operate as it should)

4) Post a Green Snapshot of the pistonimage

5) Attach any logs (From ST IDE and by turning logging level to Full)
3‎/‎31‎/‎2018‎ ‎10‎:‎16‎:‎35‎ ‎PM +868ms
+3ms
╔Received event [Home].test = 1522548995864 with a delay of 4ms
+82ms
║RunTime Analysis CS > 20ms > PS > 40ms > PE > 23ms > CE
+93ms
║Runtime (37528 bytes) successfully initialized in 40ms (v0.3.104.20180323) (89ms)
+97ms
║╔Execution stage started
+110ms
║║Condition #6 evaluated false (8ms)
+111ms
║║Condition group #1 evaluated false (state did not change) (9ms)
+117ms
║╚Execution stage complete. (23ms)
+124ms
╚Event processed successfully (124ms)

Any idea what’s my problem ? I’m puzzled by this.

Thanks


#2

Your pausing and resuming two different pistons? Is that correct?


#3

Yes, that’s correct, pausing and resuming piston that controls the light with motion sensor


#4

Ok but in your snapshot it appears your pausing the bath basement autolight, and resuming the backyard light and lock pistons?


#5

Wow , how stupid of me, but tried so many different variations that this was probably just last attempt mistake
Will correct and try again
Thanks


#6

Sadly the problem continues :frowning:
This time the light didn’t even dim back to 28% (White bulb is actually GE dimmer)
BTW, I have another piston suspending and resuming the same Auto Light piston just fine, only difference it’s not delay based resume but switch ON/OFF (Shower doors)

Logs

‎4‎/‎1‎/‎2018‎ ‎7‎:‎44‎:‎31‎ ‎AM +462ms
+5ms
╔Received event [Home].test = 1522583071448 with a delay of 5ms
+126ms
║RunTime Analysis CS > 44ms > PS > 54ms > PE > 33ms > CE
+137ms
║Runtime (37529 bytes) successfully initialized in 54ms (v0.3.104.20180323) (128ms)
+142ms
║╔Execution stage started
+255ms
║║Condition #6 evaluated false (59ms)
+258ms
║║Condition group #1 evaluated false (state did not change) (67ms)
+273ms
║╚Execution stage complete. (135ms)
+290ms
╚Event processed successfully (293ms)


#7

I would suggest turning on trace to see wahat condition#6 and #1 are. They are evaluating as false, and not executing. Can you share your other piston too. The auto light one, something has to be conflicting?


#8

This is the Shower door piston that works great (Keypad 9 is the fan, contact sensor the Shower door contact, Bulb2 same GE dimmer as before) This piston was never triggerd while testing the one that doesn’t work properly.

Will try the trace ( never used that before)
EDIT

Screenshot with trace , not sure what it means :innocent:


#9

What trace does is show you what is happening and not happening. The red bar is that it evaluated as false and never triggered the rest of your piston. (Keypad button 8) was never pushed. Thus the rest of the piston never happened. If it was green it would have evaluated as true and worked Dow from there. The number next to each statement coincide with the logs to reference what is happening and what is being evaluated. For example, since the button was never pushed #6, the if statement #1. Never triggered.

Let me ask this… are using the test button on the piston page to try this? If so it will result in your problem. You need to press keypad button 8, whatever that is and it “should “ trigger the piston.

You said keypad 8 was the dimmer, I assume a switch? Why not change that if statement to…
If keypad button 8 changes to on


#10

Shame on me, I used the test button, will try again :slight_smile:


#11

Once again it’s stuck paused

4‎/‎1‎/‎2018‎ ‎11‎:‎33‎:‎32‎ ‎AM +538ms
+0ms
╔Received event [Home].time = 1522596813472 with a delay of -935ms
+98ms
║RunTime Analysis CS > 20ms > PS > 51ms > PE > 23ms > CE
+103ms
║Runtime (37558 bytes) successfully initialized in 51ms (v0.3.104.20180323) (102ms)
+107ms
║╔Execution stage started
+109ms
║╚Execution stage complete. (4ms)
+110ms
╚Event processed successfully (110ms)
‎4‎/‎1‎/‎2018‎ ‎11‎:‎30‎:‎34‎ ‎AM +221ms
+1ms
╔Received event [Bath Basement Bright Light].button = released with a delay of 530ms
+71ms
║RunTime Analysis CS > 17ms > PS > 35ms > PE > 19ms > CE
+73ms
║Runtime (37569 bytes) successfully initialized in 35ms (v0.3.104.20180323) (71ms)
+74ms
║╔Execution stage started
+83ms
║║Comparison (enum) released gets (string) pushed = false (1ms)
+85ms
║║Cancelling condition #6’s schedules…
+86ms
║║Condition #6 evaluated false (6ms)
+87ms
║║Cancelling condition #1’s schedules…
+88ms
║║Condition group #1 evaluated false (state changed) (8ms)
+90ms
║╚Execution stage complete. (17ms)
+92ms
╚Event processed successfully (91ms)
‎4‎/‎1‎/‎2018‎ ‎11‎:‎30‎:‎32‎ ‎AM +559ms
+0ms
╔Received event [Bath Basement Bright Light].button = pushed with a delay of 794ms
+62ms
║RunTime Analysis CS > 13ms > PS > 33ms > PE > 16ms > CE
+64ms
║Runtime (37574 bytes) successfully initialized in 33ms (v0.3.104.20180323) (63ms)
+65ms
║╔Execution stage started
+75ms
║║Comparison (enum) pushed gets (string) pushed = true (1ms)
+77ms
║║Cancelling condition #6’s schedules…
+78ms
║║Condition #6 evaluated true (7ms)
+79ms
║║Cancelling condition #1’s schedules…
+80ms
║║Condition group #1 evaluated true (state changed) (8ms)
+82ms
║║Cancelling statement #2’s schedules…
+891ms
║║Executed virtual command [Bath Basement Light].pausePiston (805ms)
+906ms
║║Executed physical command [Bath Basement Light].setLevel([100]) (11ms)
+907ms
║║Executed [Bath Basement Light].setLevel (12ms)
+911ms
║║Executed virtual command [Bath Basement Light].wait (1ms)
+912ms
║║Requesting a wake up for Sun, Apr 1 2018 @ 11:33:33 AM EDT (in 180.0s)
+917ms
║╚Execution stage complete. (852ms)
+919ms
║Setting up scheduled job for Sun, Apr 1 2018 @ 11:33:33 AM EDT (in


#12

So, everything happened as it should except the resume piston. Correct?


#13

Yes, that’s correct, and it did not dim back to 28%


#14

Ok, try this. Not sure if it will work, click on the word “if” in your piston. It should bring up an edit if box. Click on the cog in lower right and select task cancelation, choose never cancel tasks. Then save it and try again

I think what is happening is that when the button is pressed is triggering the piston, but as soon as it is released it is canceling the rest of the piston from firing.


#15

Unfortunately still no go, piston stuck as paused and brightness is 100% :frowning:

EDIT : Just noticed that condition refused to save so tried again and now it shows N by the if so will try again

EDIT 2: no, still paused :frowning:


#16

Would you share the Bath Basement Auto Light piston with us?


#17

I would try clicking to the right of the WITH line…

temp

and in the top right corner, try setting it to this:

temp


#18

It’s posted above in post 8
Thanks


#19

Sorry, none of the ones posted above have that piston name


#20

Did that, will test, it added C/P A on the line it self
Thanks

EDIT: No change, still suspended for ever