I"m a PLEG newbie asking for some help with a scenario. i’ve searched but i can’t seem to find any examples to help get me started- although i’m sure i can’t be the only one to try this before. forgive me if this has been covered- but i searched on “alarm” and relevant topics, and read through dozens of pages trying to find a similar request.
I’m basically trying to mimic the behavior of an alarm system. i’d like to be able to use the virtual switch to put it into an “armed” state- and then if motion or door is triggered- set off a siren and notify me…
the system is comprised of-
1- two door sensors (the Schlage, which i just set up and seem great- very small, nicely designed, trigger instantly)
2- 1st Gen HSM-100 multi sensor for motion
3- Fotrezz siren/strobe. (also like it quite a bit- i bought the outdoor model, which is huge and incredibly loud.)
i’ve updated my Vera 3 to the beta/latest firmware, (1622?), PLEG/Logic 4.5 and i need some help or hopefully even some examples to get started.
Here goes with some stupid questions…
i’m assuming that i won’t need to do any associations at all between the devices- like siren and door sensor- but rather i bind them all with PLEG logic?
should i follow the approach of arming and disarming with the virtual switch? i imagined that i could use it to arm all the components in the scene- motion, and door sensors…but i don’t know if this is an extra step that’s unnecessary.
Any and all help deeply appreciated.
i got a rudimentary alarm working by setting the basic triggers for doors and motion, and tying them to the condition i created called alarm_tripped, which sets off the siren and turns on some lights…and let me just reiterate how loud that fortrezz outdoor siren is, holy cow…makes my testing fun for the neighbors, lol.
i cannot thank richard enough for creating this great plug-in and supporting the vera community. the whole thing took me five minutes.
now this experiment has led me to ask for any advice in how i could refine my PLEG and add some additional features…please bear with me for another series of stupid questions.
i’d like to have an “arm” and “disarm” state with buttons that my wife would feel comfortable using on her phone. i envisioned that hitting arm would arm all the sensors and maybe also the activate the PLEG plug in- although that might be a stretch. i though perhaps that the virtual switch might be the answer here, but it seems like that needs to inherit properties from other devices- so i’m not sure if this is the right approach.
would creating a scene be a better answer?
if anyone else has done this before- would it be interesting to bring the day/night or gcal plug-ins into play?
could someone offer some advice in how to maybe disable the siren after a set period? i think i could muddle through this using some of the lighting examples i’ve seen, but any help appreciated.
ok, yet another update. i created a scene that armed the sensors as well as PLEG. for some reason this didn’t work as expected- even when i tripped a door sensor the siren wouldn’t go off. i’m wondering if my syntax is incorrect with my PLEG condition. i’m using-
Condition Name- Siren_On Expression- (front_door_tripped) OR (back_door_tripped) OR (hall_motion_tripped)
should i lose the parens?
ok- 3rd update- for anyone still patient enough reading along.
i figured out what went wrong with my scene- there were dupe triggers that i had set up that were notifying me when doors opened. those apparently were messing up the triggers used by PLEG. so deleted them, and everything seems ok- BUT- my first gen HSM100 still triggers the alarm despite the fact that i have the motion sensor disarmed!? as long as PLEG is armed, and i walk near the motion sensor, it fires the siren.
can anyone advise me if -
this is just a quirk of this particular version of hsm100? should i replace it with an AEON- or can i logic my way around this in PLEG?