Motion Whenever LR motion sensor detects motion whether is armed or disarmed false 2015-10-02 12:47:59.642 2015-10-02 12:51:16.668
Nomotion Whenever LR motion sensor stops detecting motion whether is armed or disarmed false 2015-10-02 12:47:59.642 2015-10-02 12:51:16.668
I can’t seem to get the stop detecting motion to change correctly.
Anyway… This is my pleg…
Liteoff Whenever the Fireplace lamp is turned off
Liteon Whenever the Fireplace lamp is turned on
Motion Whenever LR motion sensor detects motion whether is armed or disarmed
Nomotion Whenever LR motion sensor stops detecting motion whether is armed or disarmed
Conditions
Name Repeat Expression
On Yes Liteoff and Nomotion
Off Yes Liteon or Motion
Actions
Actions for Condition: Off
Device Actions:
Immediate
Device Action Arguments
Kitchen motion SetArmed newArmedValue=0
Actions for Condition: On
Device Actions:
Immediate
Device Action Arguments
Kitchen motion SetArmed newArmedValue=1
But due to the Nomotion never being true, it never goes on. (Arms sensor.)
Also, I wish Mr. Schaefer would pay attention to his email. I’ve messaged him several times about a forbidden error on his website. (Need to set your chmod permissions on your web directories.)
Forbidden
You don’t have permission to access /Vera/Plugin/PLTS/TypicalLightMotion/ on this server.
I’m having a hard time following this post… but a tactic I’ve started to use on one of my motion sensors is to temporarily disarm it as a way to prevent the PLEG condition from being satisfied. So, for example, I have a motion sensor and a light. I want the motion sensor to turn on the light, but I still want the ability to manually turn off the light. So, I use the light as a trigger. When I turn on the light the motion sensor is bypassed. When I turn off the light, the motion sensor remains bypassed for X seconds–as many seconds as it reasonably takes to leave the area–and then re-armed after that delay. Then, I have the PLEG condition that turns on the light with motion be satisfied only when the armed sensor is tripped.
This came about because SWMBO was getting aggravated that she couldn’t turn off the light. It kept going on automatically after she turned it off at the switch.
I’m not sure if this is applicable to your issue… YMMV…
@DeltaNu1142, could you share you PLEG Report for those of us who are learning? I’ve seen other create a manual condition, use timer and then sequencing the manual condition prior to AutoOn and AutoOff conditions. You gave me my chuckle for the day “SWMBO” I can relate whole heartly ::), Mike
Here’s an excerpt… it’s pretty straightforward. When the light is on, the motion sensor is bypassed. When the light turns off, the motion sensor is rearmed after 20 seconds. For the purposes of this condition, the trigger turns on when the armed motion sensor is triggered.
c35_Second_Floor_Motion_Light_At_Night !t29_Stairway_Light_On AND t12_Second_Floor_Motion AND (t04_Sleep_Mode_On OR c02_Night)
If the light is off, motion is detected, and it’s nighttime… this condition turns on the light and disarms the motion sensor.
c36_Rearm_Second_Floor_Motion_Sensor !t29_Stairway_Light_On
When the light is turned off… this condition re-arms the motion sensor after 20 seconds.
@DeltaNu1142, I’m slow… looking at your conditions excerpts… I’m assuming your using a timer some where for the 20 seconds and where are you disarming/re-arming the Sensor? I’m assuming you are using a Trigger for your motion sensor (t12_Second_Floor_Motion)“Whenever Sensor is armed and detects motion”? Are you doing anything within the Action(s)? Mike
No timer… a delay on the action to re-arm the motion sensor. Nevermind the dining room & cabinet lights… they’re not pertinent.
@DeltaNu1142, Ahh many thanks, this make better sense. I will have to change my current Motion sensor trigger setting from “either armed or unarmed” to “armed” before using you suggested approach. Mike