Switch not turning off after motion stays inactive


#1

I have a simple piston setup for some lights in the garage. I want to turn them off XX minutes after motion stops.

Problem is the switch never turns off. I’m probably overlooking something pretty simple here.


#2

I would try, IF outlet switch IS on, and motion sensor stays inactive for x minutes.


#3

Yes,
What @Alwas recomended will work.

What you have is two triggers which will cause tons of problems.
Fo ryour piston to execute and turn OFF the outlet here is what needs happen (even then IF SO)

  • You have to watch the piston counter (30 minutes in your case)
  • When it’s done and piston says PENDING
  • You need to turn ON the outlet at that VERY MOMENT
    in that case BOTH your triggeres will be TRUE etc… Which is nearly impossible LOL

I believe what you want is (if i am not mistaken)
When outlet turns ON or IS ON, if there is no motion happening X minutes, you want outlet to turn OFF…
if I am correct, try this piston:

IF Motion sensor stays INACTIVE for 30 minutes
Then 
With Outlet 3 
Turn OFF

That’s it.

I don’t know how you plan on turning it ON but if you want to turn it on with motion sensor then the new piston can be this:

IF motion sensor 1 motion CHANGES TO active
Then 
with outlet 3 turn ON

IF motion sensor 1 motion STAYS INACTIVE 30 minutes
Then
With outlet 3 turn OFF

#4

So I’m pretty sure I’ve had the first if set to if switch is on, and Motion sensor stays inactive and that wasn’t working either. But I don’t think the switch status had the lightning bolt off to the side. Does it need to subscribe to events? Or do I totally get rid of that if statement and only have the motion sensor.

These switches I will turn on manually. The whole idea of the piston is just to turn them back off if I forget.


#5

If you turn them ON and forget,
the piston i recommended will turn them OFF in 30 minutes IF there is no motion in the room regardless of how they were turned ON


#6

I agree with Ike. All you need is this:

IF
temp

…and make sure that IF block’s “Task Cancellation Policy” is set to “On condition state”.
IE: remove the (N)


#7

Perfect. I’ll give it a whirl. I suspect I was overly complicating it.

I have another piston for my porch lights and a motion sensor. I know I have two conditions set in it too, but it seems to work okay. I’ll have to revisit it after testing this one out. :slight_smile:

Thank you everyone!