Motion sensor scene at night

Hi in a proper noobie and I was hopeing someone could help me with my first motion sensor scene I would like the everspring motion sensor to turn on a light for 5 minutes and then for the light to turn off until the next time its triggerd its for the landing light in the night after sunset and I would like the scene to end at sunrise if anyone could please do me a simple step by step guide including any apps I might need for this I would very much appreciate it I am using Vera lite and UI5 an everspring motion sensor and a everspring AN145 lamp holder hope to hear from you soon
Matty

Ok, here goes. You need 2 scenes.

UI5 → Automation → New Scene
Name: can be whatever you want, like “Light On”
Room: can be in whatever room you want
Devices tab: click “on” for the light(s) you want
Triggers tab:
Click “Add trigger”
Select your motion sensor from the dropdown
Type of event: select "a sensor (door/window/motion/etc) is tripped
Name: whatever you want, like “landing light tripped”
Under name, choose “Device is tripped”
LUUP tab:
Enter the following (without the quotes):
“return luup.is_night()”
Click “Save LUA”
Click “Confirm changes”

UI5 → Automation → New Scene
Name: can be whatever you want, like “Light Off”
Room: can be in whatever room you want
Devices tab: click “off” for the light(s) you want
Triggers tab:
Click “Add trigger”
Select your motion sensor from the dropdown
Type of event: select "a sensor (door/window/motion/etc) is tripped
Name: whatever you want, like “landing light untripped”
Under name, choose “Device is untripped”
LUUP tab:
Enter the following (without the quotes):
“return luup.is_night()”
Click “Save LUA”
Click “Confirm changes”

Now the timing is different. I believe the everspring has a dial on the top which sets the length of time between “tripped” and “untripped” messages. You will need to experiment with that the right setting it. One direction is 5 seconds, and it progresses to 12 minutes (I think).

Trial and error will get you a setting you are happy with.

NOTE: You can do this with one scene, and set a 5 minute delay, but then the light could go off too soon after subsequent motion. This will keep it on for 5 minutes after motion stops.

Thank you so much for doing that for me I will give it a go after lunch just a quick one will I have to set up a schedule to get this to run at Sunset and stop at sunrise?