Broadlink RM4 Pro Frustration with Scripts?

To all!!! HELP…

I have a problem with the Broadlink RM4 and it deals with running a script with multiple commands. For instance, I want to set up a script to change the cable channel to a specific channel. After writing the script it has a really bad habit of repeating numbers or even skipping a numbers. Individually the numbers work pretty good.

Any good suggestions on running a script with multiple commans? I have been playing around a bit with the pause between commands, but haven’t found a great combination. Appreciate the help!

i use 1 second delays between all steps. Like this:

alias: Denon slaap Power OFF
sequence:
  - service: remote.send_command
    data:
      device: Denon slaapkamer
      command: power off
    target:
      entity_id: remote.broadlinkrm4slaap_remote
  - delay:
      hours: 0
      minutes: 0
      seconds: 1
      milliseconds: 0
mode: single

Yeah I am doing the same, but it really doesn’t like it. I will try on the individual commands.
Here is the current example. It doesn’t run clearly at all.

alias: cable_espn
sequence:
  - service: remote.send_command
    data:
      device: cable_box
      command: 1
      delay_secs: 2
    target:
      entity_id: remote.broadlink_rm4_pro
  - service: remote.send_command
    data:
      device: cable_box
      command: 2
      delay_secs: 2
    target:
      entity_id: remote.broadlink_rm4_pro
  - service: remote.send_command
    data:
      device: cable_box
      command: zero
      delay_secs: 2
    target:
      entity_id: remote.broadlink_rm4_pro
  - service: remote.send_command
    data:
      device: cable_box
      command: 5
      delay_secs: 2
    target:
      entity_id: remote.broadlink_rm4_pro
  - service: remote.send_command
    data:
      device: cable_box
      command: ok
      num_repeats: 1
    target:
      entity_id: remote.broadlink_rm4_pro
mode: single
icon: mdi:alpha-e-box-outline

My individual buttons work pretty good by themselves when pressed and here they are recorded

alias: cable_1
sequence:
  - service: remote.send_command
    data:
      device: cable_box
      command: 1
    target:
      entity_id: remote.broadlink_rm4_pro
mode: single
icon: mdi:numeric-1-circle

Any ideas or comparisons to what yall are doing? Should I put that second delay after each button?

I see a difference on the delay.
Mine is placed after the command and begins with -, so it is next step in the sequence.
Yours is placed in the command, before target, without the -

I do think, this is a crucial difference.

I will do it this way:

alias: cable_espn
sequence:
  - service: remote.send_command
    data:
      device: cable_box
      command: 1
    target:
      entity_id: remote.broadlink_rm4_pro
  - delay:
      hours: 0
      minutes: 0
      seconds: 1
      milliseconds: 0
  - service: remote.send_command
    data:
      device: cable_box
      command: 2
    target:
      entity_id: remote.broadlink_rm4_pro
  - delay:
      hours: 0
      minutes: 0
      seconds: 1
      milliseconds: 0
  - service: remote.send_command
    data:
      device: cable_box
      command: zero
    target:
      entity_id: remote.broadlink_rm4_pro
  - delay:
      hours: 0
      minutes: 0
      seconds: 1
      milliseconds: 0
  - service: remote.send_command
    data:
      device: cable_box
      command: 5
    target:
      entity_id: remote.broadlink_rm4_pro
  - delay:
      hours: 0
      minutes: 0
      seconds: 1
      milliseconds: 0
  - service: remote.send_command
    data:
      device: cable_box
      command: ok
      num_repeats: 1
    target:
      entity_id: remote.broadlink_rm4_pro
mode: single
icon: mdi:alpha-e-box-outline

Yeah it still is having an issue with not clearly being transmitted.

It mainly does this:
120055

I guess, the commands are badly recorded.
If you push the button on the original remote for too long, it will automatically repeat the command as long, as pressed.
So, it looks, like the 0 and the 5 are recorded two times in one learning.
If recorded like this, Broadlink sees that as one command and blindly repeats it.
So, just try to relearn the commands, pushing the buttons very briefly :wink: