I'm trying to to create a card that has a text input and uses tts.google_translate_say to play through speakers. I've been troubleshooting and can get it to work if all hardcoded, or if it test in dev tools actions. I think I'm not formatting something correctly in the card's tap action. I've been using chatgpt for help and now running in circles trying to debug. Current code plays out of the speaker "states input_text.media_message" instead of the actual text from that input
type: vertical-stack
cards:
- type: entities
title: Media Device and Message
entities:
- entity: input_select.media_player
name: Select Media Player
- entity: input_text.media_message
name: Enter Message
- show_name: true
show_icon: true
type: button
name: Send Message
icon: mdi:send
tap_action:
action: call-service
service: tts.google_translate_say
service_data:
entity_id: media_player.computer_speaker
message: "{{ states('input_text.media_message') }}"