I messed up my YAML is there anything I can do besides restoring a backup?

Hi,

last week I installed influxdb and added some lines to my YAML. It seems like I messed up my YAML then and there. The web interface of my HA is acting wonky.

I can only access 2 of my 3 dashboards and many entities are not displayed. When I want to restart I get the error “[Errno 5] I/O error: ‘/usr/src/homeassistant/homeassistant/helpers/check_config/init.py’”

When I check my YAML configuration in developer settings I get an endless spinner.

Then when I want to go to file editor to edit my YAML again the screen stays white and file editor is not loaded.

What would you do now?

If you have a backup - you can retrieve individual yaml files without restoring. It’s just a compressed archive file which you can open on PC or Mac.

Do you have the Samba share add-on installed? If not, try to install that so you can edit the YAML files from your PC without using the HA GUI.

1 Like

Yes what @sparkydave said. You can also use it to copy your backups to PC if you didn’t have them stored somewhere else other than the HA host.

I have done the same sort of thing with the /homeassistant/.storage/application_credentials
file, When I restore from a backup it doesn’t fix the file.
I have extracted the back up file off my NAS but cant seen to find the above file. Any suggestions?