How to send 2 identical IR commands on a tuya IR device

I have a tuya IR device that has the send feature where I can paste the command. However, it won t sent the same command twice, I have to either empty the IR to send string or send another, so I can send back the other.

Is there a way to fix it? The only thing I can think of is always clearing the IR to send on my scene, but tthi is too much

id: "1739972483567"
name: power ventilador
entities:
  switch.ir_escritorio_learn_ir_code:
    friendly_name: ir escritório Learn ir code
    state: unknown
  text.ir_escritorio_ir_code_to_send:
    mode: text
    min: 0
    max: 255
    pattern: null
    assumed_state: false
    friendly_name: ir escritório Ir code to send
    state: CTUjQBE1AnoGNQLgFwFAI+AXA+AXAeBMPwIGNQI=
icon: mdi:power
metadata: {}

this is the automation. I think Home Assistant might not be setting the text again if it s already the same?

The following scene:

id: "1739972483567"
name: power ventilador
entities:
  text.ir_escritorio_3v_branco_ir_code_to_send:
    mode: text
    min: 0
    max: 255
    pattern: null
    assumed_state: true
    friendly_name: ir escritório Ir code to send
    state: CTUjQBE1AnoGNQLgFwFAI+AXA+AXAeBMPwIGNQI=
icon: mdi:power
metadata: {}

sets the infrared code to send over mqtt to a tuya zigbee device. However, if the code is the same, it wont send the command.

To test this hypothesis, I made one scene that sends the power command and another that clear it. If I run then in sequence, one after another, it always works. However if I have to click the same scene twice it wont run, because it ignores the non change I made.

That’s not an automation… that’s a scene.

Automate the clearing… Text Integration - Actions

FWIW, if this is an action sequence that you will be calling often, you might want to set it up as a script.

It worked, thanks. However this is something that will show up to many people. It should have an option to force update a text value.

I opened a feature request: