Help with simple scene for keeping light on at night

Since I am new at this I apologize if this is too easy. I have a Vera lite, and I have a normal on/off switch controlling my outside lights. I have figured out how to program it to come on after dusk, and go off before dawn. Now I want it to be forced to stay on, or turn back on if someone tries to turn it off at night. (Had a problem with my daughter trying to sneak her boyfriend in the house in the dark). I think I can trigger it to turn its self back on, but I only want it to be functional at night.

Create a new scene
Trigger = “outside light is turned off” (add more than one if needed)
Set the device(s) in question to be on
In the LUUP section, enter “return luup.is_night()”

Then if any light is turned off and it is still nighttime, the light should come back on. If these lights don’t report instant status, there could be a delay before Vera notices and turns them back on!! IF they do support instant status, it should be pretty quick.

Also, this is a super simple scene, and therefore, only works when Vera things it is “night” - so if your timeframe is “sunset+30” to “sunrise-30” this won’t work as expected.

NOTE: Modified to remove the lump of coal!

Spell-checker gremlin strikes?

I believe this should be:

return luup.is_night()

[quote=“akbooer, post:3, topic:174547”]Spell-checker gremlin strikes?

I believe this should be:

return luup.is_night()

Haha…yup, autocorrect at its finest! You would think by now it would know I meant “luup” when I type it!!

Thank you I will give it a try.