Just recently started playing with PLEG and trying to apply to a specific scenario. I have a Vera Edge.
I have outdoor GoControl ZWave floods and a basic scene that turns the floods on at sunset and turns them off in +3 hours. This simple scene is (as one might expect) fine.
I recently added an Aeotec Trisensor, to be used primarily for detecting motion.
I wanted the following scenario:
- From sunset until +3 hours, have the floods on regardless of motion
- After +3 hours until sunrise, turn the floods on when motion is detected; turn off floods after 5 min
To test out floodlight control with a motion trigger, I used PLEG to set up a trigger, and then a condition on that motion trigger. Finally a Logic Action to toggle the state of the floodlights with an interval delay of 2 min (just for testing purposes; in normal operation the interval would be 5 min).
When armed, the motion detector turns on the floods as expected, but the lights do not turn off after the interval prescribed. After a few more minutes, triggering the motion sensor causes the lights to be turned off (presumably because the light state is toggled).
Question: Is there anything I ought to be doing differently to ensure that the lights duly turn off as expected?
Question: Since the trisensor also includes a light sensor, would it make sense to extend the condition to include an AND test to check the light level - i.e., if motion is detected AND the light level is less than 10 lux, for example?
Many thanks for your guidance. Greatly appreciated.