IR remote control mqtt

I am asking for help in solving my problem, I want to control the remote control three buttons, what am I doing wrong?
I have created

Sitemap

Switch item=TV_Pilot mappings=[1=”Blue” , 2=”Green” , 3=”Red”]

ir.map

// transform IR-Code

1={“Protocol”:“NEC”,“Bits”:32,“Data”:“0x00FFB04F”}

2={“Protocol”:“NEC”,“Bits”:32,“Data”:“0x00FFF807”}

3={“Protocol”:“NEC”,“Bits”:32,“Data”:“0x00FF9867”}

Pilot.items

Switch TV_Pilot “1/2/3 [%s]”

Pilot.rules

rule “Wysylanie IR mqtt”
when
Item TV_Pilot received command
then
logInfo(“Wysylanie IR mqtt”, "command "+receivedCommand)
mqtt_topic_irremote_Kod_pilota.sendCommand(transform(“MAP”, “ir.map”, receivedCommand.toString))
end

pilot.things

Thing mqtt:topic:irremote “Zdalne sterowanie” (mqtt:broker:MosquittoMqttBroker) {
Channels:

         Type string	: Kod_pilota "Dane pilota" [ commandTopic="cmnd/Plytka186/IRsend"]

	
}

I may have missed a nuanced implementation of something, but may I suggest an alternative configuration?

Things

Thing mqtt:topic:irremote "Zdalne sterowanie" (mqtt:broker:MosquittoMqttBroker) {
    Channels:
        Type string	: Kod_pilota "Dane pilota" [
            commandTopic="cmnd/Plytka186/IRsend",
            formatBeforePublish="{\"Protocol\":\"NEC\",\"Bits\":32,\"Data\":\"%s\"}"
        ]
}

Items

String KodPilota "Dane pilota" {channel="mqtt:topic:irremote:Kod_pilota"}

Sitemap

image

Switch item=KodPilota label="Dane pilota []" mappings=[0x00FFB04F="Blue" , 0x00FFF807="Green" , 0x00FF9867="Red"]

When you click RED on the sitemap, the following message is sent to your MQTT Broker:
image

When you click BLUE
image