Simple Light COntrol

I am using a PLEG for the first time to perform what I think should be a simple control of a light switch based on my iphone Locator Plugin saying I’m Present and the Day or Night Plugin saying it’s Night. I’ve poured over the information here but I must be doing something wrong as I can not get it to work. Once I get this working I will work out how to turn it of using similar logic.

Triggers:
TNights_Here - Indicates Night Time
TAt_Home - iPhone is present

Condition:
Lights_On - TNights_Here AND TAt_Home

Actions - Condition Lights_On - Immediate and my Dimmable Light is shown as “On”

What else do I need to do?

Thanks for any assistance

Ensure PLEG is armed. Change Day-night plugin to night. If this does not work, then post you status gor the PLEG.

As BrianLBeaton alluded, actions only get triggered the FIRST TIME that your condition is true. Same goes for inputs.

The STATUS button in PLEG will help you figure out what’s true, what’s false and the last time it changed.

Thanks for your help guys, I’m off and running (at a snails pace :wink: )