With the help from another thread I got the command working within a docker, but when I create a new user it says invalid Auth, even though I know the password and account are valid.
the --config <path> should be relative to the container. Try as docker exec home-assistant python -m homeassistant --script auth --config /config add user password
Or update it to match the mount point of the config directory in the container.
so the list command shows the two users, but user authentication is not working?
Did you make changes to configuration.yaml to enable user auth? snippet of the changes you made?
auth_providers:
- type: homeassistant
# Uncomment next line if you want to enable legacy API password support
- type: legacy_api_password
# Enable the auth component
auth:
Just these, I added the legacy one to see if that worked and it does.
I’m assuming the auth_providers: section is under the homeassistant: block, so this looks fine.
Dunno, enabled debugging logging and check the logs, maybe you’ll get some additional clues.
So does it ask you for the username and password or do you get 'password" field to enter only?
anyone have any idea on this please? I’ve updated to 0.74 and it is the same. I cannot log in. I’ve tried to create users from inside the docker command line but it states
root@HomeAssistant:/usr/src/app# homeassistant --script auth --config /home/mark/HomeAssistant add Mark password1
bash: homeassistant: command not found