Add "last changed sub-item" for group state

Hello,

Group state can be a OR of sub_items state (by default), a AND of sub_items state (with “all-entities” option)

It should be very usefull for 2 way switches or n way switche automation if an option was available to define the state of a group as the state of the last changed sub-item state.

Or maybe it’s already available somewhere but I didn’t found it ?

Thanks.