Shell command with argument via REST api

I think you can pass values to shell command, but can’t find how to.

I do it this way:

automation:
  - alias: Hyperion effect
    initial_state: True
    trigger:
      platform: state
      entity_id: input_select.hyperion_effect
    action:
      service: shell_command.set_hyperion_effect

shell_command:
  set_hyperion_effect: 'scripts/hyperion_effect.sh "{{ states.input_select.hyperion_effect.state }}"'

You can use an input_number for the time and call your script.

Edt: Found this about passing values to shell_command.