Reading the group item that changed group's state

Bearing in mind there may be more than one window open when ou try to set the alarm, you’d want to iterate through the Group and filter for OPEN states.
That would produce a list.

an example