How to trigger a piston when Smart Home Monitor alarm is tripped


#1

1) Give a description of the problem
$shmTripped system variable isn’t able to be triggered as an event. I’m not sure how to easily trigger the piston when the SHM alarm is triggered. I tried both $shmTripped and setting a variable that links to the value of $shmTripped

2) What is the expected behavior?
When $shmTripped changes to True (or the Smart Home Monitor is tripped in general), then do things.

3) What is happening/not happening?
The $shmTripped isn’t subscribed as an event so it won’t trigger the piston when the SHM alarm is tripped

**4) Post a Green Snapshot of the piston!


#2

I created a virtual switch that gets triggered whenever the SHM alarm gets triggered and set that in the piston, which I assume will work (haven’t set off the alarm yet). I’d still like to know if there’s a better way to do it directly using the shmTripped variable or in general if there’s a good way to monitor a variable for changes and triggering a piston event based on that?