I have my Vista 20P panel working with Vera3…
Trigger on the back sensor when the door is open it will turn on the flood light
Another trigger turns the light off when closed.
The point of this all is to have the light on when we let the dog out at night.
What I am missing is the time condition. I don’t see to be able to use schedule to constrain the flood from tuning on before sunset.
So… from UI5 it is either a schedule or a trigger to launch a scene, but not both… or hopefully I’m wrong and it is easy to do and I’m just not seeing it.
Any suggestions welcome… Thanks!
You need to use the Luup “Is_night” condition. Add the following to the Luup Event field in the Event tab of the Scene:
if (luup.is_night()) then
return true
else
return false
end
This will cause the scene to execute only at night (assuming of course your date/time and location are properly set so Vera can determine night and day).
Being such a newb… Can I just add that code as is. Or do I need to build the whole scene in code ?
Create the scene as you would and add the code to the luup section of the scene.
Hmm ok, I get it
Added the code but got the error after doing so:
Error in Lu’s for scenes and events
Did you double check you copy/pasted the code correctly into the Luup tab of the scene?
If you remove it, do things work again?
Did copy and Past from my iPad. Did it from PC… no errors!
This is a the second iPad anomaly I have come across when creating automation.
Anyways…Thanks!