Script for Broadlink RM Pro

Hi all,

I’m trying to get my Broadlink RM Pro to send commands to my TV via HA but, I can’t get it working properly in the newer versions.

On previous versions, I had scripts, mapped to the specific Broadlink code, which I could then add to the user interface. Something like this:

sony_mute:
  alias: 'Sony TV Mute'
  sequence:
    - alias: 'Sony TV Mute'
      service: switch.broadlink_send_packet_192_168_2_xxx
      data:
         packet: '<unique packet>'

I know the Broadlink is active in HA, because one of my devices is a light switch [that works], which I’ve added with this code:

  - platform: broadlink
    host: 192.168.2.xxx
    mac: '34:ea:34:bb:1f:4a'
    timeout: 15
    switches:
      lights:
        friendly_name: "Lights"
        command_on: '<packet_on>'
        command_off: <packet_off>'

Could someone take a look and tell me what I’m doing wrong. Thanks

Take a look at the docs
The service has changed a few releases ago.

2 Likes