Is this piston able to be created?


#1

1) Give a description of the problem
I need to create piston that is triggered by 4 ‘IFs’ and ‘THEN’ waits for 10 seconds and '‘THEN’ starts a web request ‘ONLY IF’ a ‘TRIGGER’ has happened during that 10 second wait

2) What is the expected behavior?
All ‘THENs’ seem to run without waiting for the previous one to finish but also I cannot find a way to get a ‘THEN’ to only start after it has waited for the 10 second and checked another ‘IF’ condition/trigger

3) What is happening/not happening?
Any piston I create, including the THEN-IF, does not wait for the 10 second wait without running the other functions

4) Post a Green Snapshot of the pistonimage
N/A – Cannot create one with the right settings so don’t have one

5) Attach any logs (From ST IDE and by turning logging level to Full)
N/A

REMOVE BELOW AFTER READING
If a solution is found for your question then please mark the post as the solution.


#2

Just a thought as I’ve never tried this.

Do it with two pistons. The first calls the second after meeting the 4 IFs and waiting 10 seconds.

The 2nd piston being called only fires IF the trigger happened during the 10 second wait.


#3

Yeah had the same thought a few hours ago. Haven’t had the chance to test yet, but as both of us thought of it then maybe it’s viable :slight_smile:

It is just a shame that the ‘has changed’ time is only available in minute increments and not seconds


#4

This works correctly. It requires two separate pistons to have something happen during a wait time and then refer to that after that wait time. Annoying to need two to do this but it does work well :smiley: