Hi,
I have two scenes on my Vera 3, one if someone unlocks the door from the garage into the basement and a second scene if someone unlocks the basement door at night. Since the garage leads into the basement I have the first scene always turn on the basement lights since it’s always dark in the basement. The basement stairs lead up to the kitchen so the second scene turns on the kitchen light if it is night. To do that I have the simple LUA code as follows in the second scene:
if (luup.is_night()) then
return true
else
return false
end
I was just making some changes to my system and realized it should be easy to combine these 2 scenes into one. The scene should always turn on the basement light but in addition turn on the kitchen light if the is_night condition is true. I’m an engineer by trade but haven’t really done much LUA coding so I was hoping one of the experts on the forum could help me out. I’m sure there is a simple command to turn on a light that I would substitute into the code in place of the “return true” statement and then I would just delete the “return false” statement but
Thank you,
Don