I’m struggling to get Google text to speech working on a Google Nest with my Home Assistant…
I’ve setup a simple automation as per below to trigger the TTS, the first time the automation ran my Google Nest made a beep but nothing was played, I checked in the tts directory and it created the first mp3 file but when I ran the automation again after that it now doesn’t create any of the mp3’s nor does it play these.
I am not sure if it is perhaps because I’m using Duckdns / SSL?
TTS Configuration in configuration.yaml (tried it with base_url removed which also didn’t work)
# Text to speech
tts:
- platform: google_translate
base_url: http://192.168.88.11:8123/
# base_url: https://192.168.88.11:8123/ #tried this
# base_url: https://xyz.duckdns.org:8123/ #tried this
My test automation
alias: Test TTS 1
description: ''
trigger:
- platform: state
entity_id: light.bedroom_lamp
to: 'On'
condition: []
action:
- service: tts.google_translate_say
data:
entity_id: media_player.googlehome7067
message: The lamp is on
cache: true
language: English
mode: single
Then make sure you expose the appropriate domains in your “google_assistant:” config. I am not aware you can use Automations as that did not work for me (but I haven’t tried it lately). I use scripts instead.
I have tried using the external link before (base_url: https://xxx.duckdns.org:8123) but had the HA port 8123 at the end, perhaps that is part of the problem as I see you don’t have the port number in your example? The internet link for my HA is down currently so I cannot test this.
I don’t have anything in my google_assistant_configuration.yaml file relating to the server IP could you perhaps share that line of the file with me?
Paul, your right, sorry to mis-lead you. I assume then you can control Home Assistant from Google Home without issue.
When I am debugging these types of things I use the Developer Tools and will try to execute my commands from there. Another thing to consider is to try a different Google Home. I have one in the Bedroom that doesn’t always announce.
Yeah I can control HA from GA without issue, this TTS is definitely SSL related, I’m busy looking at a reverse proxy option, will post back any findings.
I’ve also been using the developer option for testing since your comment above about it not working from an automation.
I managed to get this working by changing over to Nginx reverse proxy but now I get an error “401: unauthorized” when I try run some add-ons like ESPHome, File Editor etc…
Sigh, so much trouble just to get a Google Nest to work