Publish group update (state change) to MQTT

https://community.openhab.org/t/design-pattern-working-with-groups-in-rules/20512

You will find a list of good examples.