Triggering Multiple Parallel pistons


#1

Hi,

I’m about to build a vacation house piston, that replicates the house being occupied. I am aware that there are various Smartthings Routines that do this, but I thought I’d have a crack and writing my own.

What I’m trying to ascertain is whether Webcore will allow me to have a ‘master’ piston that will fire and forget other pistons (which may run for a couple of hours) before being terminated by the ‘master’ piston.

So, as an example of behaviour :

  1. Master Piston will trigger because house is dark, and away switch is set.
  2. that In turn, will trigger a number of other pistons. Using Random Wait, these will , as an example, replicate movement through a house by orchestrating set of lights being turned on and off, (eg, hallway, stairway, bathroom turned on in sequence, then turned off in reverse sequence) or show intermittent occupation of a kitchen with lights.
  3. At an appropriate stage in the evening, those pistons will be killed off, and nighttime pistons will be triggered instead (bedroom lights, bathroom visits, landing lights, etc).
  4. At the appropriate time, stop the ‘child’ pistons.

Thanks in Advance!


#2

When executing another piston you have the option to wait for it or continue on. Just leave this as false and your master piston will carry on.


#3

This seems like a good case for the Pause and Resume Piston actions if you have pistons running all day. If the master simply pauses and resumes the other pistons then they don’t need to include any logic about whether or not to run, just set the interval whenever the piston is running and let the master handle all the scheduling.