Need help calling script

Hello,
I have the following script:

alexa_tts:
  sequence:
    - service: notify.alexa_media
      data:
        target: media_player.my_echo_dot
        message: "{{ message|default('This is a test announcement') }}"
        data:
          type: tts
          method: all # or speak or show

How do I pass the following to call this script as a service in Developer Tools?
message: “Hello, test test”

Thank you

service: script.alexa_tts
data_template:
  message: "Hello, test test”

You also need to change the first ‘data’ (under service:) in your script to data_template.

Thanks, it works

1 Like