Broadlink sends the same command repeatedly

Hi all,
I have configured brodalink RM Mini 3 with my Hass.io running on RP3.
I want to control my TV and AC with broadlink.

Both are old devices (nothing smart about them).

The problem I have encountered is that once I learn all the codes and configure devices when I press volume up button, broadlink broadcasts that command until I press another button. Then that button will broadcast that command …
So in the example, I can press Volume up, and it will go as high as tv can turn the volume up, the same thing is happening with all commands.

My sample code:

switch:
  #Broadlink "RM mini 3" IR Transciever
  - platform: broadlink
    # type: rm_mini
    timeout: 15
    host: x.x.x.x
    mac: 'xx:xx:xx:xx:xx:xx'
    switches:
      d3_power:
        friendly_name: "D3 Power"
        command_on: 'JgC4AAABJ5QSNxMSEhISExISEhMSEhMSEjcSExI4EzcSNxM3EzcTNxISEhMSOBI3EzcTEhI3EzcSOBI4ExESExISEjgTEhISEgAFJAABKEkTAAxUAAEmShMADFQAASZKEwAMVAABJ0oSAAxVAAEmShIADFUAASdKEgAMVQABJkoSAAxVAAEnShIADFUAASZKEwAMVAABJ0oSAAxVAAEnShIADFUAASdKEgAMVQABJ0oSAAxVAAEmSxEADQU='
        command_off: 'JgC4AAABJ5QSNxMSEhISExISEhMSEhMSEjcSExI4EzcSNxM3EzcTNxISEhMSOBI3EzcTEhI3EzcSOBI4ExESExISEjgTEhISEgAFJAABKEkTAAxUAAEmShMADFQAASZKEwAMVAABJ0oSAAxVAAEmShIADFUAASdKEgAMVQABJkoSAAxVAAEnShIADFUAASZKEwAMVAABJ0oSAAxVAAEnShIADFUAASdKEgAMVQABJ0oSAAxVAAEmSxEADQU='
      d3_vol_up:
        friendly_name: "D3 Volume Up"
        command_on: 'JgDYAAABJ5MTNxITEhISExISEhMSEhISEzcTEhI4EjcSOBI4EjgSOBISEhISExISEhMSEhITEjcTNxI4EjgSOBI3EzcSOBITEgAFJAABJkoSAAxUAAEnShIADFQAASdJEgAMVQABJkoSAAxVAAEnShIADFQAASdKEgAMVAABJ0oTAAxTAAEnShMADFMAASdKEgAMVAABJ0oSAAxVAAEmShIADFUAASdJEgAMVAABJ0oSAAxVAAEmShIADFUAASdJEwAMVAABJ0kTAAxTAAEoSRIADFQAASdKEgANBQ=='
      d3_vol_down:
        friendly_name: "D3 Volume Down"
        command_on: 'JgDYAAABJ5MTNxITEhISExISEhMSEhISEjgTEhI4EjcTNxI4EjgTNxI3ExISEhITEhITEhISEzcSEhI4EjgSOBM3EjcTNxITEgAFJAABJkoTAAxTAAEnShMADFMAASdHFQAMVAABJkoTAAxTAAEoSRIADFQAASdJEwAMUwABJ0oTAAxSAAEnShIADFQAASZKEwAMUwABKEkSAAxUAAEmShIADFQAASdKEgAMVAABJkoTAAxUAAEmShMADFMAASdKEgAMVAABJ0kTAAxTAAEoSRMADFMAASdKEwANBQ=='
      d3_chan_up:
        friendly_name: "D3 Channel Up"
        command_on: 'JgDoAAABJ5QSNxMSEhISExISEhMSEhISEjgSExI3EzcSOBI4EzcSNxI4EhMSNxITEhISExISEzcTEhI3ExITNxI3EzcSOBMREgAFJQABJkoSAAxUAAEnSRIADFQAASZKEgAMVAABJ0kSAAxUAAEnShIADFQAASdKEwAMUwABJkoTAAxTAAEnShIADFMAAShJEgAMVAABJ0oSAAxTAAEoSRIADFQAASdKEgAMUwABJ0oSAAxUAAEnShIADFQAASdJEgAMVAABJ0oSAAxUAAEmShIADFQAAShJEwAMUwABJ0oSAAxUAAEmShIADQU='
      d3_chan_down:
        friendly_name: "D3 Channel Down"
        command_on: 'JgDwAAABJ5QSNxMSEhISExISEhMSEhITEjcTEhI4EjcSOBI4EjgSOBISEjgSOBISEhMSEhITEjcSOBITEhISOBI4EjcTNxITEgAFJAABJ0kTAAxTAAEnShIADFQAASZKEwAMUwABJ0oSAAxSAAEoShIADFQAASdKEgAMVAABJ0oSAAxUAAEmShIADFQAASdKEgAMVAABJ0oSAAxUAAEmShMADFMAASdIFAAMVAABKEkSAAxUAAEoSRIADFQAASdKEwAMUwABJ0kTAAxUAAEnShIADFQAASdKEgAMVAABKEkSAAxUAAEnShMADFMAASdKEgANBQAAAAAAAAAA'
      d3_mute:
        friendly_name: "D3 Mute"
        command_on: 'JgDYAAABKJMSNxMSEhITEhISEhMSEhITEjcTEhM3EjcSOBI4EjgSOBMREhMSNxI4EjgSEhITEjgSNxM3EhMSEhITEjcSOBITEwAFIwABJ0kTAAxTAAEoSRIADFQAASZKEgAMVAABJ0oSAAxUAAEnSRMADFMAAShJEgAMVAABJkoSAAxUAAEnShIADFQAASdKEgAMVAABJ0kTAAxUAAEmShMADFMAASdKEgAMVAABJ0kTAAxUAAEmShMADFMAASdKEgAMVAABJ0oSAAxUAAEnSRIADFUAASZKEgANBQ=='

Any ideas?

Thanks in advance

Is this correct?

Underknowledge11/05/2018

Broadlink learns the commands - - When you press the remote longer the payload is also diffrent

So solution to my problem is just to learn codes by short pressing the buttons ??

To whom it might be a concern. :smiley:

Solved the issue. The problem was when I was learning code I have preset the button way too long.
The solution was to relearn the codes, but this time just pressing fas on a button was sufficient enough.