Openhab to Carlo Gavazzi SmartHouse (SH2WEB24)

I am reviving this old topic because I have identical Carlo Gavazzi hardware as the first poster, but I can’t seem to get my CG modbus dimmers to work. Tried with Per’s suggestion, but nothing. Also looked at this one: Use Dimmer-item with modbus binding OH2

I am quite new to OH, but I have configured the modbus tcp slave, regular poll and the modbus data. If I configure the dimmer as “value as switch” I get the light to turn on/off, so I know all the communication/adresse and so on is correct. All this through Paper UI.

I believe the fault is in the transformation? I have installed the JS trans add-on and created the transformation “trick” file in $OPENHAB_CONF/transform. Is that the correct location?