Motion Light Control Help


#5

This is what I have set up now. I guess I don’t understand how the Task Cancellation Policy works then. The way I follow the logic on this, the lights will come on when the sensor sees motion.(nothing can cancel them coming on when it sees motion because of the TCP). Then 3 min after the sensor goes active the lights will turn off unless the sensor goes inactive with no motion for a short time and is “re-activated”.

I figured I would want a TCP set on the Wait so it would reset the timer if the sensor went active again.


#6

Change it so that the wait and the turn off is directly under the turn on.
Then delete the else.


#7

Please explain how this won’t turn off the lights 3 min after they turn on if motion never stops. The only way I see the timer being reset is if motion stops and the sensor becomes active again.

Is active not the same as motion detected?


Newbie alert! Basement light control
#8

Because you have set TCP to never.
This means that the tasks will never cancel whenever the motion becomes inactive.
Also the way it works is when motion is detected again within the 3 minute countdown, everything resets. So when motion goes inactive again it restarts.
So in theory if you keep moving around the light will stay on.
EDIT : If you enable trace facility you can watch the timer counting down and resetting with motion.


#9

I’ll give it a try and see how it works. Thanks.


#10

Active or Inactive is a condition.
Changes To is a trigger.

Here is a description of them.


#11

Watching the trace, the timer stopped counting as soon as the sensor stopped reporting motion but it appeared to run correctly and shut the slights off after 3 min. I’ll do some more testing to see if the lights shut off while motion is occurring(which is the problem I have been having in the past)


#12

Where do you set TCP?

NVM…found it.


#13

after messing with this for a while… still having the lights turn off on me. I’m thinking its the sensor going dead and not registering motion.


#14

Look in the recently tab for the motion sensor, that should tell you if it is detecting motion or not.


#15

I’ve looked there… I blame this Fibaro sensor… it always has hiccups… main page says motion is detected but the “recently” tab says no motion. Lights sometimes come on and sometimes not. Always needs a battery pull to reset it and correct it.


#16

What version is the sensor?
Pre V3.2 or V3.2.
What DH are you using?
This could also affect what is happening.


#17

v3.2
This is the handler I’m using.
https://drive.google.com/file/d/1ZyoxKu5B9VAI-V9HW6ow5F-TzUHzLH8U/view?usp=sharing


#18

Well it’s not that then.
Could you post a screen shot of your piston again.
Make sure it has the code so I can import and test with my setup.


#19

For example. This morning I was leaving for work and I saw the sensor flash as to pick up motion and the lights didn’t come on. I checked the app and the DH said the sensor was detecting motion but under the “recent” tab indicated NO motion.

I’m thinking it has to do with the DH or device and not the piston.


#20

Can you do a screenshot of the parameter settings for the device?


#21

Assuming this is what you meant.


#22

I’ve just compared your parameters with mine and there are some that are different but I don’t think that should matter.
Perhaps you could put your sensor into config mode, press button b 3 times and the led will go blue, and then push the config button in the device in the ST app.
Just to give it another boot up the backside.

I really don’t understand why it’s not working. Do you have another sensor you could try with to prove it?


#23

You could try doing it this way.
Completely different way but works just as well.

Or perhaps set it up using Smart Lighting. This will also prove if it is working as it should.


#24

I’ll give it a shot… based on what I’m seeing in the logs and what I see in the app… I don’t think its the piston causing the issue. The sensor is not reporting motion consistently even though it says its detected motion.