Okay just to report back,
I tried the above code and it also had issues setting the variables after the wait time.
So I then created a virtual switch and used that instead of a variable. The piston would NOT set the switch to on after a wait period.
I then tried several other variations of code , none would work and I could not get Webcore to return after the wait and set a variable. Or turn on a switch or whatever. I’m sure there is an obvious reason but I don’t know what it is.
I have come up with a work around that I use in another piston I am running to set time and trigger something at that time. So below is the image of the latest piston that I am testing. It appears to work in my test but will have to let it run on it’s own some to see if it consistently works.
If this indeed works I’ll come back and mark this as complete.
Thanks everyone for your help and trying to find a solution.
I still don’t understand why Webcore would not return from a 5 minute wait and set a variable or turn on a switch?