Created
October 15, 2023 14:07
-
-
Save introt/643c8317e7ba4a5615af8084eacb2a47 to your computer and use it in GitHub Desktop.
Reset HomeAssistant Core password
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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