Need help to migrate to the mqtt binding v2 in openhab 2.4

The same problem here. At the moment it isn’t as flexible as the good old one in my eyes. For my dimmer it is neccesary to transform a value form 0-100 to 0-255 before publishing (subscribing the other direction). With the old one I can use a scale for it

{mqtt=">[MQTT_BROKER:H801_02/channel/0/set:state:*:SCALE(toChannelMin.scale)]"}

, but with the new binding I have no idea how to solve this problem.
Because the doc says: “The channel will publish a value between 0 and 100”

1 Like