Broadlink Script in YAML

Hi,

I am trying to do a script with to simulate multiple button press on my IR remote. Does anyone have a script with broadlink IR comments that you can share?

It’s pretty straightforward once you’ve gotten the ir command off broadlink and made them switches. From there just add the order of buttons you want pressed. The one thing to keep in mind is that depending on how quickly your TV accepts consecutive button presses, you may have to add one second delay: commands in between each service.

tv_retropie:
  sequence:
    - service: switch.turn_on
      data:
        entity_id: switch.tv_down
    - service: switch.turn_on
      data:
        entity_id: switch.tv_input
    - service: switch.turn_on
      data:
        entity_id: switch.tv_down
    - service: switch.turn_on
      data:
        entity_id: switch.tv_down
    - service: switch.turn_on
      data:
        entity_id: switch.tv_down
    - service: switch.turn_on
      data:
        entity_id: switch.tv_down
    - service: switch.turn_on
      data:
        entity_id: switch.tv_enter
1 Like