Multiple commands in script

Hi,

Probably a noob question, but I can not find the answer. Can I use multiple commands in a script e.g. to switch a tv

discovery:
  sequence:
    service: remote.send_command
    data:
      entity_id: remote.remote
      command: "15"
      device: "DVR KPN"

does not switch to channel 15, nothing happens

command: "1"

does switch to channel 1

1 Like

To answer my own question, this is the correct syntax

discovery:
  sequence:
    service: remote.send_command
    data:
      entity_id: remote.remote
      command:
        - 1
        - 5
      device: "DVR KPN"

I distilled this information from this issue Remote send command field is only one line · Issue #10150 · home-assistant/frontend · GitHub

2 Likes