TTS/text to speech actions aren't working from automation?

Hello,

I’ve recently added Google Cloud integration via subscription to Home Assistant Cloud. I’m trying to get tts based notifications added to some of my notifications, but they don’t seem to be working.

All I did was add another action to an existing rule, I’ve tried the Google native TTS, the native Nabu Casa TTS, and play media targetting Google TTS, so far, and none of them work from the automation.

I’m not sure what I’m doing wrong though, if I run the action, everything works as I want(I get a notification on my phone, and TTS playback on the targetting speaker). I also just added a volume set to 80, to make sure I could hear it, this also works from the run actions option, but doesn’t seem to actually function when called from the automation rule.

The rule is running, I can see it in the history and most recent run time. I’m also using a test-rule to make sure it wasn’t working, so it’s firing very frequently(every 5 minutes) when enabled, so I know the rule is triggering.

Is it not as simple as I think to just add the TTS options and have them work from an automation?

Thank you!

Hi, I set automation for Alexa to alert me the covers are going to get closed.

 id: '12334578910'
  alias: Alexa Covers Alert
  description: Alert for covers closing at 23:30
  trigger:
  - platform: time
    at: '23:29'
  condition: []
  action:
  - service: notify.alexa_media_echo_dot
    data:
      data:
        type: announce
      message: Covers are going to be closed in a minute
  mode: single

Don’t forget to specify the type: announce

P.S. I don’t know about Google Cloud…

Hmmm yeah that’s more involved/looks maybe Alexa specific? I’m trying the cloud TTS service.
The definition is simple, this is identical to what is in the docs, other than identifiers are for my stuff. It works fine on the test, it just doesn’t seem to do anything when the automation runs.

It’s so simple to configure I didn’t think I’d messed anything up. I used the visual editor and then added the optional bits in case they mattered. No change though.

service: tts.cloud_say
data:
  entity_id: media_player.my_bedroom_speaker
  message: test message
  options:
    gender: female
  language: en-US