Zigbee2mqtt to Domoticz flow help

I thought Domoticz could control those groups directly ? It is home automation software with mqtt support.

Although this doesn't help you with your flow, my tip would be to keep it as simple as possible. The more software in between the more potential problems. (note - i have all my home-automation in node-red only, including states and interface(s))