NEW TO PLEG

I have a few scripts that turn on outside lights which is not desirable during the day. How can I set a script to if it is day then it wilil shut off outside lights every 30 mins.

Thanks
Dan

Have you seen Conditional Scene Execution? This should help you to add day/night conditions to your scene.

If you wanted to do this with PLEG, take a look at PLEG Basics.

I have the DAY/NIGHT app which helps me detect day and night. Just not sure how to set up a condition for every 30 min.

I did this because it drives me nuts to pull round the house and see an exterior light on during the day.

Create an input for each exterior light

FrontLightsOn
CoachLightsOn
LandscapeLightsOn

etc…

Create a condition

AutoOffLights = NotIsNight AND (FrontLightsOn OR CoachLightsOn OR LandscapeLightsOn OR…OR…OR…)

Then, create an action that shuts off all of the lights in the Condition expression. I used a 10second delay to turn them off to remind me if I forget about it :wink:

Any exterior light that gets turned on, will be shut off 10seconds after it is turned on.

got it thanks

I have a few real scenes.

One is called All Lights On … Which I only use for alarm purposes.

I have another All Lights Off. That is fired twice a day … an hour after sunrise … and at 2:00 AM.
That’s to catch the switches where I may have bi-passed the auto turn-offs feature.