Vera Notifications

Is there a easy way to limit notifications to 1 per an instance? I currently have vera send me a notification when one of my doors is opened using the AD2USB connected to my
Vista 20P. When a door is opened it continues to send notices until the door is shut. Can I get it to send just one notice and then reset once the door is closed?

This is very easy to do using LUA programming.

In the door open scene (the one that sends the notification):

if iSendNotification == 1 then
  return false
else
  iSendNotification = 1
  return true
end

In the door close scene:

iSendNotification = 0

Refer to the “Conditional Scene Execution” thread in the scripting section for more neat things you can do with LUA:

http://forum.micasaverde.com/index.php/topic,18679.0.html

That worked!. Thanks for your help aa6vh. Thanks also for the “Conditional Scene Execution” link. I
saved it as a bookmark for future use.

Now I’m trying to get my Yale deadbolt to lock when the door is closed. I can get it to lock when its closed, but then it continually tries to lock the door.
Is there a easy Lua script that could fix this for me? I did try and look at the examples but couldn’t figure it out.

I think I figured out a way to do it. I just added the “Lock Door” device on the previous door close scene. The only time it
won’t work is if I unlock the door but never open it. Which would be unusual.

PLEG and Vera Alerts are good to look into.