Google text-to-speek

Hi guys,
trying to get a function to get all of our google homes to announce FOOOOOD IS SERVED in swedish.
HA does not like the below statement and its not shown in the states section. Must I have more than action in the automation?
And can I add multiple entity_ids here or shall i create a new action section for each entity?

So if i start with the automation (i suppose)

- alias: Announcement food
  action:
    - service: tts.google_translate_say
      entity_id: media_player.google_home
      data:
        language: "se"
        message: "Maten är serverad"

Lets start with how your configuration looks?.

It should look something like this

tts:
  - platform: google_translate
    base_url: !secret tts_base_url

Then your automation would be this, but you should have a trigger. For example, a device that’s returns home.

- id: '1558893565845'
  alias:  Announcement food
  trigger:
  - entity_id: device_tracker.<YOUR DEVICE HERE>
    platform: state
    to: home
  condition: []
  action:
  - data:
      language: se
      message: Maten är serverad
    entity_id: media_player.google_home
    service: tts.google_translate_say

Another possibility would be to run a script. Then in your frontend you can press the button and it will be called out through google home

'1555789777876':
  alias:  Announcement food
  sequence:
  - data:
      language: se
      message: Maten är serverad
    entity_id: media_player.google_home
    service: tts.google_translate_say

Thanks. Do I really have to configure tts and add google translate as the platform?
If I browse to the integration section and go to any google home I can type any text there and press submit and it works like a charm…

If its “properly” configured through the integration section, you don’t have to configure it with the platform.

But you do need a working automation or script :grimacing::rofl: