First piston issue


#1

1) Give a description of the problem
Made a simple piston motion sensor to trigger light switch. piston run but light does not turn on

2) What is the expected behaviour?
motion senor triggers light to come on

3) What is happening/not happening?
piston appears to run light switch does not come on.

**4) Post a Green Snapshot of the piston!

5) Attach logs after turning logging level to Full
10/16/2019, 9:50:03 PM +609ms
+2ms ╔Received event [Bathroom Motion Sensor].motion = inactive with a delay of 2467ms
+92ms ║Runtime (36551 bytes) successfully initialized in 55ms (v0.3.110.20191009) (89ms)
+93ms ║╔Execution stage started
+102ms ║╚Execution stage complete. (9ms)
+103ms ╚Event processed successfully (103ms)


#2

There is nothing wrong with the piston…
For a simple task it should work.

So let’s see:
1 - Can you turn the switch 1 ON and OFF thru ST APP?
2 - Can you turn the switch 1 ON by other means? (other triggers maybe?)

Could be a signal issue?


#3

The log you posted shows the motion sensor going INACTIVE, not active…

Basically, for a sensor to CHANGE to active, it has to first be inactive. Or another way to say this, if there has been recent activity in the bathroom when the piston is saved, then waving your hands will NOT turn on the light. You have to leave the room, wait 1-2 minutes, then return to the room to trigger the light.


#4

And your next question will be something like this:
What do I do if someone is in the bathroom and I want lights to remain ON

Here is a piston for that:

IF motion sensor 1 changes to ACTIVE
Then
With switch 1 turn ON

IF motion sensor 1 STAYS INACTIVE for 3 minutes
Then
With switch 1 turn OFF