simple way to create a time based trigger

hi everyone. I am not a programmer and is new to this. I am sure the answer is somewhere within this forum. but I cannot find it. is there an intro, or some useful codes (in LUUP?) that I can use to create time based trigger? such as only turn on lights (event) when I enter door (trigger) at night.

thanks so much for your help.

Searching the forum is a simple way to start to find the answer to such questions…

A similar issue addressed here:,7720.msg49580.html#msg49580

Or look at the following for more general solutions to your question:,18679.0.html

thank you guys so much :slight_smile: