Turning off a Scene

I have a scene defined and want to be able to turn off all of the devices included in that scene, so I for the "Select function of activate device Off" setting I selected "Turn off all Scene devices."

At first I used the button controller to turn off the devices as shown below: (Showering is the Scene)

This worked fine.

I decided to move this function into a Webcore piston (shown Below) and it didn't work.

Switch 68 is the Scene.

Why does it work in the Button Controller but not in Webcore?

Do you have logs?

first guess is disable command optimization for the piston...

Disabling Command Optimization seems to have fixed the issue. Thanks!