OH3: How to define the CW channel for a RGBCW LED; does it need a JS transformation?

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: