Groups ... if state in group1 execute action in group2

It isn’t clear to me exactly what you are asking for. Is it something like Design Pattern: Associated Items?