Broadlink RM-PRO and TC2 switch

Ok, so I managed (with @mdmc95 's help) to get the code converted, and then I used a 2 scripts (on and off), an input_boolean and 2 automations (on and off) to have an input toggle on or off - send it to the automation and then switch the light on or off based on the input.
Input Boolean:

input_boolean.bedroom_wall_light_1

2 Scripts:

alias: Turn Office Wall Light 1 On
sequence:
  - service: remote.send_command
    data:
      entity_id: remote.rm_pro_remote
      command: >-
        b64:6RRGAN8JFgkWCQkWFgkJFhYJFgkWCRYJCRYWCQkWFgkJFhYJCRYWCQkWFgkWCRYJCRYJFhYJFgkJFhYJFgkWCQkWFgkWCQkAAUg=
mode: single
icon: 'mdi:ceiling-light'

alias: Turn Office Wall Light 1 Off
sequence:
  - service: remote.send_command
    data:
      entity_id: remote.rm_pro_remote
      command: >-
        b64:6RRGAN8JFgkWCQkWFgkJFhYJFgkWCRYJCRYWCQkWFgkJFhYJCRYWCQkWFgkWCRYJCRYJFhYJFgkJFhYJFgkWCQkWFgkWCQkAAUg=
mode: single
icon: 'mdi:ceiling-light'

and 2 automations:

- id: '1604929249127'
  alias: Turn Office Wall Light 1 On
  description: ''
  trigger:
  - platform: state
    entity_id: input_boolean.office_wall_light_1
    from: 'off'
    to: 'on'
  condition: []
  action:
  - service: script.turn_on
    data: {}
    entity_id: script.turn_office_light_on
  mode: single
- id: '1604929352934'
  alias: 'Turn Office Wall Light 1 Off '
  description: ''
  trigger:
  - platform: state
    entity_id: input_boolean.office_wall_light_1
    to: 'off'
    from: 'on'
  condition: []
  action:
  - service: script.turn_on
    data: {}
    entity_id: script.turn_office_wall_light_off
  mode: single

and now it works beautifully

AS FYI – the scripts work only if in Integrations - Broadlink (select the Broadlink remote) and switch it to on -


if it’s switched to off - the scripts don’t work

In your face IFTTT - deleting my account right now !