Broadlink.Send no longer available

I’m in the process of moving my Home Assistant from a Raspberry Pi 3b+ to a virtual server and want to start from scratch to clean it up a bit.

The issue seems to stem from the deprecation of the Broadlink.Send service, but I can’t find any documentation on it.

I want to be able to configure my blinds as Covers without overly complex code… Any suggestions?

Original Code:

cover:
  - platform: template
    covers:
      b_b1_0:
        friendly_name: "Bedroom 1"
        position_template: "50"
        device_class: "shade"
        open_cover:
          service: broadlink.send
          data:
            host: 192.168.1.142
            packet:
              - "sgD0Ap8yDBgMGRcNDBkXDQsZDBgYDQwYDBgYDRgMGAwMGQsZDBkLGQwYDBgMGQwYDBgMGRgNFw0MGBgMDBkMGAwYDBgMDBgMGQwYDBgMGA0YDBgMGRcNGAwNGBgMDBgMGQwYDBgMGQwYDBkLGRgMGAwYDRgMDAAF3AAAAAA="
        close_cover:
          service: broadlink.send
          data:
            host: 192.168.1.142
            packet:
              - "sgD0Ap8yDBgMGBkMDBgYDAwZDBgYDQwYDBgYDRgMGAwMGAwZDBkMGAwYDBgNFw0YDBgMGRgMGA0MGBgGAwYDBgMGQwYDBgNFxkMGA0MGBgMDBgNGAwYDBgNGAwZDBgYDBgMGA0YDAwYDAAF3AAAAAA="
        stop_cover:
          service: broadlink.send
          data:
            host: 192.168.1.142
            packet:
              - "sgD8AJ4yDBgNGBgMDBgYDQwYDBgYDQwYDDRgMGBgNGAwMGBgMDRgMGAwYDRgMGA0YGAwMGBgNDBgYDAwYGQAF3AAAAAAAAAAAAAAAAA=="

As the Broadlink.Send service seems to no longer be available, I have to use the following:

script:
  open_blind:
    sequence:
      - service: remote.send_command
        data:
          entity_id: remote.rmpro_remote
          command: b64:sgD0AqE0DBkMGQwZGQ0MGRgNGA0MGgsaDBkYDRgNGA0MGgwZAAA

However, I would have to create a script for each blind to open/close/stop, as that would be way too many lines of code.

I was hoping that instead I could just parse though the correct command data, however this does not seem to work:

      b_b3_1:
        friendly_name: "Bedroom 3.1"
        position_template: "50"
        device_class: "shade"
        open_cover:
            service: script.turn_on
            entity_id: script.open_blind
            data:
              variables:
                command: "b64:sgD0AqE0DBkMGQwZGQ0MGRgNGA0MGgsaDBkYDRgNGA0MGgwZDBkMGQwaDBkMGQwZDBkMGRgOGA0YDRgNDBoLGQ0ZDF3AAAAAA"

Any suggestions?

After checking https://github.com/home-assistant/core/pull/36914

I was able to come up with the following which works:

cover:
  - platform: template
    covers:
      b_b1_0:
        friendly_name: "Bedroom 1"
        position_template: "50"
        device_class: "shade"
        open_cover:
          service: remote.send_command
          data:
            entity_id: remote.rmpro_remote
            command: b64:sgD0Ap8yDBgMGRcNDBkXDQF3AAAAAA=
        close_cover:
          service: remote.send_command
          data:
            entity_id: remote.rmpro_remote
            command: b64:sgD0Ap8yDBgMGBkMDBgYDAwZ3AAAAAA=
        stop_cover:
          service: remote.send_command
          data:
            entity_id: remote.rmpro_remote
            command: b64:sgD8AJ4yDBgNGBgMAAAAAAAAAAAAAAA==