Can't set password

Hi,
I installed Home Assistant with python on a rpi 2 running OSMC.
After starting the server, i tried to set a password for the http interface but i can’t. I defined a password in the configuration.yaml file (api_password: MYPASS) but it doesn’t ask me any password when I access to my server.
I’d like to access Home Assistant over the internet, I think a password could be a great idea ^^’.
Can you help me?

After entering the line in your configuration.yaml did you restart home assistant?

Changes require a restart to take effect.

Yes i restarted it several times.

Share the http: section of your configuration here, just delete your password from the snippet beforehand. :slight_smile:

Here it is:

config:

 http:
  # Secrets are defined in the file secrets.yaml
  api_password: PASS
  # Uncomment this if you are using SSL/TLS, running in Docker container, etc.
  # base_url: example.duckdns.org:8123

Is your spacing correct on your yaml file? Spacing is INCREDIBLY important with yaml. New lines begin with 2 spaces

2 Likes

Ok I had one space before http I’m just an idiot.
Thanks flamingm0e!

1 Like