Multiple leak sensors


#1

I’ve got multiple water leak sensors throughout my house. I am trying to figure out to make a piston that will trigger the same things but give me a text message saying which sensor triggered it. I know I can do it with many if/then/elseif statements, trying to find a more streamlined way to do it.

Basically is there a way to use the name of the sensor that triggered the event in the else part?

In my example piston, sensor 1 is the basement, and 4 and 5 are elsewhere. Instead of the text message saying “leak detected in basement”, I would want it to say “leak detected from sensor 1”… so that no matter what sensor triggers it, I will know where the leak is.


#2

Send the $currentEventDevice variable which will have the name of the triggered sensor.


#3

You can assign the detector(s) that went into leak status to a variable in the advanced setting for the condition.


#4

Thanks, I think $currentEventDevice was what I was looking for, going to give it a try.