Unable to send packets with Broadlink RM mini 3 as a service

I’ve been fighting with this for too long and I could use some help. I’ve added the RM mini 3 to my hassio configuration and then I used the learn_command service to sniff some IR packets. Here’s what my configuration looks like…

switch:
  - platform: broadlink
host: 10.0.0.25
mac: '34:EA:34:8E:E6:8A'
type: rm_mini
switches:
  tv:
    friendly_name: "Philips TV"
    command_on: 'JgAcAB0dHB44HhweGx4cHR06HB0cHhwdHB8bHhwADQUAAAAAAAAAAAAAAAA='
    command_off: 'JgAaABweOR4bHhwdHB4dHRw6HhsdHR0dOTocAA0FAAAAAAAAAAAAAAAAAAA='
  fan:
    friendly_name: "Bedroom Fan"        
    command_on: 'JgCEAxAoDygQKA8oECgPKCvrKwwrDA8oKwwrDBAoECcQKBAoDygQKCvqKwwrDBAnKw0qDQ8oECgPKBAoECcQKCvqKwwrDBAoKg0rDBAoDygQKA8oECgPKCvsKwwrDA8oKwwrDBAoDykPKA8pDygQKCrrKwwrDBAnKwwrDQ8oECgPKBAoDygQKCvqKwwrDBAoKwwrDA8pDygPKQ8oECgPKCvrKg0qDQ8oKwwrDBAoDygQKA8pDygPKSrsKg0rDA8oKw0qDQ8oDykPKBAoDykPKCrsKg0qDQ8oKg0qDQ8pDikPKQ4pDykPKCrsKQ4qDQ4pKwwqDg0qDioNKg4qDikOKinsKQ4pDg4qKQ4pDg4qDSoOKg0qDioOKSnuKQ4pDg0qKQ4pDg4qDioNKg4qDSoOKinsKQ4pDg4pKQ8oDw0qDioOKQ4qDSoOKintKA8oDw0qKQ4pDg4qDSoOKg4pDioOKSntKQ4pDg4pKQ4qDg0qDykNKg8pDikPKSrsKwwrDA8pKg0qDQ8pDygPKQ8oDykPKCvrKg0qDQ4pKg0qDQ4qDikOKg4pDioOKSvrKA8pDg4pKA8oEA0qDSsMKw0rDCsNKyjtKA8oDw0rKA8oDw0rDCsNKwwrDSsMKyjvKA8oDwwrKA8oDw0rDSoNKw0rDCsNKyjtKA8oDw0qKA8oEAwrDSsMKw0rDSoNKyjtKA8o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rKg0qDQ4pKg0qDQ4qDikOKg4pDioOKSvrKA8pDg4pKA8oEA0qDSsMKw0rDCsNKyjtKA8oDw0rKA8oDw0rDCsNKwwrDSsMKyjvKA8oDwwrKA8oDw0rDSoNKw0rDCsNKyjtKA8oDw0qKA8oEAwrDSsMKw0rDSoNKyjtKA8oDw0rKA8oDw0rDCsNKwwrDSsMKyjuKA8oDwwrKA8oDw0rDSoNKw0qDSsNKyjuKA8oDw0qKBAoDw0qDSsNKg4qDSsNKijtKQ4pDg4qKQ4oDw4qDSoOKg0qDioNKijuKA8oDw0qKA8oEAwrDioMKw4qDCsOKijtKA8oDw0qKA8oEAwrDioMKw4qDSoOKijuKA8oEAwrKA8oDw0rDCsNKwwrDSsMKyjuKBAnEAsrKBAnEAwrDSsMKw0rDCsNKyjtKBAnEAwqKBAnEQsrDSsMKw0rDCwMLCfuJxAnEAwsJxAnEAwrDCwMKwwsDCwLLCfwJxAnEAssJxAnEAwsCywMLAwrDCwMKyfvJxAnEAwrJxAnEQssDCwLLAwsCywMLCfuJxEmEQssJhEnEQsrDCwMLAstCywLLSbvJhEmEQstJhEmEQstCi0LLQotCy0KLSbyJRIlEgotJRIlEgouCi0KLwkuCS8JLiXyIxQjFAgvJBQjFAgxBjEGMwSnHAANBQAAAAA='        

This works as expected and the switch works. The fan or the TV turn on/off, the led light on the front of the RM mini 3 blinks when I trigger a command. Here’s my problem, when I try to call the send_packet service I get nothing. When I call broadlink.send_packet_10_0_0_25 with the data:
{"packet":"JgAcAB0dHB44HhweGx4cHR06HB0cHhwdHB8bHhwADQUAAAAAAAAAAAAAAAA="}
I get no response, HA says the service is called, but nothing happens, the TV doesn’t power cycle, the LED doesn’t blink, I used a digital camera to confirm that there is no IR being blasted. If I copy the example script from the components page I also have no success with the device blasting any IR.

Help please! What am I doing wrong?

For those out there with the same issue, the answer came from reddit user sentinel123

The solution is to add square brackets around the data. Example:
{ "packet" : [ "JgAcAB0dHB44HhweGx4cHR06HB0cHhwdHB8bHhwADQUAAAAAAAAAAAAAAAA=" ]}

2 Likes

Can I see an example of this in script form please?

I couldn’t get the scripts to work when I typed them into my yaml file. I had success when I used the GUI script editor. It made something like this…

'1509757458062':
  alias: Bedroom TV Mute
  sequence:
  - data:
      packet:
      - JgCQAAABIpEUERQRFDUUERQRFBEUERQ1FBEUERQRFBEUERQ1FDUUNRQRFBEUNRQRExITNhI3ExITNhI3ExITNhI3EhMTEhM2EwAFQAABJEgSAAwgAAEjSBMADCAAASNIFAAMHgABJEgUAAweAAEkSBQADB4AASRHFAAMHwABJEcUAAweAAEkSBQADB4AASRIFAANBQAAAAAAAAAA=
    service: broadlink.send_packet_10_0_0_25
'1509757927100':
  alias: TV Volume Up
  sequence:
  - data:
      packet:
      - JgBoAAABI5AUERQRFDUUERQRFBEUERQ1FBEUERQRFBEUERQ1FDUTNhQRFBEUERQRFBEUNRQ1ExIUNRQ1FDUTNhM2FBEUERQ1FAAFPwABI0kTAAwfAAEkRxQADB8AASRHFAAMHgABJEgTAA0=
    service: broadlink.send_packet_10_0_0_25
'1509757988761':
  alias: TV Volume Down
  sequence:
  - data:
      packet:
      - JgBQAAABI5EUERQRFDUSExQRFBETEhQ1EhMTEhMSExITERQ1EzYUNRQ1ExIUERQRFBEUNRQ1FBEUERQ1FDUUNRQ1ExIUERQ1EwAFQQABIkkTAA0FAAAAAAAAAAA=
    service: broadlink.send_packet_10_0_0_25
'1509758078306':
  alias: Bedroom TV Power
  sequence:
  - data:
      packet:
      - JgDwAAABJJAUERQRFDUUERQRFBEUERQ1FBEUERQRFBEUERM2FDUUNRQRFBETERQRFBEUNRUQFBEUNRU0FTQUNRQ1FRAUNRU0FQAFPwABJEcVAAweAAEkRxUADB0AASRIFAAMHgABJEcVAAweAAEkRxQADB4AASRIFAAMHgABJEcVAAweAAEkRxUADB0AASRIFAAMHgABJUcWAAwbAAElRxUADB4AASRHFQAMHQABJEgUAAweAAEkRxUADB4AASRHFAAMHwABI0gUAAweAAEkSBQADB4AASRHFAAMHwABJEcVAAwdAAEkSBQADB4AASVHFAANBQAAAAAAAAAA=
    service: broadlink.send_packet_10_0_0_25
1 Like

@Tansaha This thread helped me so much, I was starting to pull my hair out!

This is my working switch.yaml and script.yaml config for turning my AC off.

switch.yaml

- platform: broadlink
  host: 192.168.1.130
  mac: '78:0f:77:XX:XX:XX'
  timeout: 15
  type: rm_mini

Script.yaml

aircon_off:
  sequence:
  - data:
      { "packet" : [ "JgBkAWMAAScREBEyEBEPEg8SDxEQEg8SDxERMBEREBEQMRExEREOMhIwEjARMRAyERAQERAQEhAQERAREBEQEhAQEBEREBAREBEQERAREBEREBAQEREQEREQDxEREQ8SEBEQEBEREBEPEhAQERARERAREBARMRAyEGJiAAEoETEREBEQEg8RERAREBEQEREQEDEQEREQEDESEBAxETEQMRIwETERMRAREBEOExAREBEQERAREBARERAQEREQERAREBEQERAREBEQEBESDxEQERAREBEQERAQEREQEREQEBEREBAREBEQEREQERAQERFRYgABKBEwEhAQERAREBEQEREPEREQERAyEBAREREwEBEQMRIwERARMRIwEDERMRExETARMRExEREPEg8SDzERMREyEBEQERAREBEQERAwEjARMRIQEDEQERAyEBASMBEREBARERAREBEREBAREBEQEBEyDzESAA0FAAAAAA" ]}
    service: switch.broadlink_send_packet_192_168_1_130

Thanks!! My service script was broadlink dot send instead of lower case,solved thanks!!

1 Like