Just need a time delay before actions. How/ Where to place wait command?


#1

1) Give a description of the problem
I have a working Piston that waits till the level of Light in Lux is reported by my locally located Weather Station to be Zero Lux. Then it proceeds to turn on lights and set other lights to specific light levels in percentage.

2) What is the expected behaviour?
Turn some specific lights on and set other lights to a specific percentage.

3) What is happening/not happening?
Since there is still a good amount of ambient light outdoors when the Weather Station reads Zero Lux I would like to insert a wait command that allows the piston to wait a specific amount of time (ex. 30 minutes / 45 minutes) and then fires off all of the commands in the Piston. This will allow the outside light level to diminish even further to the point where outdoor light are actually needed and be more efficient. There will be a cost saving in power as the lights are not triggered to turn on when not needed.

**4) Post a Green Snapshot of the piston![image|45x37]

5) Attach logs after turning logging level to Full
I have not logged the events as the Piston works , but I am not sure if the Wait/ Delay is PROPER and will effect all the lights and not just the ones in which I added the Do Wait command.


#2

Instead of using Time is between 4 and 9, could you use Time is Sunset + 30 minutes (or something similar)?


#3

You could also just use ‘stays below’ to get the timer and condition into a single trigger. Incorporating @Pantheon’s suggestions, perhaps something like this:

If Water sensor 1's illuminance stays below 1 lux for 30 minutes
  and
time is after sunset+30 minutes
then
  do stuff
end if

#4

As you have used ‘async’ on the action that includes the ‘wait’, only the lights in that action will be delayed by 30 minutes. The piston will start running the remaining actions when the wait starts. If you want all the lights to be delayed just lose the async.


#5

This was a simple change to make and I will see how it reacts this evening! Thanks!