Alarm on any 2 motion sensors tripped or 2 trips on the same sensor

Hi All,

Sorry for the dumb question, I’m still very new to PLEG and boolean so this might be simple but I couldn’t see it in the forums so I’m going to ask anyway;

I get more than a few false positives from my motion sensors (perhaps my placement) but I want to try and compensate for this in 2 ways;

  1. Only trip the Siren/Alarm if ANY 2 motion sensors in the house are tripped at the same time.
  2. -OR- trip the Siren/Alarm if the same sensor is tripped twice in a row.

I think point 2 can be done with something like;

(Sensor1Tripped or Sensor2Tripped or Sensor3Tripped) @ 2 < 10:00

Would that work for point 2 or is their a better way of doing it? I’m lost altogether with point 1 though, if I do something like;

(Sensor1Tripped or Sensor2Tripped or Sensor3Tripped) and (Sensor1Tripped or Sensor2Tripped or Sensor3Tripped)

Because the same sensors are in both statements then it will be true if just one sensor is tripped. What’s the best way of doing this, as doing every iteration for 7 sensors seams silly.

Thanks in advance,

You can use the @ 2 with an expression (Sensor1 or Sensor2 or Sensor3)

You can create a condition called
AnySensor Sensor1 or Sensor2 or Sensor3 or …
Select Repeat so you get a timestamp when any Sensor detects, even if the expression is already true.

Then you can your debounced condition:
DeBounce AnySensor @ 2 < 10:00

This will trip if two sensors … or the same sensor trip within 10 minutes.

Hey Richard,

Thanks for this, it was allot simpler than I thought, thank you so much for this response. Works a treat!

Paul