I think that with exposing the Attribute ID next to thing’s value and state would solve this issue.
Although it is technically possible by:
When input is changed > Set state of this input: ‘id=element-name-x’ > make changes to parent group’s thing > ‘Modified element=this element’s id’.
Then add a condition to the element: when parent group’s Thing’s Modified element is ‘element-name-x’ do whatever to flag.
It works but it is not dynamic.