I am working to add Amazon Polly to my HA setup. If I enter the API key information directly into my tts config entries, it works just fine. If I try to use secrets values, it states it cannot read from the secrets file. I have confirmed secrets.yaml is in the correct path /config/secrets.yaml. Here is my tts setup:
I don’t see anything in the logs regarding secrets. I followed a guide to looked for abnormal characters in the secrets file and to make sure it had the right permissions and it seems to.
The right path is probably config/esphome/secrets,yaml, but this sounds like you are editing the file directly and not just using the “secret” menu option in ESPHome builder.
Ohh, for some reason I never thought that HA itself can have a secrets file too, so I just assumed.
It makes sense though, so just me not thinking logical.
It appears that the only way to get the Amazon Polly integration to work is to put the keys right into the tts configuration. Should this be reported as a “bug”?