SHM Trip Action


#1

Hi,

I’ve created the following piston with the intent of blinking certain lights when the SHM alarm is tripped.

I can’t get it to work. I’m also getting the following message at the top of my webCoRE page when I pull the piston up.

Can someone more familiar with this help me sort though the issue?


#2

I tried doing something similar a little bit ago. for some reason, webcore doesnt trigger using the global variables (specifically the $shmTriggered one).

the solution i ended up with was to create a virtual switch, and have shm toggle it to ‘on’ when shm gets triggered using the smartthings app. then in webcore, i have the piston i need triggered using the virtual switch turning on, and at the end of the piston, i turn the switch off.


#3

OK. I’m still new to this… Will this make them stop blinking and reset the virtual switch to off when I disarm the SHM? Do I have my “else” in the right place or should it be another “if”?


#4

Try something like this… I just tested it and it worked for me. Obviously you can modify it and put in your lights to turn on, then turn off.


#6

Your piston above should work after changing 2 things.
1 change the first if to:
If switch 12’s switch CHANGES TO on

2 Make the ‘if SHM changes to disarmed’ its own separate statement.


#7

Guess I’m not following along - trying to do the same thing original poster tried by it’s not working - get this message at the top.

Basic premise is I’d like to turn a virtual switch on when SHM is tripped and turn off when it’s cleared.


#8

You need to turn on the virtual switch through the SHM configuration in SmartThings classic app. Then have the piston subscribe to “virtual switch changes to ON”.

So in my piston on post #3, “switch 14” is a virtual switch that gets flipped to ON when SHM gets triggered.


#9

How can I automate the process of turning the switch back off when SHM events are cleared in SmartThings app?


#10

I’m not sure if you can do it in ST, but my piston in post #3 handles that. Basically the piston allows ST to flip the switch on (through configuring it in SHM), then WC monitors said switch and turns it back off.


#11

I turn off my AlarmTriggered virtual switch when SmartHomeMonitor status changes to Disarmed. Not the same as when SHM is cleared, but it seems to work well enough for me.

Side note-if you have a ActionTiles/etc dashboard, you can add the AlarmTriggered virtual switch to get an indication of the SHM alarm.


#12

Like the idea of adding Tripped alert to ActionTiles. Seems the only way to do this is using the methods described above - condition of SHM armed and then configuring devices to turn the virtual switch on and then disarming turns off. It’d be nice if this system variable could act as a trigger. Maybe @ady624?