Blink house lights when your smoke alarm goes off

Smoke detectors are a great investment in protecting your home; the First Alert devices with ONELINK allow all detectors in your house to connect to each other, so when the one in the basement goes off all the others are triggered as well, with a voice indication of where the problem is detected. With the Insteon Smoke Bridge, these detectors can be integrated with your Insteon system to provide even more notification options in the event of an emergency.
first-alert-insteon

You could send alerts via PushOver to your phone when an alarm occurs, and even write location-specific events for specific conditions, such as notifying a neighbor that the smoke alarm is going off and you are not home.

Another option, since your entire house is Insteon-enabled, would be to blink specific lights inside or outside of your home to draw attention to the problem for neighbors or emergency responders (you could also blink your lights if an intruder is detected when you’re not home for the same reason).

The code for this is pretty straight-forward. The idea is to set a state variable (in addition to any other notifications you’ve configured) when the smoke sensor goes off. When that variable is set, run a program that repeatedly cycles the light or lights of your choosing.

Set the $smoke_alarm variable when the smoke alarm goes off, send notifications

If
  Status 'Smoke Detector - Smoke' is On
Then
  $smoke_alarm = 1
  Send Notification to 'TextMessage' content 'SmokeAlarm-Smoke'
  Resource 'Pushover - Fire'
Else
  - No Actions

Clear the $smoke_alarm when the condition stops, send notifications

If
  Status 'Smoke Detector - Clear' is On
Then
  $smoke_alarm = 0
  Send Notification to 'TextMessage' content 'SmokeAlarm-Clear'
Else
  - No Actions

Turn lights on and off and loop the program while the condition continues.
This program is called ‘Smoke – Blink Lights’, which will be called repeatedly by itself:

If
  $smoke_alarm is 1
Then
  Set 'Porch Light' On
  Wait 2 seconds
  Set 'Porch Light' Off
  Wait 2 seconds
  Run Program 'Smoke - Blink Lights'
Else
  - No Actions

Posted by Matt Chiste
March 4
 Subscribe to HomeAutomationGuru.com
    Add to Google Reader or Homepage

Enter your email address to subscribe: