"No motion = turns off light" - Part of piston firing when it should not


#1

1) Give a description of the problem
Getting a push notification when I shouldn’t.

2) What is the expected behavior?
If light is on, but no motion for 10 minutes, then turn off light and send push notification. However, if light is manually turned off before the 10 minutes is up, then no notification should be sent and piston should reset itself.

3) What is happening/not happening?
I’m getting the push notification even if the light is manually turned off before 10 minutes.

4) Post a Green Snapshot of the pistonimage

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


#2

The switch on condition is not subscribed (no orange lightning bolt in the gutter).

Click on that IF, click the cog symbol and set to always subscribe.

Mixing conditions and triggers is not always the best method as it can make things a bit more fiddly.

I would do this:

IF switch IS on
And
IF motion IS inactive
then
wait 10 minutes
turn off
send push


#3

Thanks, that makes sense.