Help on first attempt

Greetings guys… first of all thanks to anyone who reads this and all people involved in the development of this devices!!! this rocks…

Ok, I’m trying as my first PLEG project to create a rustic alarm… My aprt only has one access entry point wich is the front door. That door has a door sensor and a Qwikset deadbolt.

Inside the apt I have a siren/strobe.

What I’ve been trying to do is to activate the siren if the door is forced open… maybe add a virtual switch to bypass the system altough I think I can simply disable the actual PLEG?

I figured that if the contact sensor is tripped WHILE the lock is closed then that should mean that the door was opened by force… but what happens if the door is opened THEN the door is locked… wouldnt that also trigger the siren since the conditions are met?

I’m the learn by watching type of guy so I’d really appreciate if someone could give me an example and have the patience to answer doubts regarding that solution in order to better understand the concepts involved.

Thanks in advance guys

You have a door sensor … That’s key … but you need to decide how to determine how you plan to identify the various scenarios:

  1. Normal Entry/Multiple Entries
  2. Normal Exit/Multiple Exits
  3. Abnormal Entry

Once you know that you can logically identify each of these with the sensors you have … the coding is easy.

Some ideas:
PIN, Followed by entry is Normal Entry - Disarm Alarm if already Armed.
Door Closed, Followed by Pin is Normal Exit - Arm,Relock door, and Notify user.
Door and Armed State - Alarm and Notify User.

[quote=“RichardTSchaefer, post:2, topic:176532”]You have a door sensor … That’s key … but you need to decide how to determine how you plan to identify the various scenarios:

  1. Normal Entry/Multiple Entries
  2. Normal Exit/Multiple Exits
  3. Abnormal Entry

Once you know that you can logically identify each of these with the sensors you have … the coding is easy.

Some ideas:
PIN, Followed by entry is Normal Entry - Disarm Alarm if already Armed.
Door Closed, Followed by Pin is Normal Exit - Arm,Relock door, and Notify user.
Door and Armed State - Alarm and Notify User.[/quote]

from what I can understand from your reply… there is a way to specify an order of events for a condition to be met??? for example is there a way t odefine a condition for a sequence of event in a specific order (lock unlocked, door opened)???

Search for PLEG and sequence expressions or look at the documentation:

http://rts-services.com/Vera/Plugin/PLC/#Syntax

Ok… so I cant be as easy as using

Alarm = DoorLocked; DoorSensorTripped

That would trigger the alarm every time the door is opened since even when unlocking the doot the alarm condition will still be true…

How can I determine that the door was opened without unlocking?? DoorSensorNotTripped;DoorLocked;DoorSensorTripped???

@jaas666, is the alarm supposed to be armed only when the house is empty? Or even when you are in the inside? I liked your idea about the alarm, but since my wife is not an automation lover, I have to simplify things for her, so I created Ping Devices for the Android cell phones of the house and put a static IP to those. When Vera detects all devices are out, it arms the alarms and also runs an “all off” scene. And when at least one device is at home, the alarm wont trigger.

Since I’m not including any motion sensor I don’t think it matters wheter someone is inside or not. It would “arm” anytime the door is closed and locked and disarm everytime the door is unlocked and opened…

Should only trigger when the door is opened without unlocking first…

But I have no idea how to do this…

Should be easy since there’s only one door to monitor… said door is equipped with a door sensor and the kwikset deadbolt itself…

Still trying to figure the conditions; if anyone can suggest them so I can learn from that…

In general I would not recommend Vera as an alarm system.
But I believe the following meets your objectives.

Trigger:
DoorOpen When Door Sensor indicates Open
DoorLocked When Door Lock indicates Lock

Conditions:
DoorClosed Not DoorOpen
DoorUnLocked Not DoorLocked
Arm DoorClosed; DoorLocked
DisArm DoorUnLocked; DoorOpen
Trigger Arm; DoorOpen > 2:00
Canel Trigger; DoorUnlocked

Actions:
Trigger Turn On Strobe and Siren
Cancel Turn Off Strobe and Siren

[quote=“RichardTSchaefer, post:8, topic:176532”]In general I would not recommend Vera as an alarm system.
But I believe the following meets your objectives.

Trigger:
DoorOpen When Door Sensor indicates Open
DoorLocked When Door Lock indicates Lock

Conditions:
DoorClosed Not DoorOpen
DoorUnLocked Not DoorLocked
Arm DoorClosed; DoorLocked
DisArm DoorUnLocked; DoorOpen
Trigger Arm; DoorOpen > 2:00
Canel Trigger; DoorUnlocked

Actions:
Trigger Turn On Strobe and Siren
Cancel Turn Off Strobe and Siren[/quote]

I agree… not really an alarm system… just want something to make some noise if the door is forced.

Everything seems to be working except the disarm. strobe turns on everytime the door is opened even when unlocking the lock first…
Here’s the status before unlocking/opening door (I’m using a virtual switch to simulate the locking/unlocking in case that matters).

Triggers
Name Description Last Trigger State
DoorOpen Sensor Puerta Sala armed is tripped 2013-08-21 20:35:05.377 false
DoorLocked VirtualSwitch is turned on 2013-08-21 20:35:31.738 true

Schedules
Name Type Time Days Last Schedule

Conditions
Name Expression Last True State
DoorClosed Not DoorOpen 2013-08-21 20:35:31.572 true
DoorUnlocked Not DoorLocked 2013-08-21 20:35:23.101 false
Arm DoorClosed;DoorLocked 2013-08-21 20:35:31.740 true
Disarm DoorUnlocked;DoorOpen 2013-08-21 20:35:05.380 false
Trigger Arm;DoorOpen > 1:00 2013-08-21 20:35:05.382 false
Cancel Trigger;DoorUnlocked 2013-08-21 20:35:23.105 true