Ever since creating a DuckDNS link, I’ve bene unable to send TTS to either Sonos or Google Home speakers (everything else works fine, from local or remote).
I’ve searched here, on reddit, via Google, and instructions are all over the place, and most is way over my head. A lot of advice is also 4-5 years old, and doesn’t seem to apply anymore.
Before trying anything and possibly breaking stuff, I’d like some definitive and up-to-date advice.
I’m running HAOS (baremetal?) on a X86-64 PC.
When trying to run an automation calling TTS (using Google Translate and configuring via the GUI), I get this error message looking at traces:
Unable to determine Home Assistant URL to send to device. Configure internal and external URL in general settings
Now I’m pretty sure I had done just that when configuring DuckDNS but when I go to “network” I see local network is set to automatic, and HA gives me a warning saying
You have configured an HTTPS certificate in Home Assistant. This means that your internal URL needs to be set to a domain covered by the certificate.
Sounds easy, if you know what you’re doing I guess. I’m not sure I do.
Older topics suggest playing with “base_url”, newer indicate that this is deprecated.
Some people suggest adding this
external_url: "https://www.example.com/"
internal_url: "http://homeassistant.local:8123"
to the configuration file, but without clarifying the exact section, syntax and indentation.
Some people suggest I should just use https://local.ip:8123 for the internal URL and call it a day.
the TTS documentation (here ) acknowledges the problem, but is too specialized for me to understand and know what to do. The last sentence in that section says
The recommended way to overcome these obstacles is to not manually configure a local Home Assistant URL.
which I haven’t done, but TTS doesn’t work regardless. And that advice is opposite to the previous paragraph.
A topic from 2021 says I should add this in the configuration file, specifically for Sonos:
http:
use_x_forwarded_for: true
trusted_proxies:
- 172.30.32.0/24
It wouldn’t do anything, presumably, for Google speakers.
Others say I should use the DNSMasq add-on, and configure it somehow.
In short, advice is well-meaning but all over the place, I’m not sure what is current, what could break my links. I don’t want to have to restore because I typed the wrong URL in the wrong place.
I’m sure the solution exists and is well-understood. I’d really appreciate some input by someone who knows what they’re doing.
Many thanks.