Skip to content

Instantly share code, notes, and snippets.

@introt
Created October 15, 2023 14:07
Show Gist options
  • Save introt/643c8317e7ba4a5615af8084eacb2a47 to your computer and use it in GitHub Desktop.
Save introt/643c8317e7ba4a5615af8084eacb2a47 to your computer and use it in GitHub Desktop.
Reset HomeAssistant Core password
# modified from https://www.home-assistant.io/docs/locked_out/
# with additional info from https://community.home-assistant.io/t/password-lost/66288/14
# inside the venv:
# list users
hass --script auth --config ~/.homeassistant list
USER=the first line of output
read PASS # new password
# set the new password
hass --script auth --config ~/.homeassistant change_password "$USER" "$PASS"
# alternatively, some say it's easier to just delete ~/.homeassistant/.storage/{onboarding,auth*}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment