Good Morning together,
Actually I´m working on some procedures to detect opening windows during alarm state. Some windows may be open all the time (bathroom upstairs for example). But the change of one of these items from CLOSED to OPEN should be detected.
I wanted to safe my time, so I put all contact items to a group item. The rule is fired by following:
when Item groupWindow received update
I can see in the logfile, that the trigger of the rule is working when I move some Window Items of this group.
I can NOT use a trigger like following syntax, because I want detect only changed. Some Windows may be kept open all the time.
when Item groupWindow changed from CLOSED to OPEN
After triggering the rule, I need to know which Items inside the group changed their status. Here is my problem……
I tried the often explained solution with the procedure like:
... groupWindow.members.sortBy[lastUpdate].last...
But this returns every time the same item – no matter, which items changed its status.
I assume, my task is needed by many of you guys. How did you solved that problem?
Thanks and have a nice Sunday.