Serice remote.send_command

Hello friends. Could you help me with this? I want a botton to execute a broadlink command. Thank you

          # samsung tv buttons
          - type: custom:button-card
            icon: mdi:volume-plus
            tap_action:
              action: call-service
              service: remote.send_command
              entity_id: remote.broadlink_m3_remote_living
              service_data:                
                command: remote.samsung_tv_on

You probably just need to change this:

to this:

              service_data:                
                command: samsung_tv_on

Thanks friend. I separated it to run a script because I couldn’t.