Since you already have a group, you can enumerate all items from a rule.
See
Inside your rule you then can check the current items state vs. the previous state (persistance needed) and then update the item.
I think the best way to educate yourself is actually to do something with your OpenHab. Learn from examples/solutions in the forums, try different things out and so on.
No need to be a JAVA expert in my opinion.