Run Routine when Dismissing SHM Alarm?


(Scott) #1

Is there a way to run a Routine (or turn on a switch that can then run routine) whenever you cancel or dismiss an alarm in SHM?


(Robin) #2

This can be done easily with CoRE.

Installation instructions and link to the CoRE wiki in post 1 of the following:


(Robin) #3

Here is a working example using CoRE:


(Scott) #4

I have CORE installed, however I’m not disarming SHM. For example, if it is armed, and SHM is accidently set off. When I go to SHM, it will show the red screen. I click on it and then dismiss the notification. That’s when I want routine to run. If I dismiss the alert, it stays the same state that it was, therefore using state changes to Disarmed will not work. Additionally the state changes to disarmed when I return home. I do not want this routine to run when I return home, only when I’ve dismissed the alarm.


(Robin) #5

Ahh… I see!!

CoRE uses every cabability in the ST documentation so I’m afraid as its not there it’s probably not possible :sob:

Only suggestion might be for you to use SHM as an empty shell (just for setting of the alarm state) and then let CoRE run all the backend.

Setup a simulated momentary button (or routine) called ‘Silence Alarm’

Using a ‘THEN-IF’ Piston:

IF
SHM is armed
AND
(Any of XYZ contact changes to open OR Any of XYZ motion changes to active)
THEN
|> put your regular SHM actions here
THEN IF
Silence Alarm switch changes to on (or routine runs)
|> run routine X

Probably needs to be a bit more complex than this but maybe it will help get you started?

You may get better results using global variables instead of then-if?

Good Luck!


(ActionTiles.com co-founder Terry @ActionTiles; GitHub: @cosmicpuppy; NOT a SmartThings Employee.) #6

SmartThings currently does not offer Community Developers a direct API into the SHM notification system.

It’s my personal belief that this is being kept proprietary (or for formal partners only) because such integrations are a revenue pathway – e.g., integration with the Scout central monitoring & response service, for example (and ADT Canopy, and others to follow).