Zigbee2mqtt groups in Home Assistant

I need help with zigbee2mqtt group and Home Assistant. I have a group of Tuya switches and the default behaviour is when one switch is turned off the whole group’s state changes to off. I’d like it to act like a lights group, when one or more switches is turned on the whole group is reported as on and if all of the switches are off then the group is reported as off. Is it possible to achieve this in zigbee2mqtt or do I have to use Home Assistant groups. I’d prefer to use zigbee2mqtt implementation since then I am reducing traffic on my network.