This statement is executed asynchronously


#1

I have a few fans that i would like to turn on for 15 min every 1 hr if the temp is below 82.
so i wrote this

I cant figure out why im getting the message " this statement is executed asynchronously "
can anyone tell me why or guide me on how to better design this template?
to be more specific, I wanted the fans to stay on if the temp is above 82 and turn on for 15 min every 1hr if the temp is below 82. so i made a different piston that just turns it on when it passes 82 and the above only when its below 82. if its possible to combine both that would be amazing but my skills are nub at best so any help is appreciated.


#2

Not sure about the statement executed asynchronously message but you might need to set you task cancellation to never for the with statement. I am not sure how it acts when it comes back from the wait but the every statement is very exclusive for executing statement inside.


#3

Maybe the piston is corrupted.
Try erasing this one and creating a new one.
You can combine the two in a single piston.

Every hour at 0.00 past the hour
    IF the sensor raises to or above 82
    With outlet 7 (here, do what @guxdude said)
    Turn ON
    Wait 15 minutes 
    Turn OFF
    IF the sensor drops to or below 82
    With outlet 7
    Turn OFF

#4

Where do you see that message?

Would the trigger conditions work inside a timer? They usually work on values carried by events.


#5

You are absolutely right… Sorry my bad… Triggers won’t work but conditions DO…
the correct way is…
Every hour at 0.00 past the hour
IF the sensor is above 82
With outlet 7 (here, do what @guxdude said)
Turn ON
Wait 15 minutes
Turn OFF
IF the sensor is below 82
With outlet 7
Turn OFF

And just to be sure i tested this piston and it worked…
29%20PM