Smart Alarm is here


(Geko) #220

I’m curious how you’re arming/disarming it. Exit/entry delays are essential for traditional alarm systems because arming/disarming is typically done using wall-mounted panel. With “virtual” alarm panel that can be armed/disarmed from the mobile phone or rules based on presence, proximity, etc. it doesn’t seem to be necessary anymore. Just trying to better understand the use case for this feature.

(Paul) #221

What if you want to emulate the wall mounted panel by using a dedicated tablet? I would prefer to have an entry and exit delay.

(Geko) #222

Sure, but that’s a hypothetical scenario at this point, isn’t it?

(Paul) #223

Yes, it is.

My wife is old school and considers a security system an appliance.

(Justin Wurth) #224

I have converted a Samsung Galaxy tab 3 lite into a security panel. I have two shield icons on the home screen a green and a red for disarm and arm, as well as a lock icon for using the system lock. The tablet also does text to speech when the garage door is opened in away mode. It says please disarm the alarm. Additionally I’m using ifttt to send mode change through push bullet so you can see the current status. Big WAF on the panel.

Help with semi-complex Security project for remote cottage
(Brian S. Lowrance) #225

I am using HADashboard and have configured a button for “Arm Away”. The mode changes in HADashboard come with a countdown timer before it’s set, giving you time to either hit “Refresh” which cancels the timer or exit if you are changing to a mode that would arm your system. In my case the “Arm Away” button counts down and then changes mode to “Away”.
It’s a bit involved to setup, but their step-by-step instructions are good.

(Geko) #226

You convinced me. The exit delay is back in 2.2.0. Enjoy!

(Justin Wurth) #227

LOL I like putting theory to work. Thank you!

(Richard) #228

Hi Geko, I’m trying to use the Aeon 1 button or “Panic button” to work in your app as a remote:

I only want it to arm with a short press and panic with a long press. Can’t get the long press to work as it looks like you don’t support this yet. Is that something that’s doable?

Thanks much

(Geko) #229

You’re right, Smart Alarm does not handle button ‘held’ events. It’s certainly doable, but it’d require messing with the UI and I’m tied up with other projects at the moment.

(Richard) #230

Thanks. No rush, or never is fine too. Just thought I’d ask.

(Yann Oehl) #231

First off… absolutely love Smart Alarm.
I do have a feature request, though. How about flashing a light (once per second) during the entry and exit delay period. This would provide a nice visual affordance that the alarm has been armed will be set to sound at the end of x seconds. Mostly I see this as a backup in case a presence sensor fails… giving the person a hint that they need to find an alternative way to disarm. Might also be fun to have a speech-synth countdown sent to VLCThing…

(niagara ont) #232

is there a simple way to switch the interior and exterior… my issue is i would like to make it so my motion sensors are on in night mode and off in away. seams backwards i know but for me it world be awesome.

(marc) #233

Hi @geko,

First, very impressive work and thanks for your continued updates.

Second, a question…pressing a single button to disarm an “alarm system” seems fairly insecure, especially if I want to give it to more than one person. Is there a plan to be able to enter in a code or PIN into the the Minimote (or some other hardware)?


(Geko) #234

Minimote is treated the same way as a key fob in any alarm system. It’s meant to arm/disarm the alarm by pressing a single button and should only be given to someone who’s authorized to do so.

(Yann Oehl) #235

Another suggestion… Would it be possible to trigger an sound alarm via VLCThing instead of a siren?

(Geko) #236

Currently, Smart Alarm can “speak” a phrase when alarm is triggered. Playing alarm sound is doable with some code changes.

(Tuffcalc) #237

Any chance this will ever work with traditional home alarm monitoring companies?

(Geko) #238

The advantage of using SmartThings as an alarm system is that it’s fairly inexpensive to setup, easily expandable and there’s no service fee. If you’re going to pay for monitoring service, you’ll be better off with whatever alarm hardware your monitoring company offers. In many cases they will give it to you for free and recover its cost over your contract term.

(Chrisb) #239

Hey @geko,

I’m still having some issues with SmartAlarm and when my family comes home.

I’m using the app and arming when we leave in the morning by changing move to away. This happens just fine. I have the side door setup as an entry door, and running a 45 second delay on the alarm.

In the afternoon my son is usually the first one home and he unlocks the z-wave lock. I’m running another smartapp that changes mode to home when it sees a valid unlock code.

Looking in my logs, here’s what happened today:

2014-12-05 3:14:35.901 PM EST - Side Door Lock unlocked.
–> Hello home shows “I’m Back” at 3:14
–> Hello home shows “Welcome Home, I changed more from Away to Home.” at 3:14
2014-12-05 3:14:36.078 PM EST - Side Door was opened
–> Helle home shows: Alarm at Home! Side Door at 3:14
2014-12-05 3:14:36.530 PM EST - SmartAlarm sent BOTH command to Den Siren
–> Hello home shows: Home alarm is Disamred. at 3:14
2014-12-05 3:14:36.990 PM EST - SmartAlarm sent OFF command to Den Siren
–> Hello home shows: Home alarm is Armed Away. at 3:17

Obviously a little hard to piece everything together, but it appears that:

1: SmartAlarm is NOT waiting 45 seconds before setting off the alarm when the side door is opened.
2: SmartAlarm appears to see the mode change, and within a fraction of a second turns off the Siren after turning it on.
3. After three minutes, SmartAlarm “rearms” the system. I’m guessing this is standard procedure to reset the alarm status after an alarm event, but apparently the “disarm” is not properly shutting off the “rearm.”

I’m looking through the code to see if I can find where things might be going wrong, but frankly, I’m not following all of it. Looking at this section:

if (!state.alarm) {
    state.alarm = true
    if (zone.entrance && state.entryDelay) {
        // See Issue #1.
        myRunIn(state.entryDelay, activateAlarm)
    } else {

It seems to say that if the zone is an entrance zone, then run the actAlarm procedure after the number of seconds specified by entryDelay, correct? Presumably when the system is disarmed this “unschedules” that scheduling of the alarm?

I see this line earlier in the code:
state.entryDelay = settings.entryDelay ? settings.entryDelay.toInteger() : 0

This is where the state.entryDelay appears to be created, but I’m not sure what all it happening in this line. Can you explain what the different parts here are supposed to do?