Creating a fan using mqtt

Hi everyone,
I am going to create a fan using mqtt information from signal (like this) below

16:00:00.277 MQT: tele/tasmota_747524/RESULT = {"IrReceived":{"Protocol":"UNKNOWN","Bits":233,"Hash":"0x0281F340","Repeat":0}}
16:00:05.972 MQT: tele/tasmota_747524/RESULT = {"IrReceived":{"Protocol":"UNKNOWN","Bits":63,"Hash":"0x67B82648","Repeat":0}}
16:00:48.001 MQT: tele/tasmota_747524/RESULT = {"IrReceived":{"Protocol":"UNKNOWN","Bits":196,"Hash":"0x126774DB","Repeat":0}}
16:00:52.895 MQT: tele/tasmota_747524/RESULT = {"IrReceived":{"Protocol":"UNKNOWN","Bits":196,"Hash":"0x0DBDBCDB","Repeat":0}}

And I created a fan as below:

- platform: template
      friendly_name: "Preset Mode Fan Example"
      value_template: "{{ states('fan.percentage_fan') != 'off' }}"
        service: mqtt.publish
          topic: "cmnd/tasmota_747524/IRSend"
          payload: '{"Protocol":"UNKNOWN","Bits":96,"Hash":"0x4D1AD837","Repeat":0}}'
        service: mqtt.publish
          topic: "cmnd/tasmota_747524/IRSend"
          payload: '{"Protocol":"UNKNOWN","Bits":108,"Hash":"0x8C37AC7B","Repeat":0}}'
      percentage_template: "{{ state_attr('fan.preset_mode_fan', 'percentage') }}"
      speed_count: 5
        service: mqtt.publish
          topic: "cmnd/tasmota_747524/IRSend"
          payload: >
            {% if percentage == 100 %}
            {% elif percentage == 80 %}
            {% elif percentage == 60 %}
            {% elif percentage == 40 %}
            {% elif percentage == 20 %}
            {% else %}
            {% endif %}

Home assisstant created a fan, I can turn it on/ off but seeming that nothing happen (no signal sent)
Can someone help me what’s wrong with the code?
Thank you

Here are some MQTT switches I have set up for use with the rfbridge using tasmota.
It may help or it may not.
Home-Assistant-Config/mqtt/switch/MQTT_switch_RF433.yaml at ad962bdd9b731204801939807063aac9cb346224 · SirGoodenough/Home-Assistant-Config · GitHub.

I am troubled (but have not played with Tasmota IR) that you are not putting into the payload everything that you see in the Tasmota log entries, IE the: