Skip to content

This repository contains information regarding my OpenHAB2 home automation system.

Notifications You must be signed in to change notification settings

owenhardy00/OpenHAB-Alarm-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 

Repository files navigation

OpenHAB

This repository contains configuration files for my OpenHAB2 home automation system.

Included in this repository are details about my custom alarm system which integrates the ESP32/ESP8266 chipset with OpenHAB. Included information contains all hardware and software schematics.

How it all works

My family has several Bravo5 motion detectors in our home which were prevoisly interfaced with a standard unmonitored alarm system. 4-conductor cabling was ran from each sensor to the control board as well as to 2 keypads on the main and second floor of our home. The 4-conductor cable delivers 12V to each sensor with a pair of wires. The remaining pair of wires is connected to the internal relay contact of the motion sensor which are electrically connected by the relay when motion is detected. I have these sensors interfaced with my ESP8266 via optocouplers so that the 12V signal from the sensor does not fry the ESP which operates on 3.3V. To replace the 2 keypads in our home I opted to use Amazon Fire tablets and HABPanel. This solution proves cost-effective, simple to impliment, and elegant. I used to 4-conductor cable going to these locations to pass 12V to these USB charging adapters to keep the tablets supplied with a charge. I followed this guide on YouTube to get the tablets running the HABPanel interface. Beware, however, that Fire tablets don't allow you to unlock them via Tasker which basically means that you can't have the tablets automatically lock and unlock when there's motion. I just have mine setup so that the screen is contantly on and never locks. The system logic occurs on the OpenHAB side, so the ESP8266 is simply reporting motion to OpenHAB and receiving commands when to trigger the siren relay. Connected to the siren relay is this Elk siren driver board which has a "chirp" and "constant" tone setting.

HABPanel

  • The passcode input is interfaced though the "Universal Keypad widget" which I have linked to the alarmKeypadInput item
  • Several "Attention with Button" widgets display the alarm status and zone status for each sensor.
  • "Selection" widiget with "Arm=Arm,Chime=Chime,Triggered=Manual Trip" as my list of comma-separated choices to control the alarm mode
  • Button to control the lights on the main level of my home
  • Button and "Attention with Button" to control and display the status of my garage

My PCB design files

The PCB files in this repository feature a board which can interface with up to 4 motion sensors and 1 relay. The board takes a 12V 5A power supply via a standard DC power-jack. The design features 4 M3 mounting holes, 1 power LED connected to the 3.3V line, 1 LED connected to D5, and a screw-terminal connected to 12V which I have used to connect to the 4-conductor cabling to run power to the tablets. You can, obviously, modify the design to meet your own specifications.

BOM for PCB (links to DigiKey and AmazonSmile)

For the PCB itself you will need:

For each sensor you wish to interface with you will need:

For each relay trigger you wish to interface with you will need:

How to make custom sound effects:

In my my alarmController.rules file you may have noticed that I have several sound files which I reference. These files are contained within my "sounds" folder in my OpenHAB configuration on my Raspberry Pi. These files are a combination of sound effects I complied using a YouTube to MP3 converter and Siri text-to-speech using the "say" function through Terminal on my Mac. I cannot upload the sound files here due to copyright restrictions, however, you would likely want to make your own custom sound effects anyways. Here are what mine are:

  • chime.mp3 - A mellow single-tone "blip" noise
  • incorrect.mp3 - Agressive error noise
  • armed.mp3 - A mellow 2-tone "bing" noise followed by "Hello, system is armed"
  • welcome.mp3 - A mellow 2-tone "bing" noise followed by "Hello, system disarmed"
  • alarm triggered.mp3 - "Danger" followed by agressive siren alert tone

About

This repository contains information regarding my OpenHAB2 home automation system.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages