[SOLVED] transformationPatternOut seems not to work, but why?

Instead of using transformationPatternOut for outgoing message in things file, formatBeforePublish can be utilized, further simplifying configuration:

  Type number: current_heating_setpoint    [ stateTopic="zigbee2mqtt/eurotronicspzb03", commandTopic="zigbee2mqtt/eurotronicspzb03/set", transformationPattern="JSONPATH:$.current_heating_setpoint", formatBeforePublish="{ \"current_heating_setpoint\": %s }", min=18.0, max=25.0, step=0.5 ]