Error sending TTS to Google Home

I’ve installed the Google Assistant SDK and Google Cast and am trying to get it to play a message via TTS.
I have the following code in a test automation and am just manually triggering it:

alias: _test
description: ""
trigger: []
condition: []
action:
  - service: tts.picotts_say
    metadata: {}
    data:
      cache: false
      entity_id: media_player.study_hub
      message: hello there
mode: single

When I try and run it, nothing happens and the Google Hub sits there as if trying to play something. When I look at the trace, I have the following error:

Error: CastMediaPlayerEntity._quick_play Failed: Execution of quick play http://192.168.1.156:8123/api/tts_proxy/6e71b3cac15d32fe2d36c270887df9479c25c640_en-us_-_picotts.mp3 timed out after 30.0 s.

The IP address is I think an old one from some time back as my HA is in the same subnet, but on a different IP address. The IP address is valid though as it’s another box. I am not sure where it is picking that IP up from. Does anyone have suggestions of where to look to correct it?

Edit: I tried setting the IP of what HA is now in config.yaml using base IP and restarted HA. The same error still appears though.

Edit 2: Doing a broadcast works, but is not really the way I am hoping it will work as don’t want notification on the device a broadcast message is coming.

Edit 3: added internal_url to config.yaml and now works. But still curious as to where it would be picking up an old IP address from.

3 Likes