Author Topic: Delayed intervention sensors for main entrance door  (Read 1568 times)

mirko.ugolini

  • Newbie
  • *
  • Posts: 14
Delayed intervention sensors for main entrance door
« on: January 20, 2016, 12:24:57 PM »
Hello all,
I need to create one allarm system whit the pi gateway,  so I would like to create some sensors for the main door.  I need to create delayed event on that nodes like a standard allarm for let me enter and disable  the allarm.

I would like to handle that  in the gui. 

Is it possible?


Regards

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6409
  • Country: us
    • LowPowerLab
Re: Delayed intervention sensors for main entrance door
« Reply #1 on: January 20, 2016, 12:56:42 PM »
Are you just asking "Is it possible?" ?

Sure  :)

mirko.ugolini

  • Newbie
  • *
  • Posts: 14
Re: Delayed intervention sensors for main entrance door
« Reply #2 on: January 20, 2016, 01:32:29 PM »
Hi Felix,

Could you tell me how please?

Mirko

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6409
  • Country: us
    • LowPowerLab
Re: Delayed intervention sensors for main entrance door
« Reply #3 on: January 20, 2016, 01:55:28 PM »
I don't have a project that covers that specific type of thing so .. here's just some thoughts of how it could be done.
You could just use a Motion sensor (MotionMote?) to sense when there is motion in the house, or in a specific room/location.
If the alarm is armed (assuming you arm it when you leave via keypad), and motion is detected, then an alarm event can be triggered.

Your keypad, or alarm controller, can be anything from a single button with dual purpose (press once, arm, press again, disarm) or a keypad with code capability, or a fingerprint reader etc. It could have a simple LCD like the nokia 5110 to show status or a GUI etc. It would include a RFM69/moteino to talk to your gateway which is assumed to be in a more remote location in the house where it cannot be easily/quickly found and disabled by an intruder.

The gateway GUI could have the ability to arm/disarm for your alarm controller node, via usual gateway GUI buttons. This would be a new custom predefined node to include the desired arm/disarm control button that talks to the alarm controller node, and an event to trigger an alarm. Also perhaps an alarm delay event which means that the motion was tripped and it gives 30sec or whatever for the user to disarm the alarm via the controller or gateway GUI.

When motion is detected the controller notifies the gateway that there is motion. The gateway triggers the disarming delay event, which expires in 30sec, after which the real alarm event is triggered.
When an alarm event is triggered, if event delay has expired and no disarming occurred, it could send a message to the front controller that beeps a sound through a piezo buzzer or siren or perhaps a SMS or call the police etc.

This is the big picture, and the concept, as I see it could be done. The details can be customized in many ways. I hope this makes some sense and I hope others can contribute or add more ideas without making it super complicated.

mirko.ugolini

  • Newbie
  • *
  • Posts: 14
Re: Delayed intervention sensors for main entrance door
« Reply #4 on: February 13, 2016, 10:05:24 AM »
Hello Felix,

I was wondering if it was possible to implement in the Pi Gateway  one  async delay  using code like this:

https://docs.python.org/2/library/signal.html

I would like to define for some sensors one  delayed intervention.

Let me know Please

Regards

Mirko


Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6409
  • Country: us
    • LowPowerLab
Re: Delayed intervention sensors for main entrance door
« Reply #5 on: February 15, 2016, 04:40:45 PM »
My Gateway software is javascript, not python.
Anything is possible if you can write some javascript.