PLEG help

Hi,
I have
PLEG version 7.45
PLC version 7.45

Although I’ve had PLEG for a few years, I never ended up using it for anything. Not a VERA power user by any means, although I have about 30-35 zwave devices connected. I have basic scenes set up (for instance, a door sensor on the back door, so when the door opens it turns the utility room light on for 1 minute, etc. simple stuff).

Our dog unfortunately has to stay outside when we’re not home, as she gets bored in the house when she’s alone all day. Although she has shade, a pool, plenty of water, and a large yard to play in, with the Texas heat, I’ve come home the last few days and noticed she’s ‘woozy’ and seems out of it for a few minutes until she gets inside.
This weekend I set out to fix the problem, and built her a 2.5’x4’ “igloo” inside the garage (which is not heated or cooled). In the picture below there’s a doggie door below the window. The right 1/3 of the igloo has a portable AC unit, and the left 2/3 is accessible by the dog door. The two compartments are separated by 2x4s spaced 3" apart, so she can see the portable AC but can’t get close enough to bite it. Then 1/4" sheetrock on top of everything, and 1/2" insulating board on top of that.

What I’m trying to do is have a motion sensor in the part she can’t get to (the AC side) pointed at the doggie door. That way when she comes in, it kicks the AC on for 30 minutes. Vera’s scene controller can do this, and I can set a ‘30 minute delay’ to turn it off. HOWEVER, if motion is triggered at any point during that 30 minute period, I want the timer to ‘reset’, so if at minute 29 of it being triggered she moves in her bed, it starts the 30 minute clock over again. Hope that makes sense. Currently (and I tested this), if Vera is set to activate power to the AC (I have a z wave power plug that it plugs in to), and 30 minutes later kill that power, regardless how much movement takes place during that time, the AC kicks off after 30 min. only then if there’s movement does it kick back on again.

Hope this makes sense, and would appreciate any help I can get.

Currently in PLEG I have what’s attached in the second image

What’s in pleg

I’m not able to answer the question myself, but there are many examples of doing this exact same thing but with a light. Motion turns on the light and any movement retriggers a timer. Search for “PLEG motion sensor and lights” on Google and a few popped up. You can just follow those examples.

I believe you need to both set up a “Re-Triggering” timer and you need to make an adjustment to the motion sensor. Most have a set time that the don’t register new movement after first registering that movement (5 minutes or so). I think you can change that in the properties.

You need to hit the ACCEPT button in the screen you posted.

Then you need a couple of condition:

ACON grg_dog_motion
ACOFF grg_dog_motion; NOW > 30:00

ACOFF will be true 30 minutes after the last time that motion was detected.

Add an action to ACON to turn on the AC
Add an action to ACOFF to turn of the AC

Did all that - went to vera and ‘armed’ the motion sensor. Everything worked. However after 30 minutes everything turned off although there is motion (motion sensor shows that motion is triggered). See below attachments for configuration of pleg:

I just opened the motion sensor and set it to ‘test’ mode (where it checks every 5 seconds for motion instead of every 4-5 minutes). After a few seconds it didn’t detect motion, but then when I triggered it, PLEG turned the correct switch on.

Which leads me to believe that while PLEG is working correctly for turning it on, it’s not working correctly for not turning it off although the motion sensor is still triggered.

More pleg screenshots

Finally, this shows that the motion sensor is armed

Apparently you ate using a motion sensor with a long trigger time.

Just put a
NOT
I front of the motion in the off condition.
You may also want to lower the 30:00 minutes since now the time is from when the motion sensor indicates no motion. Currently it is based on motion. But that does not work well with the battery operated motion sensors.

@msticalice, Did you finally get your PLEG scenario to work? if would be so kind and share your final PLEG report, Mike