How can I get a rule triggered when some contacts open that are members of nested groups?
Here is the scenario:
At the root there is one big group that contains everything:
Group gMotionSensors (All)
and there are two subgroups of motion sensors:
Group gSubgroup1 (gMotionSensors)
Group gSubgroup2 (gMotionSensors)
And finally two (or more!) contacts in each subgroup:
Contact foo (gSubgroup1) {}
Contact bar (gSubgroup2) {}
The goal is to have a rule run when one of the elements of the subgroups changes.
Experimentation indicates that this will not work:
rule "motion sensor tripped"
when
Item gMotionSensors changed
then
even if the syntax of the gMotionSensors group is changed to:
Group:Contact:OR(OPEN,CLOSED) gMotionSensors (All)
(a side question, although not central: where is this “reduction syntax” documented, and what does it do exactly?)
Thanks!
Bernd