Trying to use an input_select as a target in notify.alexa_media

As the topic says, I’m trying to use an input_select as the target in a notify.alexa_media service call, but having no luck. Is it possible to do this? I’ve only been trying it in the Developer Tools (Services) until I can get it figured out, but I’ve tried every iteration I can think of with no luck. When I call the service, it doesn’t give me any errors, but it also doesn’t play my message. I’ve tried it replacing the target with the actual device and it works that way. Any help would be greatly appreciated.

Right now, here’s the service data for notify.alexa_media:

message: 'This is a test.'
data:
  type: tts
target: >
  {{ states('input_select.which_echo') }}

the input_select from my configuration.yaml is as follows:

  which_echo:
    name: Which Echo
    options:
        - media_player.kitchen_echo_show
        - media_player.echo_flex
        - media_player.jake_s_bedroom
        - media_player.lydia_upstairs_bedroom_echo
        - media_player.master_bedroom
        - media_player.deb_s_studio_spot
        - media_player.deborah_s_2nd_echo_dot
        - media_player.pauls_office_echo_dot
        - media_player.twin_bedroom

If you are testing it by using Developer Tools > Services, it doesn’t support templates.

1 Like

Wow, I didn’t realize that! I’ll give it a try in an automation.

Well, what do you know, it worked as intended once I put it in an automation. Wish I could get all those hours back! Oh well, live and learn. Thanks for the quick response.