I bought a Vera3 recently. I would like to help with a code Luup.
I created a scene: When I get home, I enter the pin code on the door, and the lights come on. When I leave home, the lights are on, I open the door, and when closed, the lights go out. I would like to insert a code Luup to check the time the door was opened. Without the code, when I get home, I open the door, the light comes on, but the time I shut it off. I differentiate “GET IN house, house and get out”
Note: Check whether it is day or night. Just turn on lights if night, and just shut up for the day.
Thank you.
Do you have a Z-Wave Door Lock and a Z-Wave door open/close sensor ?
I have a Yale Real living (zwave).
I created this scene and working. Just wanted a luup to check how long you opened the door. If you have one minute we opened the door, when you close the doorlock, the scene “all off” is not triggered. This is just an idea to differentiate themselves’m coming home or leaving home.
I am not familiar with the Yale Lock … what events does it support ???
[ul][li]Pin code Entered ?
I assume this unlocks the door.
Does this stay unlocked until locked again ?
Does it auto-lock ? [/li]
[li]Door Opened ?
Does this get triggered even if the door is not locked ? i.e. manually opening the lock inside[/li]
[li]Door Closed ?
Does this get trigger when the door closes independent of the lock state ?[/li]
[li]Door Locked ?[/li][/ul]
Without understanding which events you have at your disposal its hard to develop the correct solution.
I appreciate the attention. I’m from Brazil, and is difficult to use exactly the right words with the translator.
Has no problem manually open the door (inside) because the scena is only performed when entering the PIN code, the outside of the house. (scena triggered by pin code, and not “open door”.
In short, I want to enter the pin code to enter, and the lights turn on. I want to leave the house and lock the door and turn off the lights.
We would not get anywhere if you needed me to speak Portuguese 
How do you currently detect that you are leaving the house ?
Or is that one of the problems you are trying to solve ?
Is the Z-Wave light switch next to the door where you leave ?
And would like to use it to indicate that you are leaving ?
I think it will be difficult to speak different languages.
When I open the door from inside the house, the lights go out, using “open door”. When I open the door from the outside, the lights come on, using “pin code”
I need a code that does not perform a scene if a trigger was fired within one minute. If more than one minute, RUN scene. And I need a code to not run if the scene the night.
Vera supports scenes with multiple inputs. But it will react to ANY input.
From a logic perspective this is equivalent to the OR of all the inputs.
In your case you want more complex relationship between multiple input triggers.
This must be done by LUUP code or an external plugin.
I would recommend the following Plugins:
Day or Night plugin - Make sure you setup the Vera’s Location and Time Zone.
Program Logic Event Generator (and the associated Program Logic Core) plugins.
I also recommend you use the beta:
[url=http://forum.micasaverde.com/index.php/topic,13421.0.html]http://forum.micasaverde.com/index.php/topic,13421.0.html[/url]
With the beta version of Program Logic Event Generator (PLEG) you can think of PLEG as a super scene.
With PLEG define:
Inputs
Triggers
Night - Day Or Night Plugin Indicates Night
PinCode - Door Lock Pin Code entered
OpenDoor - Door is Opened
Conditions (Logic)
TurnOnLights = Night and PinCode
TurnOffLights = (PinCode; OpenDoor > 1:00) and (OpenDoor;Now > 1:00)
Actions
TurnOnLights - Select the lights to turn on and any other commands you might like.
Maybe turn the HVAC to occupied …
TurnOffLights - Select the lights to turn off
Lock the Door in case you forgot
Maybe turn the HVAC to unoccupied.
[hr]
The condition:
(PinCode; OpenDoor > 1:00) and (OpenDoor;Now > 1:00)
Is not obvious. The first part decides that the door was opened on the way out. Because the door was opened more than 1 minute after a pin code was entered. The second part says that it’s 1 minute after the door was open. So this is only true one minute after you open the door on your way out.
Thanks for responding, and for trying to help me, but it is very complex to me.