Cannot connect to my HA - how to repair a config file

Hi all, I need your help !

Today I made some changes in my configuration.yaml file (I wanted to review some settings with regards with my duckdns integration and the url to be used for accessing my HA from outside my network). I asked HA to check all my configuration files, they were all OK, but after the reboot, I cannot anymore connect to HA, via a browser or via the companion :cry:

A full backup of HA is done every day (and uploaded on Google drive), I can of course try to restore it (I never did it, will it restore HA in its exact state as it was when the backup has been done ?), but before I’d like to see if there is no other alternatives.

I plugged a keyboard and a screen on my raspberry pi, knowing there was behind the scene the homeassistant OS. I was hoping to have some command lines to browse the file structure of HA, to find back the configuration.yaml file, and to correct it.

But I unfortunately it seems not to be the case, I see the OS boots as expected, but then I cannot do many things: there are few instructions, but only to monitor/restart/… HA. Nothing at a lower level.

Any advice ? Should I just restore my backup ?

Not necessarily. All that check does is make sure you will be able to start home assistant. It does not mean your config is without errors.

What exactly did you change?

Yea I know it mainly validates the structure of the file I suppose.

I was changing some settings in the HTTP section, and not sure but I think I’ve put into comments the internal and external urls

My HA is running on a raspberry pi, everything is on a memory card. If I take it and plug it in my macbook, any chance I can see and edit the config files ?

Yes. Though you might have to search the forum for where to find them.

On windows an extra bit of software is needed to read the linux partitions. Not sure about mac?

Once you find your backup you can open it (it is just a compressed archive, assuming you did not password protect it) and extract your configuration.yaml file.

If you copy this to your /config directory (again no idea where you will find that on the card) it should revert the changes you made.

Alternatively if you have the SAMBA addon installed and running you may be able to connect that way and do all this.