Triggers & Schedule on Vera3

I have Fibaro Door/Window Sensor installed on the main door which is connected to the Vera 3 Server.

A scene has been created in which entrance lights gets on (connected to Fibaro Relay On/Off) whenever the door is open. That is done using Triggers in scene.

My problem is the lights gets on even in day time, which is not required. I want the lights to switch on only for a specific period of time. Say when it gets dark (20:00pm to 06:00am). Which i feel can be done using schedules. But i am not able to find the exact way to do the same. has anyone tried & done this?

Please help.

Your easiest options is probably PLEG. If you have a look here on the forum there a lots of examples of how to program this

The PLEG solution that @mikee123 recommended will allow you to create logic for very specific time periods and much more. However, the easiest option would be as follows.

On the scene’s Advanced tab click the Immediate drop down and choose Manage Delays. Add a new delay that turns the light off after a period of time, say 15 minutes.

Then go to the LUUP tab and paste the following line into it:

return luup.is_night() == false

This prevents the scene from running if it is not night time. Now, your scene will only run between sunset and sunrise and if the scene does run, the light will be turned off after 15 minutes.

Don’t forget to Save your changes.