Apparently you already solved you problem but maybe helpful for you:
For outgoing there is the feature to send brightness_percent so that zigbee2mqtt does the calculation. For incoming you need a transformation.
You can find it here:
Apparently you already solved you problem but maybe helpful for you:
For outgoing there is the feature to send brightness_percent so that zigbee2mqtt does the calculation. For incoming you need a transformation.
You can find it here: