Using two conditions


#1

Every once in a while this piston starts when it should not
Its suppose to fire when the power stays less than 8W for 45 seconds
Is there a way to maybe state something like
if power raises above 100w then drops below 8w


not sure if this will work


#2

Not sure if that version of “stays” will work. I would try “power drops below 8w for 45 seconds”.


#3

Ok what about the 2nd attachment


#4

That’s the code that I commented on.


#5

Thats not possible, It cant rise above 1000w and at the same time drop below 8w


#6

ok how to I activate the piston only after the power rises above then drops below


#7

You can try a WAIT

If power rises above 100W
THEN
     WAIT 45seconds  ←make sure you set TCP to never
     If power is less than 8W
     THEN DO STUFF

#8

Just remember that with “power” as your trigger (lightning bolt), the pison will run top to bottom at each and every change to power. (Potentially hundreds of times per hour)

There is no way to prevent this from happening.


#9

Ah yes. I’m getting slack without you around. Welcome back!


#10

@WCmore Great to see you back. I’ve been missing your knowledge & insight.


#11

*squirms a bit, tryimg to wriggle free*

Well, I’m still a bit… “tied up”… At the moment… But I’m making progress on all these “knots”… So hopefully soon. :sunglasses:


#12

Click on the AND, and change the Logical Operator to FOLLOWED BY, and input a reasonable amount of time.