Where is my YAML file

Aren’t you making things a bit complicated? Why not open HA in a browser, go to Supervisor and install the file editor add-on, and use that?

Failing that, this thread may help: