Hi, please could someone help me.
I restored a back up recently on my raspberry pi home assistant. The back up was from October last year.
The restore was fine but now when I log in the 2FA code I retrieve from Authenticator doesn’t work so I’m locked out of my home assistant.
Can some one please help me with the commands needed to log back in if I connect a keyboard and monitor directly to the raspberry pi.
I’m desperate, so any help will be massively appreciated.
Many thanks
I know my ID and password, it’s 2FA I can’t get through. I need to turn it off some how through the console.
ok, I thought resetting password would reset MFA as well.
If not, you could try removing the MFA part in your configuration.yaml and reboot.
If I connect a monitor and keyboard directly to my home assistant would you know the commands I’d need to run to do that?
iirc, you first issue command: login
then: CD /mnt/data/supervisor/homeassistant
(have not tested, if it does not work, I will go and confirm for you)
Then you should be in th config folder
found a previous post with the details
From the ‘HA’ Prompt…
type ‘login’
then cd /mnt/data/supervisor/homeassistant
type ‘ls’
you’ll see ‘configuration.yaml’ is in this directory
vi configuration.yaml to edit
and
For basics VI editor commands
i — Switch to Insert mode.
Esc — Switch to Command mode.
:w — Save and continue editing.
:wq or ZZ — Save and quit/exit vi.
:q! — Quit vi and do not save changes.