PLEG syntax question (for Aeon multi sensor)

I want my Aeon to switch lights on when motion is sensed, but only when light level is low.
I have set up the following: In inputs, Motion = when motion is triggered. Night = light level reached 1000 (tried with < and >)
Now i have condition name MotionON, Condition expression = Motion and Night, and this is where i have the problem. The lights come on when the sensor is triggered, but all the time, so my syntax must be wrong, or the night condition is wrong (or both ?)
I ahve looked at the pls website but to be honest dont understand it…

I would post a picture of my settings but dont know how to do that…

I would post a picture of my settings but dont know how to do that...
Look for a key on your keyboard labelled [i]PrtScr[/i] or something similar. It is often a secondary function of another key - particularly on a laptop - so may require you to press the [i]Function[/i] or [i]Fn[/i] key first. This key will capture the screen into the clipboard from where it can be pasted as an image in [i]Paint[/i] or another graphics program. Holding the [i]Alt[/i] key whilst hitting [i]PrtScr[/i] will only capture the active window.

You may need to use your browser’s zoom function to get the interesting bit to fill the screen before capturing it. You may also need to use the graphics program to crop the image to the relevant part. This will be easier if you have upgraded your PLxx plugins to V2.5. If you have, click the Report button on the Control tab to get all the parameters displayed then stretch the window until the scroll-bars vanish. Alt-Fn-PrtScr should now capture just this window. Save the image as a JPEG. If the saved file size is more than 500KB, decrease the JPEG quality or reduce the image size (resolution).

When sending your post, click on Attachments and other options just below the text box and then click the Choose File button and select your JPEG.

Thanks, these are the settings i use. I have managed to get it working with the combination switch, and with fiddling around i think i have narrowed the problem down to the light sensor settings in PLEG not being right for what i want, and ideally would like to do it in PLEG rather than using PLEG and the combination switch together, it should be possible if i can get the settings for night and day right in PLEG

There’s something very odd about your PLEG report. You have triggers for Night and Day with apparently the same brightness level (reach 100). Presumably Night should be less than 100 and Day greater than 100. You also have actions for conditions that don’t exist (c1, c2 and BedsidedOff). That shouldn’t be possible!

I know that the report function is new but RTS is a thorough chap so I would be surprised if it’s telling lies. Also it is perfectly correct on my considerable collection of PLEG and PLTS devices. So what’s going on here? Did you upgrade Program Logic Core to V2.5 when you upgraded PLEG? Try refreshing your browser page and re-running the report to see if the odd stuff vanishes.

I have a Aeon 4-in-1 sensor in my system but I’m not too impressed with the light sensor readings. They seem a bit too approximate for my liking. I use the DayorNight plugin as a trigger for my PLEGs - set as ItsNight - Day or Night indicates night. As long as you have your location set correctly, this should give a pretty reliable trigger when night falls. It won’t react to solar eclipses, of course, but that shouldn’t be a frequent problem. ;D

I would be surprised if it's telling lies.

OK - I’m surprised. :o I just noticed that some of my PLEG reports show actions for conditions that used to be but are no more - they are ex-conditions, they have ceased to be. :smiley:

But - your Night and Day triggers are still messed-up so either edit them or switch to the DayorNight plugin and you may have more success.

The Bedside condition does not exist any more, i did that as a test but deleted it before i ran the report. Day is not being used at the moment, i only use night. In night i have the condion light <100, in day >100, so it might look the same but it isnt. But even if i replace night with Day in the condition, it doesnt work. I was thinking of using the night and day plugin, but its more about learning of how to use the pleg correctly, so i know how to program it for future use. I can have it all working using the combination switch, so the problem is solved, i would just like to know how to use pleg to achieve the same thing, which should be possible

Set Debug to 1 in the Advanced Tab for your PLEG device.
Then watch your log file:

http://YourIPAddress/cgi-bin/cmh/log.sh?Device=LuaUPnP

Change the lighting … to where you think it should trip.
Review the log and/or send it to me to review.
I will tell you what is wrong.

There is a bug in Actions Report … If you delete the conditions before the associated actions … the report still shows them … I will fix this in the future … but it does not hurt anything.
If you change anything in PLEG … also provide and updated report.