Hi all,
I have been pouring over the forums for weeks and piecing together bits of somewhat related information in order to add full security system functionality to my Z-wave Network with VeraPlus as the heart of it. And I did not come across any recent posts so I thought I would write up this post to hopefully help others out that are trying to add alarm system functionality to their home automation by bringing all my findings together.
First off, thanks to all the smart and nice people on these forums that have shared their knowledge and experience. There is no way I can take sole credit for this post. Just bringing all the various pieces of information together here, in addition to a small amount of creativity on my own part.
Secondly, please keep in mind that I am in no way endorsing or supporting the use of Z-wave and home Automation as a security system. It is simply what I have done, and if you choose to do the same, then you can use this information if you wish.
Okay so here we go. Below are the steps and configuration guides as to what I did to add “alarm system” functionality to my home automation, with full entry delay capabilities and audible alerts and chiming.
Devices and sensors:
-
At the heart of it all of course is the VeraPlus controller.
-
As far as door/window/motion/other sensors go, I won’t get into any detail. Just buy the ones you like. I have a few different makes and brands, but they all seem to work fine so I am not going to get into details for sensors.
-
What detail I will get into is for sirens and chimes because they behave in a particular way that makes them useful in the “alarm system” setup.The two sirens that I have are Fortrezz SSA2 Red Siren, and the Aeotec ZW080US Siren. For the chiming/alerting functions, I have a Aoen Labs ZW056. I haven’t played with this one much but apparently you can load a whole bunch of MP3 files into it and call upon those files as announcements.
-
As well, I will provide info on the Zipato RFID keypads I used, as well as the remote controls for added convenience in arming/disarming etc. The keypads are the ZIPATO Z-WAVE MINI RFID KEYPAD (WT-RFID), and work great. I have added the Aeotec KeyFob remote control ZW088-C - Z-Wave Plus to the system so far, and plan to add a MiniMote as well, but have not done so yet.
-
You will also need the HouseModes Plugin, which is downloaded and installed from the Apps section within the VeraPlus UI7 GUI.
Adding and preparing the devices:
I won’t get into any detail about this since I think it is quite basic and easy to add devices to UI7. I am just mentioning it here as the next step to setting all of this up. Add all your devices into VeraPlus. Also add any/all of the user codes and RFID tags to the Zipato keypads that you want. I believe each keypad can hold up to 20 codes, and I think this is a combination of numeric user codes, or using the RFID tags for users. The tags are of course easier as you just wave it in front of the keypad and it transmits a nice long code. If anyone loses their RFID tags tough, better remember to remove them from the system… The buttons on various remotes can also be programmed to carry out arm/disarm functions…
Configuring the “My Modes” details from the dashboard:
VeraPlus already has “house modes” built in that will perform a lot of automated steps such as arming/disarming appropriate “security/alarm” sensors and so on. This makes things a lot easier. Click on the arrow to the right of the “My Modes” section on the dashboard to reveal the detailed settings. Set whatever sensors you want armed/disarmed in whatever modes.
In addition, ensure that the following are set for the sirens mentioned in the devices section above: This is necessary because the sirens and chime I have listed in the devices above, install as various device types, and are controlled as follows:
Fortrezz Red Siren (SirenRed)
Turning On occurs with the Burglary scene (later on below)
Turning off is done by the dashboard (as well as by DisarmedHome scene further on or the SirenAutoOFF Scene)
Aeotec Siren (Siren2):
Turning on is performed by Burglary scene
Turning off is performed by DisarmedHome Scene
Door chime (Doorbell):
Activating is done via EntryDelayActiveScene
Turning off is done via the dashboard (or DisarmedHome scene, or the SirenAutoOFF scene)
So therefore, these settings will make them function as desired in an “alarm system” configuration:
Ensure that Siren2 is set to OFF in all modes under “What to do if an armed sensor is tripped”.
Ensure for SirenRed is set to OFF for Home mode, and No Change for the others under “What to do when this mode is selected”
Ensure that Doorbell is set to OFF for Home mode, and No Change for the others under “What to do when this mode is selected”
Under “How much time to wait before changing mode?” I have:
Wait 40 seconds before changing from home to any other mode
Wait 2 seconds before reporting a motion, door, window tripped
Configuring the “alarm system” related scenes:
Now assuming that everything is added to the system and working properly, we can proceed with configuring the required scenes to add alarm system functionality. again I am not going to get into too much detail here because if you have come this far to be using your home automation for more than just “turning lights off and on”, it is assumed that you know how to use at least the basics of the UI7 interface and clicking buttons etc…
Below I did quick copy/pastes from the GUI of the scenes involved for “alarm system” functionality, which should be enough information to use for your own configurations. The four that you definitely need for “alarm system” like functionality are provided below. The Scene names should be self explanatory.
============================================================
Edit “EntryDelayActive”
Help for scene creation
Back to Scene List
Step 1: Select a Trigger
3 Device Triggers
Whenever FrontDoor1 is armed and opened… <----- this for me is front door, back door, and motion sensor. The motion sensor I had to add because it is a really nice one and picks up motion all the way to the front door from way at the back of the house!! You can add other devices that you may want entry delays on (garage, a window, multisensors, etc).
Step 2: Device Actions
Immediately
NorthCam Record a 15-20 seconds video
SouthCam Record a 15-20 seconds video <----- I added these as a precautionary, in case it is actually a burglar, then there will be video of the entry event.
Doorbell On <---- this is my Aoetac ZW056 chime. This gets turned on as a reminder to disarm the system. For now it just turns on the default ring tone. But you can get fancy with loading up tons of MP3 files and then calling different ones, like for exit delay, entry delay, other alerts, etc… I haven’t done this yet. If you get this far and you get it all working, maybe we can work together to get the rest of it done. I believe it will have to be done with LUUP code, otherwise the “On” command just plays the default file…
Step 3: Finish the Scene
This scene runs…
When I am in any mode
When this scene runs…
Notify these people: <----- no notifications here unless you want it, but you know you’ve walked into your house so…
Also, execute the following Luup code:
<-------------- here is the very important LUUP code that gives you your delay entry and makes sure sirens don’t go off wailing after your entry delay has expired. Please see the note arrows on each line. Should be fairly self explanatory. The idea here is that when this scene is triggered, it immediately runs a few actions, but also runs the LUUP code. The code essentially says wait for 30 seconds to give user time to Disarm. After 30 seconds, check HouseMode, if still armed, then call upon the BurglaryActive Scene. Otherwise return false (block the scene). In the BurglaryActive Scene you can do whatever you want done in case of a burglary
local dID = 38 <— Device ID of HouseModes Plugin
local allow = false
luup.call_delay(“delaycall”,30) <---- wait 30 seconds, then call the “delaycall” function below
function delaycall()
local status = luup.variable_get(“urn:micasaverde-com:serviceId:HouseModes1”,“HMode”,dID)
if (status ~=“1”) then <— If HouseMode NOT equal 1 (Home mode) then call Scene #29 (BurglaryActive Scene)
luup.call_action(“urn:micasaverde-com:serviceId:HomeAutomationGateway1”,“RunScene”,{ SceneNum=“29” }, 0)
else
return allow <---- otherwise block the scene since “allow” is set to false
end
end
Advanced Editor
Select Room
Room Name:
Name Your Scene
Name:
EntryDelayActive
============================================================
Edit “BurglaryActive”
Help for scene creation
Back to Scene List
Step 1: Select a Trigger
Manually triggered scene.
Step 2: Device Actions
Immediately
SirenRed Level 19% <---- this level makes only the LED’s flash. This siren is quite loud and you might want to do this for testing!
Siren2 On
Siren2 Disarmed <— Not sure how you can use the arm/disarm function of this siren but it is not necessary here
NorthCam Record a 15-20 seconds video
SouthCam Record a 15-20 seconds video
Step 3: Finish the Scene
This scene runs…
When I am in any mode
When this scene runs…
Notify these people: user1 user2 … <----- user notifications
Also, execute the following Luup code:
no LUUP code defined
Advanced Editor
Select Room
Room Name:
Name Your Scene
Name:
Burglary
Edit “InstantAlarmActive”
Help for scene creation
Back to Scene List
Step 1: Select a Trigger
2 Device Triggers
Whenever Glass Break Sensor is armed and detects glass break/vibration… <---- any devices/sensors that shouldn’t have a entry delay on them
Step 2: Device Actions
Immediately
SirenRed Level 21%
NorthCam Record a 15-20 seconds video
SouthCam Record a 15-20 seconds video
Siren2 On
Siren2 Disarmed
Step 3: Finish the Scene
This scene runs…
When I’m in the mode Night or Away
When this scene runs…
Notify these people: user1 user2 … <----- user notifications
Also, execute the following Luup code:
No Luup Code defined
Advanced Editor
Select Room
Room Name:
Name Your Scene
Name:
InstantAlarmActive
============================================================
Edit “DisarmedHome” <----- run some stuff when the house mode is changed to Home. ***Also silences all chimes and sirens
Help for scene creation
Back to Scene List
Step 1: Select a Trigger
1 Device Trigger
Home <---- the trigger is the HouseModes plugin, polling set to every two seconds for house status
Step 2: Device Actions
Immediately
NorthCam Record a 15-20 seconds video
SouthCam Record a 15-20 seconds video
Doorbell Off
Siren2 Off
Siren2 Disarmed
Step 3: Finish the Scene
This scene runs…
When I am in any mode
When this scene runs…
Notify these people: user1 user2 <----- user notifications
Also, execute the following Luup code:
No Luup Code defined
Advanced Editor
Select Room
Room Name:
Name Your Scene
Name:
DisarmedHome
============================================================
So the above are the critical scenes required for entry delay, and for sounding the sirens and sending out the notifications.
I created some other convenience scenes as well, here is an example.
============================================================
Edit “LivingRmLightsOn” <---- turn some lights on whenever the system is armed, and you walk in the door after dark
Help for scene creation
Back to Scene List
Step 1: Select a Trigger
2 Device Triggers
Whenever FrontDoor1 is armed and opened…
Step 2: Device Actions
Immediately
Lamp Module 1 On
Step 3: Finish the Scene
This scene runs…
When I’m in the mode Away
When this scene runs…
Notify these people
Also, execute the following Luup code:
local allow = true <---- set the allow variable. True allows scene, false blocks it from running
return ((luup.is_night()) == allow) <---- since allow is set to true, then true is returned, and scene will run at night
Advanced Editor
Select Room
Room Name:
Name Your Scene
Name:
LivingRmLightsOn
============================================================
I also created a Scene to automatically turn off the sirens after 1 minute so they don’t go on screaming forever.
============================================================
Edit “SirensAutoOFF”
Help for scene creation
Back to Scene List
Step 1: Select a Trigger
2 Device Triggers
Whenever the Siren2 is turned on
SirenRed is turned on
Step 2: Device Actions
Wait for 1m and then
SirenRed Off
Siren2 Off
Siren2 Disarmed
Step 3: Finish the Scene
This scene runs…
When I am in any mode
When this scene runs…
Notify these people
Also, execute the following Luup code:
No Luup Code defined
Advanced Editor
Select Room
Room Name:
Name Your Scene
Name:
SirensAutoOFF
============================================================
This has made a very nice self monitored “alarm system” so far. Took me a while to put this all together and make it work. Thanks again to all of the smart people that were kind enough to share the information I needed to piece this together. As you can see, it can be built upon and extended as desired.
Once I add the configs of calling upon different files for different announcements from the chime device, I will update this post.
Hope this is a helpful post.