MQTT 2.4 update, using outgoing value format

I have an old mqtt binding switch.items as

{mqtt=">[broker:/ESP_Easy/gpio/12:command:ON:1],>[broker:/ESP_Easy/gpio/12:command:OFF:0]"}

I set up a new MQTT Item with a new channel. The Channel MQTT Command Topic should start off with

 /ESP_Easy/gpio/

What should the transform be? I have to transform the OFF to 0

thanks

Given that the 2.4 binding is now well over a year old now I’m not sure. With the 2.5 version of the binding there is a “Custom ON/OPEN” and “Custom OFF/CLOSED” field you can put the 1 and 0 into and it will transform as you require. Other alternatives include using the MAP transform to transform the ON/OFF to 1/0.