Reading this, I think outbound transformations are not yet working (@David_Graeff am I correct?)
So if that is the cause, you need to have a proxy item and a rule.
Because that’s a made up syntax ^^. If you have a switch channel instead of a string channel, you can use ON=“2” OFF=“1”. A string channel does not support that shortcut.
They do in OH 2.5M1+
And that is exactly the solution here. You need to apply the MAP transformation not on the sitemap level of abstraction but way earlier at the channels level. But to be honest I forgot the command although I have written this binding. I don’t use text files
It really helps if you say what that means, and maybe report relevant messages from openhab.log or events.log
What does it do that you didn’t expect?
What doesn’t it do that you did expect?
But you defined ENTENBE as a String type. Command “1” is not the same as number 1
You haven’t installed the MQTT Action. However, the MQTT Action only works with the MQTT 1 binding. You appear to be using the MQTT 2 binding. As documented here the MQTT 2 actions are accessed and used differently.