Error reading secrets.yaml in parent directory

My secrets.yaml file is located in the /config directory. Unfortunately ESPHome is not able to read this from a YAML fil within the /config/esphome directory.

Error accessing file /config/esphome/secrets.yaml: [Errno 2] No such file or directory: u'/config/esphome/secrets.yaml'

Is there a way to point !secrets to parent directory?
I have tried ! ../secret PASSWORD with no luck.

No it has to go in the directory where the configuration file is.

Question # 1

That’s fine.
My question is; Can I point to a directory from the YAML file where I use !secret ?

As I said:

This is where esphome expects it to be:

'/config/esphome/secrets.yaml'

And it is not possible to change that.

OK.
Can I use an ESPHome specific Secrets.yaml file for ESPHome in /config/esphome in addition to the one I already use in /config?

Yes. That is exactly what you have to do.

Otto discussed the reasoning behind having separate secret files here:

https://github.com/esphome/feature-requests/issues/121

Thank you very much. I didn’t even think of having several secrets files :slight_smile: