Multisensor acceleration


#1

So as I’m sure most you know, the ST multi sensors are notorious for acceleration alerts for no reason. Is there a way to setup a piston that says:

If multisenosr is active twice within a minute period,
send notification.

This way it’ll ignore the random acceleration alerts and only notify me if there is something truly going on worth checking out. Here is what I have currently.


#2

duplicate line 34 within the same if condition and change the and in between the 2 set of conditions to followed by. quickest way, but 1 gotcha is if 2 different devices raise an acceleration event within a minute you will still be notified.

you could save the matching devices from the 2 conditions to 2 different variables. then either text them so you manually verify or send the alert only when they match.


#3

This is what I have so far, but how do I set up the part to notify when they match?

I’m thinking here, so if a device in the first condition set saves to the variable {acceleration2}, fine. Am I correct in thinking that {acceleration} will only be set if the event happens within 2 minutes?

What I don’t want to happen is {acceleration2} gets set, then three hours later {acceleration} gets set (and they match), then I get notified.


#4

right.

after the then add a new if like so if acceleration equals to acceleration2. then send the SMS/notification when this if is true.


#5

Ok I tried doing this, but i don’t have the option to choose a variable to match {acceleration}. It only lets me select Physical Device or expression. Any ideas?


#6

acceleration and acceleration2 are both physical devices. if you change the compare to to physical devices then you will find it in the drop down to the right.


#7

Ok sorry to keep bugging you, but now I can’t get past this screen. What attribute do I select for this?

activities?

EDIT:

Like this?

But this doesn’t seem like it would work because I’m comparing a variable to a physical device?


#8

its actually comparing the name of the devices … so that should work.


#9

I’ll give this a shot. here’s what i have…thanks!