Stop/cancel a piston from another piston


#1

Hi,

Is it possible to stop the execution of one piston from another piston?
I’d like to interrupt the execution of a piston, if another piston fires up.
I can do it using if condition and veriables, but it won’t stop it if its in the middle of executing a “long” action like slowly dimming and turning off lights. only after the action is done.


#2

I would love to see some examples as well…


#3

examples?
I have two pistons:

  1. turn lights on if motion detected
  2. slowly dim lights + off over course of 60 seconds if no motion for 5 minutes.

what happens is, when the lights starts to dim, and motion is detected, the lights turn full brightness, but then continue to dim.
In that situation the dimming piston needs to be stopped.


#4

Ahh yes… What I meant is, I would love to see some examples of how to stop a fade.


#5

I did some testing with a 20 second Fade level action and it did not seem like any special settings were required to cause the Pause Piston action triggered from a different piston to interrupt the fade. Is it possible that there is a device-specific fade command being used where the device takes the command from webCoRE and then performs the fade itself based on the specified timing?

Edit: I guess you were not explicitly asking about pause and resume but maybe this is a solution to pause and then resume the dimming piston?


#6

A bit late reply …

but isn’t pause well… pauses the piston? then it will require to resume it. which adds quite a complication, especially when its not needed. all i need is to abort the execution of the piston, which is a lot easier then to determine if it is paused or not.

The lamp does have a specific fade function, but by the way it works using webcore, its webcore is emulating the fade, sending lower brightness commands every few seconds.


#7

I know you’ll hate my workaround BUT

if you pause the piston controlling fade out, fadeout stops… and then you can resume the piston.